Hi there,
So, let me try to explain the situation. I can create a dump file from SAP in Excel, which has a.o. the following columns:The excel file in attachment is a dummy file, heavily simplified, but should give you an idea.
- Column A: Customer number
- Column B: Customer name
- Column C: Customer country
- Column D: Product category
- Column E: Product number
- Column F: Product name
- Column G: Cartons sold
The idea would be to have an up-to-date overview such as shown in the tabs "123", "456" and "789", which I've created manually for now.
My dream scenario would be that I fill in the client number in Cell B2 in the tab "TEMPLATE" and then automatically everything else appears. So it looks just as in the tabs "123", "456" and "789". That means:
- Cell B3: Customer name (easy VLOOKUP)
- Cell B4: Customer country (easy VLOOKUP)
- Under Product category M, all product numbers that fall under said category should be listed. With a simple VLOOKUP the Product Name can be added in column B. Then I'd like to have the sum of all cartons sold for said reference in column C.
- Similar for all other Product categories.
The workaround I have now is to simply filter or to make a pivot table. But this is obviously not ideal. Furthermore, the actual tab "TEMPLATE" is much more advanced than the one attached here, with dozens of columns and rows more and multiple formulas. So I'd really like a solution that automatically feeds the green cells in the sheet TEMPLATE in the excel sheet attached.
Not sure if relevant, but for the sake of completeness:
- Assume roughly 50 customer numbers/names
- Assume roughly 10 product categories
- Assume roughly 300 products
- Assume multiple 1000s of lines in the DATA dump
Though I'm quite familiar with pivot tables, VLOOKUP, HLOOKUP, INDEX, MATCH, IF, SUMIF, ... I can't seem to find an automated solution for this particular problem. Any suggestion will be highly appreciated! Please don't hesitate to reply should you need further information.
Cheers,
Tom
Bookmarks