Thread: Vlookup and if
View Single Post
  #2 (permalink)  
Old 03-01-10, 10:59
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Try this (untested):

=IF(VLOOKUP(A5,'Z:\Information Analysis\CSP Study Log Development\CSP Reporting\Excel Solution\[CSPProject.xls]Sheet1'!A:N,13,FALSE),"YES",IF(VLOOKUP(A5,'Z:\Info rmation Analysis\CSP Study Log Development\CSP Reporting\Excel Solution\[CSPProject.xls]Sheet1'!A:N,13,FALSE)="","Not Assigned","NO"))




It's quite a long formula so I'd be tempted to use a helper column instead.
In the helper column you could simply look up the value:
=VLOOKUP(A5,'Z:\Information Analysis\CSP Study Log Development\CSP Reporting\Excel Solution\[CSPProject.xls]Sheet1'!A:N,13,FALSE)

Then you can reference the helper column with the IF() conditions. Say the helper column is column B:
=IF(B5,"YES",IF(B5="","Not Assigned","NO"))



Also, I notice you are returning the value from the 13th column. If that's the case the lookup table can be reduced to A:M rather than A:N.

Hope that helps...
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote