vingo

New Member
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.

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

macb

Board Regular
Hi there:

Try this

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

Regards

Mac

clipro

Board Regular
=IF(B5>=10;160;IF(B5>=5;120;80))

you said formula not VBA

I hope that it is OK

Scott Huish

MrExcel MVP
Try this:

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

Great!! Thanks!!

Replies
5
Views
170
Replies
1
Views
129
Replies
9
Views
157
Replies
6
Views
575
Replies
4
Views
351

1,147,844
Messages
5,743,511
Members
423,800
Latest member
IuneKeiki

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.

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

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