If Formula help Please...

vingo

New Member
Joined
Jan 17, 2005
Messages
15
How do I write this formula in B6???

If B5<5, then B6=80
If B5 is between 5 and 9, then B6 is 120
If B5 is 10 or more, then B6 is 160.

Please help....
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi there:

Try this

IF(B5<5,80,IF(AND(B5>=5,B5<=9),120,160))

Regards

Mac
 
Upvote 0
=IF(B5>=10;160;IF(B5>=5;120;80))

you said formula not VBA

I hope that it is OK
 
Upvote 0
Try this:

=VLOOKUP(B5,{-9.99999999999999E+307,80;5,120;10,160},2,1)
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top