IF statements help

jon2249

New Member
Joined
Aug 30, 2011
Messages
10
For CELL B6 I have

=IF(B5="EHDW",B6='Rates by Demand'!B4,IF(B5="EHDE",B6=X,IF(B5="HDW",B6='Rates by Demand'!C4,IF(B5="HDE",B6=X,B6 = FIX ME))))

I have a bunch of parameters
EHDW EHDE HDW HDE HSDW HSDE LSDW LSDE etc...
If cell B5="EHDW" I want B6 to pull data from Rates By Demand Tab Cell B4. ($629)

Instead it is pulling a $0.00. Any Idea why this is happening?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the Board!

Just reference the sheet range directly:

=IF(B5="EHDW",'Rates by Demand!B4,IF(B5="EHDE","X",IF(B5="HDW",'Rates by Demand'!C4,IF(B5="HDE","X","FIX ME"))))

Although for a bunch of different parameters like that I'd use a Lookup table instead of a bunch of nested IF's, which can get hard to maintain in a hurry.

HTH,
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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