Hi there
I have a an sheet where the sales person (B3) and year (A2) is a drop down so when selected, can dynamically change the values in my output table.
My output table has the months as columns JAN-DEC.
Year is not included in the table
Lets call it Table1
The data table it is looking up against has
Year, Salesperson as rows, then the months across but only for the months it has data for as it's pivoted from Get and Transform.
Call it Table2
I want to return the values from Table2 based on sales person and year in B3 & A2 but also accomodate for when Table2 grows. I.e. if another month is added and include total row.
When I look up against one item it works as either:
=IFNA(VLOOKUP($B$3,Table2l[#All],MATCH(Table1[[#Headers],[January]],Table2[[#Headers],[Consultant]:[October]],0),0),"")
or
=IFNA(VLOOKUP($B$3,Table2[[#Data],[#Totals],[Consultant]:[Totals]],MATCH(Table1[[#Headers],[January]],Table1[[#Headers],[Consultant]:[Totals]],0),0),"")
but struggling on how I add in the addition of the year and accommodate for when extra months are added without having to change the formulas?
I can do a sumifs formula instead if not but wondered what the best way to do this is?
Many thanks for any advise.
I have a an sheet where the sales person (B3) and year (A2) is a drop down so when selected, can dynamically change the values in my output table.
My output table has the months as columns JAN-DEC.
Year is not included in the table
Lets call it Table1
The data table it is looking up against has
Year, Salesperson as rows, then the months across but only for the months it has data for as it's pivoted from Get and Transform.
Call it Table2
I want to return the values from Table2 based on sales person and year in B3 & A2 but also accomodate for when Table2 grows. I.e. if another month is added and include total row.
When I look up against one item it works as either:
=IFNA(VLOOKUP($B$3,Table2l[#All],MATCH(Table1[[#Headers],[January]],Table2[[#Headers],[Consultant]:[October]],0),0),"")
or
=IFNA(VLOOKUP($B$3,Table2[[#Data],[#Totals],[Consultant]:[Totals]],MATCH(Table1[[#Headers],[January]],Table1[[#Headers],[Consultant]:[Totals]],0),0),"")
but struggling on how I add in the addition of the year and accommodate for when extra months are added without having to change the formulas?
I can do a sumifs formula instead if not but wondered what the best way to do this is?
Many thanks for any advise.