L5 needs to display 80 if k5 equals .1 to 4, 60 if k5 equals 4.1 to 8, 40 if it equals 8.1 to 12, 30 if 12.1 to 16, 20 if 16 +. i am new to excel, and i have excel 2000. it is driving me insaneplease help
L5 needs to display 80 if k5 equals .1 to 4, 60 if k5 equals 4.1 to 8, 40 if it equals 8.1 to 12, 30 if 12.1 to 16, 20 if 16 +. i am new to excel, and i have excel 2000. it is driving me insaneplease help
try this
=if(and(K5>=.1,K5<=4),80,if(and(K5>=4.1,K5<=8),60,if(and(K5>=8.1,K5<=12),40,if(and(K5>=12.1,K5<=16),30,20))))
or
=if(K5>16,20,if(k5>12.1,30,if(K5>8.1,40,if(k5>4.1,60,if(K5>.1,80,"Too Small")))))
Last edited by DGagnon; 03-14-2012 at 09:28 PM.
If you liked my solution, please click on the Star -- to add to my reputation
If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.
in L5
=LOOKUP(K5,{0.1,4.1,8.1,12.1,16.1},{80,60,40,30,20})
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
A shorter IF function can be obtained by testing for highest numbers first, ie
=IF(K5>16.1,20,IF(K5>12.1,30,IF(K5>8.1,40,IF(K5>4,1,60,80))))
Give this a go
=IF(K5<=4,80,IF(AND(K5>4,K5<=8),60,IF(AND(K5>8,K5<=12),40,IF(AND(K5>12,K5<=16),30,20))))
grrrrrrrrrrrrr...........frustrating!!!
Last edited by janastead; 03-14-2012 at 09:59 PM.
Did you use the LOOKUP solution?
this one only returned 80
this one gave an error message for too many arguments
this only returns 80 as well( i really apreciate the help tho!
i used lookup and it yeilded 80 only as well... any other ideas?
could you share a sample book?
excel error.JPG
here u go
try this out
=IF(K5>16.1,20,IF(K5>12.1,30,IF(K5>8.1,40,IF(K5>4.1,60,80))))
excel error 2.JPG
heres another try. it is showing 20 but should be showing 80. it only changes to 80 if it is above 10
looking at you data again, you are working with %'s not whole numbers, 4% is not equal to 4, but .04
try this.
=IF(K5>.161,20,IF(K5>.121,30,IF(K5>.081,40,IF(K5>.041,60,80))))
excel error 3.JPG
another try that ohnly yeilds 80
Registered User
--------------------------------------------------------------------------------
Join Date: 02-23-2012Location: Ontario, Canada MS-Off Ver: Excel 2003, 2007Posts: 648Infractions:0/1 (2)
Re: help with if then function for ranges
looking at you data again, you are working with %'s not whole numbers, 4% is not equal to 4, but .04
try this.
=IF(K5>.161,20,IF(K5>.121,30,IF(K5>.081,40,IF(K5>.041,60,80))))
THANK YOU SO VERY MUCH! THAT WAS THE PROBLEM :
))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks