Multiple IF Statements with VLOOKUP and IFERROR

IESEnergy

New Member
Joined
Aug 28, 2017
Messages
14
How do I get cell BA to show blank instead of False when Column AT is blank?
9


=IFERROR(IF(AT6="Low Temp. (-10-10°F)",VLOOKUP(AY6,Codes!CP3:CV33,6,FALSE),IF(AT6="Med. Temp. (33-41°F)",VLOOKUP(AY6,Codes!CP3:CV33,4,FALSE),IF(AT6="Air Conditioned",VLOOKUP(AY6,Codes!CP3:CV33,2,FALSE),IF(AT6="Outdoor",VLOOKUP(AY6,Codes!CP3:CV33,2,FALSE),IF(AT6="None"," ")))))," ")
9


jc0NZ5
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
IESEnergy, Good morning.

Try to use:

=IFERROR(IF(AT6="Low Temp. (-10-10°F)", VLOOKUP(AY6,Codes!CP3:CV33,6,FALSE), IF(AT6="Med. Temp. (33-41°F)", VLOOKUP(AY6,Codes!CP3:CV33,4,FALSE), IF(AT6="Air Conditioned", VLOOKUP(AY6,Codes!CP3:CV33,2,FALSE), IF(AT6="Outdoor", VLOOKUP(AY6,Codes!CP3:CV33,2,FALSE), IF(AT6="None"," " ," " )))))," " )

Red part is missing part.

Hope it helps.

Marcílio Lobão
 
Upvote 0
A picture is not much of use... That said:

Try...
Rich (BB code):
=IFERROR(IF(OR(AT6="",AT6="none"),"",VLOOKUP(AY6,Codes!$CP$3:$CV$33,
       VLOOKUP(AT6,{"Air Conditioned",2;"Outdoor",2;"Med. Temp. (33-41°F)",4;"Low Temp. (-10-10°F)",6},2,0),0)),"")
 
Upvote 0
FYI

" " is NOT blank. It's a Space.
"" would be better, yet still not truely blank.
 
Upvote 0
A picture is not much of use... That said:

Try...
Rich (BB code):
=IFERROR(IF(OR(AT6="",AT6="none"),"",VLOOKUP(AY6,Codes!$CP$3:$CV$33,
       VLOOKUP(AT6,{"Air Conditioned",2;"Outdoor",2;"Med. Temp. (33-41°F)",4;"Low Temp. (-10-10°F)",6},2,0),0)),"")

Thanks. I like this formula much better than my original one. Sorry about the picture. I wasn't sure if it would be needed or not.
 
Upvote 0

Forum statistics

Threads
1,216,068
Messages
6,128,592
Members
449,460
Latest member
jgharbawi

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