Jane Fischer
Board Regular
- Joined
- Feb 6, 2006
- Messages
- 85
I do a vlookup to return 2 different columns depending on the value found. I need to add a 3rd column but am not sure the best way to do it. This is my current formula but now need to include column 6. Can someone help me figure this out?
=IFERROR(VLOOKUP(A2,'\\swfs04v01\fwal1shr\Plant-0\Finance\Other\WGS\[WGS P5 and TC Grinding Cost.xlsx]Sheet1'!$A$3:$E$974,4+(B2<"WGSTC"),0),0)
If B2=WGSTC return column 4
If B2=WGSP5 return column 5
If B2=WGSBS return column 6
=IFERROR(VLOOKUP(A2,'\\swfs04v01\fwal1shr\Plant-0\Finance\Other\WGS\[WGS P5 and TC Grinding Cost.xlsx]Sheet1'!$A$3:$E$974,4+(B2<"WGSTC"),0),0)
If B2=WGSTC return column 4
If B2=WGSP5 return column 5
If B2=WGSBS return column 6