Help

jmaw3

New Member
Joined
Jan 21, 2014
Messages
5
I need a formula for this:

=IF(AND(MU2265>=-1,MU2265>=1),$B$3/MO2265,IF(MU2265>1,$B$4/MO2265,IF(MU2256<-1,$B$4/MO2265,)))

if mu2265 is between -1 and 1 then do (X) but if it is more than 1 do (Y) and if it is less than -1 do (Z)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Change the AND part of your formula to:
Code:
AND(MU2265>=-1,[COLOR=#ff0000]MU2265<=1[/COLOR])

Code:
[FONT=Lucida Grande]=IF(AND[COLOR=#006107]([/COLOR][COLOR=#0057d6]MU2265[/COLOR]>=-1,[COLOR=#0057d6]MU2265[/COLOR][COLOR=#ff0000]<[/COLOR]=1[COLOR=#006107])[/COLOR],[COLOR=#006107]$B$3[/COLOR]/[COLOR=#ab30d6]MO2265[/COLOR],IF[COLOR=#006107]([/COLOR][COLOR=#0057d6]MU2265[/COLOR]>1,[COLOR=#a54a29]$B$4[/COLOR]/[COLOR=#ab30d6]MO2265[/COLOR],IF[COLOR=#ab30d6]([/COLOR][COLOR=#33af4a]MU2256[/COLOR]<-1,[COLOR=#a54a29]$B$4[/COLOR]/[COLOR=#ab30d6]MO2265[/COLOR],[COLOR=#ab30d6])[/COLOR][COLOR=#006107])[/COLOR])[/FONT]
 
Upvote 0
Hi

Alternatively :-
Code:
=IF(ABS(MU2265)>1,$B$4,$B$3)/MO2265

or

=OFFSET($B$3,--(ABS(MU2265)>1),,)/MO2265

both of which are shorter than the original.

hth
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,040
Members
449,063
Latest member
ak94

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