SOLVED

Help breaking down formula

Copper Contributor

Hi,

I am new to the community and somewhat new to the formula side of excel. Working on an excel sheet created by someone else. I would like help breaking down this formula. What do the individual parts do? This formula brings in data from another workbook, not sure how that is set up.

 

=IF(OR(HLOOKUP($B$1,Sheet1,$AD6,FALSE)="n/a",HLOOKUP($B$1,Sheet1,$AD6,FALSE)=0),"",HLOOKUP($B$1,Sheet1,$AD6,FALSE))

 

All input greatly welcomed,

Thank you

4 Replies

Hi @Colt45 

 

=IF(
 OR(

  HLOOKUP($B$1,Sheet1,$AD6,FALSE)="n/a",

  HLOOKUP($B$1,Sheet1,$AD6,FALSE)=0

   ),"",

   HLOOKUP($B$1,Sheet1,$AD6,FALSE)

  )

 

So the HLOOKUP part is trying to find a matching value to B1 across the columns of Sheet1 

it will then bring back the value from the row number that is in AD6

 

The IF part is checking if that returned value is "n/a" or 0 in which case it returns "" (empty cell)

best response confirmed by Colt45 (Copper Contributor)
Solution

Also Sheet1 is a defined Name

If you go to the Formulas menu and click Defined Name you'll see where that Sheet1 is referring toimage.png

@Wyn Hopkins

 

Thanks a lot, the names manager helped clear the problem.

Glad it helped
1 best response

Accepted Solutions
best response confirmed by Colt45 (Copper Contributor)
Solution

Also Sheet1 is a defined Name

If you go to the Formulas menu and click Defined Name you'll see where that Sheet1 is referring toimage.png

View solution in original post