How to make automatic unique ranking table if changing only week number?

Sochen

Board Regular
Joined
Dec 6, 2022
Messages
66
Office Version
  1. 2021
Platform
  1. Windows
Hi All,

I have the excel below which I want to make a dynamic table.
1. The data in the table automatically change if change the week number
2. Only top 5 categories (unique) will be appear in the table base on the sales performance

Book1
ABCDEFGHIJKLMNOPQR
1
2Change the week number from Week 2 to Week 3 as the result will automatically change in the table below
3
4
5Week No.DateCategoriesSalesWeek No.2Week No.3
6211-Jan-23Apple$ 50.00Rank.CategoriesTotal SalesRank.CategoriesTotal Sales
7211-Jan-23Mango$ 25.001Apple$ 90.001Banana$ 80.00
8211-Jan-23Banana$ 15.002Dragon fruits$ 55.002Apple$ 75.00
9211-Jan-23Orange$ 10.003Watermelon$ 45.003Strawberry$ 70.00
10214-Jan-23Apple$ 40.004Banana$ 40.004Orange$ 65.00
11214-Jan-23Mango$ 30.005Mango$ 35.005Cherry$ 60.00
12214-Jan-23Watermelon$ 20.00
13214-Jan-23Papaya$ 75.00Note:Update the Week No. to see the sale performance of any week.
14215-Jan-23Dragon fruits$ 15.00Once changing the week number, then the categories and total sales will automaticallt change. And only the top 5 categories will appear on the table.
15318-Jan-23Cherry$ 60.00
16318-Jan-23Apple$ 75.00
17318-Jan-23Strawberry$ 70.00
18318-Jan-23Grapes$ 30.00
19318-Jan-23Durian$ 20.00
20318-Jan-23Orange$ 55.00
21318-Jan-23Banana$ 35.00
22318-Jan-23Pineaple$ 55.00
23319-Jan-23Orange$ 10.00
24319-Jan-23Banana$ 45.00
25
Sheet1
Cell Formulas
RangeFormula
A6:A24A6=ISOWEEKNUM(B6)
 
Last edited:
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,223,164
Messages
6,170,435
Members
452,326
Latest member
johnshaji

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