Forum Discussion
VLookUp and IFs
- Jun 25, 2021
For example:
=IFERROR(IF(VLOOKUP(A1,OtherSheet!$A$1:$M$100,13,FALSE)<>"", VLOOKUP(A1,OtherSheet!$A$1:$M$100,13,FALSE), IF(VLOOKUP(A1,OtherSheet!$A$1:$M$100,11,FALSE)<>"", VLOOKUP(A1,OtherSheet!$A$1:$M$100,11,FALSE), IF(VLOOKUP(A1,OtherSheet!$A$1:$M$100,4,FALSE)<>"", VLOOKUP(A1,OtherSheet!$A$1:$M$100,4,FALSE), ""))), "")
Where OtherSheet is the name of the sheet with the lookup range. Adjust the last row 100 if necessary.
For example:
=IFERROR(IF(VLOOKUP(A1,OtherSheet!$A$1:$M$100,13,FALSE)<>"", VLOOKUP(A1,OtherSheet!$A$1:$M$100,13,FALSE), IF(VLOOKUP(A1,OtherSheet!$A$1:$M$100,11,FALSE)<>"", VLOOKUP(A1,OtherSheet!$A$1:$M$100,11,FALSE), IF(VLOOKUP(A1,OtherSheet!$A$1:$M$100,4,FALSE)<>"", VLOOKUP(A1,OtherSheet!$A$1:$M$100,4,FALSE), ""))), "")
Where OtherSheet is the name of the sheet with the lookup range. Adjust the last row 100 if necessary.
- anncshawJun 25, 2021Copper ContributorHi Hans that was my mistake - it is working perfectly thank you so much !!
Kind regards
Ann - anncshawJun 25, 2021Copper ContributorHi Hans
I tested this and it works for column 13 but when I remove the date in column 13 I was hoping it would pick up the April date in column 11 but it went straight to the date in column D. - anncshawJun 25, 2021Copper ContributorHi Hans
Thank you I will try this and respond !
Much appreciated 🙂
Ann