Calculating values based on week

solo9999

Board Regular
Joined
May 23, 2011
Messages
82
Hi all,

I have the following scenario:

A table that lists several rows of data for every day. For example:


trip # | trip date | number of passengers | $ paid
------------------------------------------------
123 | 01/07 | 5 | $184
------------------------------------------------
874 | 02/07 | 5 | $154
------------------------------------------------
697 | 03/07 | 5 | $151
------------------------------------------------
987 | 03/07 | 5 | $154
------------------------------------------------
988 | 04/07 | 5 | $174
------------------------------------------------
143 | 04/07 | 5 | $156
------------------------------------------------
823 | 05/07 | 5 | $177
------------------------------------------------

Every Friday, a weekly report is done for the week before

So when we are in week 32, that Friday a report is done for Week 31

The problem is that currently I have to go and manually select the dates from the week I am doing the report for and sum the data up. And I have about 25 of those sheets!

The idea is to create tables that can produce a report based on a week. A dropdown menu with weeks 1, week 2 etc. When the user selects let's say week 30 from the dropdown, Excel would do maybe a vlookup, find all the entries that belong to week 30 and sum up the $ paid for week 30. Is that possible?

!THANKS!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Thanks. The issue that I am also having is how to formulate it based on weeks. In other words, how will Excel know which dates to search for when I select let's say week 35 from the list
 
Upvote 0

Forum statistics

Threads
1,224,545
Messages
6,179,432
Members
452,915
Latest member
hannnahheileen

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