albert211994
New Member
- Joined
- Feb 7, 2017
- Messages
- 10
Hi! I'am trying put a value in a selected cell using if and vlookup.
Here is the formula
It returns "G" if the value returned from vlookup from column F of directory is equal to N13 but if it is false it returns #n/a instead doing vlookup again in column G of directory.
Hope you can help.
Thank you.
Here is the formula
Code:
=IF($N13="","",IF(VLOOKUP($N13,Directory!$F:$F,1,0)=$N13,"G",IF(VLOOKUP($N13,Directory!$G:$G,1,0)=$N13,"S",""))
It returns "G" if the value returned from vlookup from column F of directory is equal to N13 but if it is false it returns #n/a instead doing vlookup again in column G of directory.
Hope you can help.
Thank you.