[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Job#[/TD]
[TD]Name[/TD]
[TD]Type[/TD]
[TD]Stage[/TD]
[/TR]
[TR]
[TD]1010[/TD]
[TD]Elm Ranch[/TD]
[TD]Residential[/TD]
[TD]Design[/TD]
[/TR]
[TR]
[TD]1012[/TD]
[TD]Oak Park Dev.[/TD]
[TD]Non-Residential[/TD]
[TD]Design[/TD]
[/TR]
[TR]
[TD]1015.5[/TD]
[TD]Beechwood Estates[/TD]
[TD]Mixed Use[/TD]
[TD]Planning[/TD]
[/TR]
</tbody>[/TABLE]
I have worksheets spanning the last 6 years detailing jobs. The earlier (2013-2015) worksheets don't have type and stage, which I need. I've added columns and tried to fill them in using the more recent data with:
//searching for type
=VLOOKUP(A9,'[Worksheet2016]Projects'!$A$7:$D$135, 3, FALSE)
which works for a single worksheet, but I would like to make nested IFs to search all 3 recent worksheets. The logic is like:
IF (worksheet2016 returns a value, good, if not)
ELSEIF (worksheet2017)
ELSEIF (worksheet2018)
Else "not found"
I'd like to do this with Excel code if possible, not VBA. Not sure of the Excel syntax.
Based on earlier searches through this forum, I tried:
//full pathname elided
=IF(VLOOKUP(A8,'worksheet2016'!$A$7:$D$135,3,FALSE)=A8,A8,IF(VLOOKUP(A8,'worksheet2017'!$A$7:$D$135,3,FALSE)=A8,A8,IF(VLOOKUP(A8,'worksheet2018'!$A$2:$D$157,3,FALSE)=A8,A8,"not found")))
but that only returns #N/A
<tbody>[TR]
[TD]Job#[/TD]
[TD]Name[/TD]
[TD]Type[/TD]
[TD]Stage[/TD]
[/TR]
[TR]
[TD]1010[/TD]
[TD]Elm Ranch[/TD]
[TD]Residential[/TD]
[TD]Design[/TD]
[/TR]
[TR]
[TD]1012[/TD]
[TD]Oak Park Dev.[/TD]
[TD]Non-Residential[/TD]
[TD]Design[/TD]
[/TR]
[TR]
[TD]1015.5[/TD]
[TD]Beechwood Estates[/TD]
[TD]Mixed Use[/TD]
[TD]Planning[/TD]
[/TR]
</tbody>[/TABLE]
I have worksheets spanning the last 6 years detailing jobs. The earlier (2013-2015) worksheets don't have type and stage, which I need. I've added columns and tried to fill them in using the more recent data with:
//searching for type
=VLOOKUP(A9,'[Worksheet2016]Projects'!$A$7:$D$135, 3, FALSE)
which works for a single worksheet, but I would like to make nested IFs to search all 3 recent worksheets. The logic is like:
IF (worksheet2016 returns a value, good, if not)
ELSEIF (worksheet2017)
ELSEIF (worksheet2018)
Else "not found"
I'd like to do this with Excel code if possible, not VBA. Not sure of the Excel syntax.
Based on earlier searches through this forum, I tried:
//full pathname elided
=IF(VLOOKUP(A8,'worksheet2016'!$A$7:$D$135,3,FALSE)=A8,A8,IF(VLOOKUP(A8,'worksheet2017'!$A$7:$D$135,3,FALSE)=A8,A8,IF(VLOOKUP(A8,'worksheet2018'!$A$2:$D$157,3,FALSE)=A8,A8,"not found")))
but that only returns #N/A