IF statement
Try this:
On another sheet, I'll assume Sheet2, create this table in A1:B18...
0.00 0.40
0.42 0.40
0.66 0.63
1.05 1.00
1.68 1.60
2.63 2.50
4.20 4.00
6.62 6.30
10.50 10.00
16.80 16.00
26.25 25.00
42.00 40.00
66.15 63.00
105.00 100.00
168.00 160.00
262.50 250.00
420.00 400.00
10000 0.00
Then, on Sheet1 (where I'll assume your values are in Col_A):
A1: (some value)
B1: =VLOOKUP(A1,Sheet2!$A$1:$B$18,2,1)
Does that help?
***********
Regards,
Ron
"Tom B" wrote:
Thank you for replying so quickly. It seems my IF statements do not give me
a zero valve (if false) and the MAX statement isn't liking it.
eg:
IF(AND(K210, K21<=0.42), 0.4, "")&IF(AND(K210.42, K21<=0.66), 0.63,
"")&IF(AND(K210.66, K21<=1.05), 1, "")&IF(AND(K211.05, K21<=1.68), 1.6,
"")&IF(AND(K211.68, K21<=2.625), 2.5, "")&IF(AND(K212.625, K21<=4.2), 4,
"")&IF(AND(K214.2, K21<=6.615), "6.3", "")&IF(AND(K216.615, K21<=10.5),
"10", "")&IF(AND(K2110.5, K21<=16.8), "16", "")&IF(AND(K2116.8,
K21<=26.25), 25, "")&IF(AND(K2126.25, K21<=42), 40, "")&IF(AND(K2142,
K21<=66.15), 63, "")&IF(AND(K2166.15, K21<=105), 100, "")&IF(AND(K21105,
K21<=168), 160, "")&IF(AND(K21168, K21<=262.5), 250, "")&IF(AND(K21262.5,
K21<=420), 400, "")
As you can see, I am testing a value in a cell to give me another value but
not returning a zero value (someone else wrote this, i'm just
troubleshooting). Anyone know of an easier way to do this?
"Tom B" wrote:
In an IF statement, if either the logical test is either true or false and a
value is entered into the cell, how is that value different than if the user
entered the value themselves (using general formatting)
I have a MAX statement what won't pick up the IF statement's 63 but works
with the user entered 63.
|