Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Calculate data for previous 7 days

I am trying to sum the data for the previous week based on today's date.
The raw data is contained on one worksheet while i need the result on another.

I am using the SUMIF formula and am able to get data for a specific date or
all dates less than today or all dates greater than today.

Here is what I have: =(SUMIF('Weekly dates'!A1"AZ1,'<="&A5,Details!L7:N7))
I've tried using just = or using and I've tried to minus 7 but that gives
me just the data for the day 7 days previous. I need all the dates for the

Weekly dates is a spreadsheet with all the week ending dates
&A5 is the cell where the TODAY formula is located
Details!L7:N7 is the spreadsheet and cells that contain the data I need to
sum.

What is need is only the data in the previous week based on today's date.

Any ideas


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Calculate data for previous 7 days

The easiest way is =SUMIF(...,<=X,...)-SUMIF(...,<=X-8,...)

Hope that makes sense.

Sam


"Kesbutler" wrote:

I am trying to sum the data for the previous week based on today's date.
The raw data is contained on one worksheet while i need the result on another.

I am using the SUMIF formula and am able to get data for a specific date or
all dates less than today or all dates greater than today.

Here is what I have: =(SUMIF('Weekly dates'!A1"AZ1,'<="&A5,Details!L7:N7))
I've tried using just = or using and I've tried to minus 7 but that gives
me just the data for the day 7 days previous. I need all the dates for the

Weekly dates is a spreadsheet with all the week ending dates
&A5 is the cell where the TODAY formula is located
Details!L7:N7 is the spreadsheet and cells that contain the data I need to
sum.

What is need is only the data in the previous week based on today's date.

Any ideas


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Calculate data for previous 7 days

Hi Sam,

I tired and still get zero data when there are dollars for that week. Here
is what I ended up with for a formula.

=SUMIF('weekly dates'!A1:AZ1,"<=x"&A5,Details!L7:N7)-SUMIF('weekly
dates'!A1:AZ1,"<=x-8"&A5,Details!L7:N7)

Here is some more details that might help. We track financial spend weekly
but I need to be able to provide a report that will only contain the previous
weeks data. So we show only one week at a time.

On worksheet 1; I need to calulate only the previuos weeks data for a number
of projects. The weekly data is entered onto worksheet 2. I want worksheet 1
to auto calculate the financial data from worksheet 2 and update to show only
the previous week each week the current data is populated.

Make sense?


"Sam Wilson" wrote:

The easiest way is =SUMIF(...,<=X,...)-SUMIF(...,<=X-8,...)

Hope that makes sense.

Sam


"Kesbutler" wrote:

I am trying to sum the data for the previous week based on today's date.
The raw data is contained on one worksheet while i need the result on another.

I am using the SUMIF formula and am able to get data for a specific date or
all dates less than today or all dates greater than today.

Here is what I have: =(SUMIF('Weekly dates'!A1"AZ1,'<="&A5,Details!L7:N7))
I've tried using just = or using and I've tried to minus 7 but that gives
me just the data for the day 7 days previous. I need all the dates for the

Weekly dates is a spreadsheet with all the week ending dates
&A5 is the cell where the TODAY formula is located
Details!L7:N7 is the spreadsheet and cells that contain the data I need to
sum.

What is need is only the data in the previous week based on today's date.

Any ideas


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Calculate data for previous 7 days

Correction. I updated your suggestions to be correct (duh) and it appears to
be working now.

Thanks!
"Kesbutler" wrote:

Hi Sam,

I tired and still get zero data when there are dollars for that week. Here
is what I ended up with for a formula.

=SUMIF('weekly dates'!A1:AZ1,"<=x"&A5,Details!L7:N7)-SUMIF('weekly
dates'!A1:AZ1,"<=x-8"&A5,Details!L7:N7)

Here is some more details that might help. We track financial spend weekly
but I need to be able to provide a report that will only contain the previous
weeks data. So we show only one week at a time.

On worksheet 1; I need to calulate only the previuos weeks data for a number
of projects. The weekly data is entered onto worksheet 2. I want worksheet 1
to auto calculate the financial data from worksheet 2 and update to show only
the previous week each week the current data is populated.

Make sense?


"Sam Wilson" wrote:

The easiest way is =SUMIF(...,<=X,...)-SUMIF(...,<=X-8,...)

Hope that makes sense.

Sam


"Kesbutler" wrote:

I am trying to sum the data for the previous week based on today's date.
The raw data is contained on one worksheet while i need the result on another.

I am using the SUMIF formula and am able to get data for a specific date or
all dates less than today or all dates greater than today.

Here is what I have: =(SUMIF('Weekly dates'!A1"AZ1,'<="&A5,Details!L7:N7))
I've tried using just = or using and I've tried to minus 7 but that gives
me just the data for the day 7 days previous. I need all the dates for the

Weekly dates is a spreadsheet with all the week ending dates
&A5 is the cell where the TODAY formula is located
Details!L7:N7 is the spreadsheet and cells that contain the data I need to
sum.

What is need is only the data in the previous week based on today's date.

Any ideas


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically calculate the previous days total 'sales' PVANS Excel Discussion (Misc queries) 6 July 17th 09 11:09 AM
7 previous days average Carlee Excel Worksheet Functions 9 October 28th 07 09:02 PM
Copy old Data from web query while keeping previous days data DRobidoux Excel Worksheet Functions 0 March 22nd 06 01:56 PM
25 days previous to today? MaQ Excel Discussion (Misc queries) 5 March 14th 06 06:57 PM
date functions for previous 60/90/180 days BBranch Excel Worksheet Functions 2 September 2nd 05 05:31 PM


All times are GMT +1. The time now is 07:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"