Create a Table Summary

albert_de

New Member
Joined
Mar 16, 2020
Messages
42
Office Version
  1. 2021
Platform
  1. Windows
Hi

I am trying to workout how to create a specific summary of a table of sales information that is on a separate worksheet of a workbook. It's probably quite simple but I haven't been able to work it out yet!

For example the Data Table (Worksheet) might look like this:
1743402723342.png


The Summary Table has a Drop List to select the sales product from the Data sales. Selecting the product will return a sales list that includes all dates with sales figures in it. A sales date that does not have any sales figure entered against it should not be included in the summary table.

The Summary Table (worksheet) would look like this:
1743402786515.png


I don't know if a Pivot Table will work? And I haven't been able to workout a suitable "Filter" or XLookup" formula etc. So I am a bit lost now on how to create the Summary Table.

Is there an expert that can kindly guide me!
 
First use Power Query to unpivot your original table, then use the loaded result as data source for your filtering.
 
Upvote 0
Hi arthurbr, thank you for your reply. I hadn't completed the creation of the pivot table because I thought that the formatting of the table would not work for a pivot table. But I will give this another go and see what happens as per your instructions.

 
Upvote 0
Maybe:

Book1
ABCDEFGHIJK
1
2
3
41/1/20251/2/20252/2/20253/3/2025
5Product$ 22.50$ 83.75$ 57.55$ 20.30Sales Total
6Bar$ 16.00$ 18.25$ 15.30
7Glue$ 5.00$ 5.00$ 5.00$ 5.00
8Nail$ 60.50$ 50.55
9Tube$ 1.50$ 2.00
10
11
12
13Select Product:Bar
14
15All ResultsDateValueMinMaxVariation
161/1/2025$ 16.00$ 15.30$ 18.2516.2%
171/2/2025$ 18.25
183/3/2025$ 15.30
19
Sheet5
Cell Formulas
RangeFormula
G5:J5G5=SUM(G6:G9)
E16:F18E16=LET(a,FILTER(G6:J10,F6:F10=E13),b,FILTER(a,a<>""),d,FILTER(G4:J4,a<>""),CHOOSE({1,2},TRANSPOSE(d),TRANSPOSE(b)))
H16H16=MIN(INDEX(E16#,0,2))
I16I16=MAX(INDEX(E16#,0,2))
J16J16=(I16-H16)/I16
Dynamic array formulas.
 
Upvote 0
Solution
Hi Eric W, your Formula for E16 is the concept that I am looking for. Thank you very much. I wouldn't have figured that out for myself!
I have applied the E16 formula to the actual spreadsheet and I am getting a #CALC! Error.
I will try and see where my translation of your E16 formula has gone wrong for me and report back.
 
Upvote 0
You might get a CALC error if there are no matches, either on the part name, or if there are no values for that part.
 
Upvote 0
Understood, thank you for the advice.
In the test that I am running on the actual spreadsheet, there is actual Product data to match against (which should be identical - i.e. E16 is a List sourced from F6:F10) and with values against some of the Dates in the Date range.
I'll keep testing
 
Upvote 0
I have tried adding & translating the E16 formula into the workbook example shown at the start of this thread. But I haven't have any luck with it yet. It also creates #CALC! errors.
There are 2 worksheets - Data and Summary. The screenshot below is from the Summary worksheet containing the Filter formula. E5 contains the (Product Name) List generated from the Data Worksheet.
1743473334030.png
 
Upvote 0
That worked on the test Workbook...thank you for the correction. Let's see if I can do the same on the actual Workbook!
1743474075242.png
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top