Trying to summarize this daily, weekly and monthly

Uzma Shaheen

Active Member
Joined
Nov 10, 2012
Messages
484
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
  3. Web
Hi

I have some raw data like this

DateTEAMSVOLUME
01/01/2015TEAM197
01/01/2015TEAM213
01/01/2015TEAM359
01/01/2015TEAM4100
01/01/2015TEAM583
02/01/2015TEAM124
02/01/2015TEAM231
02/01/2015TEAM383
02/01/2015TEAM438
02/01/2015TEAM531
03/01/2015TEAM180
03/01/2015TEAM262
03/01/2015TEAM377
03/01/2015TEAM44
03/01/2015TEAM588
05/01/2015TEAM139
05/01/2015TEAM298
05/01/2015TEAM334
05/01/2015TEAM416
05/01/2015TEAM588
06/01/2015TEAM137
06/01/2015TEAM2100
06/01/2015TEAM352
06/01/2015TEAM469
06/01/2015TEAM534



<colgroup><col><col><col></colgroup><tbody>
</tbody>


I have a scroll bar to scroll and 3 option buttons (Daily, Weekly and Monthly)

Now i want to be able to be flexible and change the view depending on my selection

I have a data validation in G2 which has all the unique dates in there

For daily summary

I have these formulas

=IFERROR(INDEX($A$2:$A$50000,MATCH($G$2,$A$2:$A$50000,0)+$F$1),"")
Day selected

=IFERROR(INDEX($A$2:$A$50000,MATCH($E$11,$A$2:$A$50000,0)+5),"")
Next day found

TEAMSVol - 05 01 2015Vol - 06 01 2015
TEAM13937
TEAM298100
TEAM33452
TEAM41669
TEAM58834

<colgroup><col><col><col></colgroup><tbody>
</tbody>

The formulas i use above to get the data for those days are

=IFERROR(INDEX($C$2:$C$50000,MATCH($I2,$B$2:$B$50000,0)+MATCH($E$11,$A$2:$A$50000,0)-1),"")

=IFERROR(INDEX($C$2:$C$50000,MATCH($I2,$B$2:$B$50000,0)+MATCH($E$12,$A$2:$A$50000,0)-1),"")

Now how can i amend to change the dates to show me weekly and Monthly?

So if i select a day i would want it to give me the total for that week and the total for the next week found?

I hope this makes sense
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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