Nested IF / greater than / less than help

T

Tobey

I wrote this formula:
=IF(H2<=5,H2*2,IF(AND(H2>5,H2<35),H2*1.85,IF(H2>=35,H2*1.75)))

but it is taking H2 value: .72 and returning 1.26 (*1.75) instead of
1.44 (*1.44).

The goal:
IF H2 is less than or equal to 5, multiply by (*2).
IF H2 is greater than 5 or less than 35, multiply by 1.85
IF H2 is greater than or equal to 35, multiply by 1.75

Thank you!!!
Tobey
 
R

Rick Rothstein \(MVP - VB\)

Try it this way...

=IF(H2<=5,2*H2,IF(H2<35,1.85*H2,1.75*H2))

Rick
 
D

Don Guillett

Some error checking on h2
=IF(AND(ISNUMBER(H2),LEN(TRIM(H2))>0),H2*IF(H2>=35,1.75,IF(H2>5,1.85,2)),"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top