We get a 11-month forecast from our customer on a weekly basis, that shows the upcoming 11 months and the quantities of all of the part numbers they expect to order from us.
So, at the end of the year, I will have 52 sheets of data that all have a different range of months and quantities.
What I was tasked to do is to make a chart that finds the average for the specific part number in the specific month across all 52 sheets.
I can get the total of a part number across all of the months in the sheet with this formula:
A3 = Part Number looking up
'2025 Week (52):2025 Week (1)'!$A$2:$A$335 = Columns of part numbers in the 52 sheets
'2025 Week (52):2025 Week (1)'!$B$2:$L$335 = the totals of those part numbers
What I need to do is do a nested XLookup that looks at the date as well:
(VSTACK('2025 Week (52):2025 Week (1)'!$B$1:$L$1)) = Rows of Date Headers in the 52 Sheets
but when I try it, it just gives me #Value!:
Is there a different way to do lookup like this across multiple sheets without having to manually just to add up double XLookup for each sheet?
When I try doing a regular XLookup with the Vstack for the date rows instead of the Part numbers column, I get #Value!
So, at the end of the year, I will have 52 sheets of data that all have a different range of months and quantities.
What I was tasked to do is to make a chart that finds the average for the specific part number in the specific month across all 52 sheets.
I can get the total of a part number across all of the months in the sheet with this formula:
Excel Formula:
=SUM(XLOOKUP(A3,VSTACK('2025 Week (52):2025 Week (1)'!$A$2:$A$335),VSTACK('2025 Week (52):2025 Week (1)'!$B$2:$L$335)))
'2025 Week (52):2025 Week (1)'!$A$2:$A$335 = Columns of part numbers in the 52 sheets
'2025 Week (52):2025 Week (1)'!$B$2:$L$335 = the totals of those part numbers
What I need to do is do a nested XLookup that looks at the date as well:
(VSTACK('2025 Week (52):2025 Week (1)'!$B$1:$L$1)) = Rows of Date Headers in the 52 Sheets
but when I try it, it just gives me #Value!:
Excel Formula:
=Sum(XLOOKUP(A3,VSTACK('2025 Week (52):2025 Week (1)'!$A$2:$A$335),XLOOKUP(C2,VSTACK('2025 Week (52):2025 Week (1)'!$B$1:$L$1),VSTACK('2025 Week (52):2025 Week (1)'!$B$2:$L$335))))
Is there a different way to do lookup like this across multiple sheets without having to manually just to add up double XLookup for each sheet?
When I try doing a regular XLookup with the Vstack for the date rows instead of the Part numbers column, I get #Value!