PC Review


Reply
Thread Tools Rate Thread

Calculate data for previous 7 days

 
 
Kesbutler
Guest
Posts: n/a
 
      9th Apr 2009
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 With Quote
 
 
 
 
Sam Wilson
Guest
Posts: n/a
 
      9th Apr 2009
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 With Quote
 
Kesbutler
Guest
Posts: n/a
 
      9th Apr 2009
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 With Quote
 
Kesbutler
Guest
Posts: n/a
 
      9th Apr 2009
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically calculate the previous days total 'sales' PVANS Microsoft Excel Misc 6 17th Jul 2009 11:09 AM
RE: Using previous data to calculate results Dave Microsoft Access Queries 5 21st Aug 2008 08:26 PM
Auto export of previous days data from MS SQL table elainejhnsn@yahoo.com Microsoft Access Queries 1 8th Mar 2007 04:42 PM
Copy old Data from web query while keeping previous days data =?Utf-8?B?RFJvYmlkb3V4?= Microsoft Excel Worksheet Functions 0 22nd Mar 2006 01:56 PM
Calculate the number days from previous record =?Utf-8?B?RG91Z2xhcyBNZXJyaWxs?= Microsoft Access 7 27th Jun 2005 01:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 PM.