Try this then:
Formula:
=IF(COUNTBLANK(H2:H4)=3,"",(IF(H2<>"",HLOOKUP(H2,B2:E3,2,FALSE),"")&IF(H3<>"",HLOOKUP(H3,B4:E7,2,FALSE),"")&IF(H4<>"",HLOOKUP(H4,B8:E15,2,FALSE),""))*1)
It's basically saying:
If all three cells are blank, return a blank.
The rest of the formula was a modification to your original formula. Since you are only trying to return a value if a dropdown value is selected, I added in an if statement to do hlookup only if H2<>"" (meaning H2 is not blank). If H2 is blank, then it will return a blank, resulting a blank & the rest of the formula. So now it can be flexible enough to pick up whether the cell is blank or has a value.
Bookmarks