I'm wondering if there's any way to decide which sheet to reference based on a formula.
Specifically, I have data for sales in sheet 'All Sales'. Then, I have a sheet outlining cost assumptions for each month. They all have identical format, and the sheet names are 'Costs - January', 'Costs - February', etc.
What I would like to do is a vlookup based on the type of sale and the month the sale was made in. Something like "=VLOOKUP(A2,'Costs -' & TEXT(D2,"mmmm")!A2:C20,3,FALSE)" (but this formula doesn't work). Is there a way I can pick which sheet in looks at in a formula? Or any other suggestions to get around this problem?
Specifically, I have data for sales in sheet 'All Sales'. Then, I have a sheet outlining cost assumptions for each month. They all have identical format, and the sheet names are 'Costs - January', 'Costs - February', etc.
What I would like to do is a vlookup based on the type of sale and the month the sale was made in. Something like "=VLOOKUP(A2,'Costs -' & TEXT(D2,"mmmm")!A2:C20,3,FALSE)" (but this formula doesn't work). Is there a way I can pick which sheet in looks at in a formula? Or any other suggestions to get around this problem?