VLOOKUP($H12,dusa,4,FALSE)Any help deciphering this would be greatly appreciated! I see an error function but the 2 vlookups are what i'm struggling with.
=IF(ISERROR(VLOOKUP($H12,dusa,4,FALSE)=TRUE),0,VLOOKUP($H12,dusa,4,FALSE))
looks tome like it looks up the value from an exact match from the cell $H12 from dusa, and returns from a 4th column. but if that value is an error, it returns a 0 instead.
Excel Workbook | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Number | Animal | Colour | Name | ||
2 | 123 | Cat | Red | Bill | ||
3 | 124 | Dog | Green | Bob | ||
4 | 125 | Cow | Blue | Tom | ||
5 | 126 | cat | Red | Tim | ||
6 | 127 | dog | Green | Jim | ||
7 | 128 | Pig | Blue | Jo | ||
Sheet1 |
Am I the only one that noticed the syntax error in the original formula?Hi, Welcome to MrExcel
Beaten to it, but here's my interpretation anyway.
=IF(ISERROR(VLOOKUP($H12,dusa,4,FALSE)=TRUE),0,VLOOKUP($H12,dusa,4,FALSE))
=IF(Logical Test, Value if true, Value if False)
ISERROR Checks to see if the result of the Vlookup is an error or not.
If it is an error put 0 in the cell, if it isn't an error put the result of the Vlookup in the cell.
Vlookup is looking at the data in H12 and seeing if it is the Named Rang dusa (Sheet1 A2:D7), if it is, return the data from the 4th column along.
Excel Workbook
A B C D 1 Number Animal Colour Name 2 123 Cat Red Bill 3 124 Dog Green Bob 4 125 Cow Blue Tom 5 126 cat Red Tim 6 127 dog Green Jim 7 128 Pig Blue Jo Sheet1
I hope this explains it for you.
Ak
=IF(ISERROR(VLOOKUP($H12,Dusa,4,FALSE)=TRUE),0,VLOOKUP($H12,Dusa,4,FALSE))Am I the only one that noticed the syntax error in the original formula? :wink:
Any help deciphering this would be greatly appreciated! I see an error function but the 2 vlookups are what i'm struggling with.
=IF(ISERROR(VLOOKUP($H12,dusa,4,FALSE)=TRUE),0,VLOOKUP($H12,dusa,4,FALSE))