Mulitple IF cell

Grinch

New Member
Joined
Mar 14, 2011
Messages
17
Here's my deal. Here's what I want but don't know how to formulate it.

If E7 is greater than 4.9, then B7 * .4
If E7 is greater than 5.9, then B7 * .6
If E7 is greater than 6.9, then B7 * .8
If E7 is greater than 7.9, then B7 * 1

Thanks in advance for your help... I'm losing my mind.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Here's my deal. Here's what I want but don't know how to formulate it.

If E7 is greater than 4.9, then B7 * .4
If E7 is greater than 5.9, then B7 * .6
If E7 is greater than 6.9, then B7 * .8
If E7 is greater than 7.9, then B7 * 1

Thanks in advance for your help... I'm losing my mind.
What should happen if E7 is less than or equal to 4.9?
 
Upvote 0
not sure but try something like this...
'=IF(E7<5.9,B7*0.4,IF(AND(E7>5.9,E7<6.9),B7*0.6,IF(AND(E7>6.9,E7<7.9),B7*0.8,IF(E7>7.9,B7*1,0))))
 
Upvote 0
Hi,

I'm a little late for this party :) , but maybe this

=B7*LOOKUP(E7,{-9.99999999999999E+307;5;6;7;8},{0;0.4;0.6;0.8;1})


M.
 
Upvote 0
Hi Pedie,

I'm trying to do a simple LOOKUP.

The 1st vector is where the lookup_value (E7) match a lower or equal value and second vector is the result_vector.

I put the first value as -9.99999999999999E+307 because this is smallest value Excel can handle. So if E7, for example, is - 10000 it would match with the first instance and pick 0 (zero) in the result_vector.

And so on for other values. For example 7.9 (a limit value) matches with 7 (lower than 7.9) that is the 4th element and returns the corresponding 4th element of the result_vector = 0.8.

Hope i made myself clear.

All the best

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,683
Members
452,938
Latest member
babeneker

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