excel - Using tables and column titles in VLOOKUP -
i'm having difficult time transitioning vlookup statement referencing sheets , ranges (which work charm), instead using table , column names.
i'm trying make vlookup bit more robust sheet pulling changing data, column numbers change frequently. thus, i'd reference column name.
- i have converted source data sheet table.
- i have named columns appropriately , double checked spelling.
this vlookup works great (currently):
=vlookup(e6,'costs'!$a$2:$ae$84,19,false) however, make this:
=vlookup(e6,tblcosts[order number],tblcosts[june 2017], false) i have been fiddling trying use match not working either:
=vlookup(e31,tblcosts[order number],match(f4,tblcosts[june 2017],false),false) update
this formula works returning order number...not cost month.
=vlookup(e31,(tblcosts[order number]),(tblcosts[june 2017]),false) normally keep trying myself...but feeling overwhelmed , have been trying hours. advice great.
thank you!!
this should work you:
=vlookup(e31,tblcosts[#all],column(tblcosts[jun-17]),false) the column(tblcosts[jun-17]) returns column number of field want.
the vlookup searches first column of tblcosts[#all] - (all data in table) data (in e31) , returns data in column want.
this formula continue work if add columns or rows data.
make sure heading looks date in spreadsheet eg "jun-17" stored text , not date, not match string "jun-17" when use vlookup.
Comments
Post a Comment