Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding the last 8 days of data

I have cols. for each day of the month starting with the 1st.. In col A is
the grand total of the last 8 days of data. How would I create a formula to
add the last 8 days of data automaticlly from todays date.
Ex. Col A...Col B........Col M
69 12 8.... 11
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Adding the last 8 days of data

Not sure what the significance of today's date has to do with it.

If you enter data daily then from tomorrows date to the end of the month
there will be no data. Is that correct? If so, then don't you just need the
*last* 8 entries in the row? Also, today's date is 8/4 so there aren't 8
entries for the month, right?

--
Biff
Microsoft Excel MVP


"kcholly" wrote in message
...
I have cols. for each day of the month starting with the 1st.. In col A is
the grand total of the last 8 days of data. How would I create a formula
to
add the last 8 days of data automaticlly from todays date.
Ex. Col A...Col B........Col M
69 12 8.... 11



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding the last 8 days of data

What you just stated is correct. To make myself clear,
I would need the data for the following:
July 28, July 29, July 30, July 31,....Aug 4. Then
Tomorrow's data would be from July 29..............Aug 5.

"T. Valko" wrote in message
...
Not sure what the significance of today's date has to do with it.

If you enter data daily then from tomorrows date to the end of the month
there will be no data. Is that correct? If so, then don't you just need
the *last* 8 entries in the row? Also, today's date is 8/4 so there aren't
8 entries for the month, right?

--
Biff
Microsoft Excel MVP


"kcholly" wrote in message
...
I have cols. for each day of the month starting with the 1st.. In col A
is
the grand total of the last 8 days of data. How would I create a formula
to
add the last 8 days of data automaticlly from todays date.
Ex. Col A...Col B........Col M
69 12 8.... 11




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Adding the last 8 days of data

Try this array formula** :

=SUM(AF2:INDEX(B2:AF2,LARGE((COLUMN(B2:AF2)-COLUMN(B2)+1)*(B2:AF2<""),8)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

That will sum the last 8 entries in the range. If there are less than 8
entries it will sum whatever's there.

Adjust for the correct end of range. I've assumed AF2 would be for the last
day of the month in a 31 day month.

--
Biff
Microsoft Excel MVP


"Kcholly" wrote in message
...
What you just stated is correct. To make myself clear,
I would need the data for the following:
July 28, July 29, July 30, July 31,....Aug 4. Then
Tomorrow's data would be from July 29..............Aug 5.

"T. Valko" wrote in message
...
Not sure what the significance of today's date has to do with it.

If you enter data daily then from tomorrows date to the end of the month
there will be no data. Is that correct? If so, then don't you just need
the *last* 8 entries in the row? Also, today's date is 8/4 so there
aren't 8 entries for the month, right?

--
Biff
Microsoft Excel MVP


"kcholly" wrote in message
...
I have cols. for each day of the month starting with the 1st.. In col A
is
the grand total of the last 8 days of data. How would I create a formula
to
add the last 8 days of data automaticlly from todays date.
Ex. Col A...Col B........Col M
69 12 8.... 11






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Adding the last 8 days of data

Thanks, worked like a charm...........

"T. Valko" wrote:

Try this array formula** :

=SUM(AF2:INDEX(B2:AF2,LARGE((COLUMN(B2:AF2)-COLUMN(B2)+1)*(B2:AF2<""),8)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

That will sum the last 8 entries in the range. If there are less than 8
entries it will sum whatever's there.

Adjust for the correct end of range. I've assumed AF2 would be for the last
day of the month in a 31 day month.

--
Biff
Microsoft Excel MVP


"Kcholly" wrote in message
...
What you just stated is correct. To make myself clear,
I would need the data for the following:
July 28, July 29, July 30, July 31,....Aug 4. Then
Tomorrow's data would be from July 29..............Aug 5.

"T. Valko" wrote in message
...
Not sure what the significance of today's date has to do with it.

If you enter data daily then from tomorrows date to the end of the month
there will be no data. Is that correct? If so, then don't you just need
the *last* 8 entries in the row? Also, today's date is 8/4 so there
aren't 8 entries for the month, right?

--
Biff
Microsoft Excel MVP


"kcholly" wrote in message
...
I have cols. for each day of the month starting with the 1st.. In col A
is
the grand total of the last 8 days of data. How would I create a formula
to
add the last 8 days of data automaticlly from todays date.
Ex. Col A...Col B........Col M
69 12 8.... 11








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Adding the last 8 days of data

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"kcholly" wrote in message
...
Thanks, worked like a charm...........

"T. Valko" wrote:

Try this array formula** :

=SUM(AF2:INDEX(B2:AF2,LARGE((COLUMN(B2:AF2)-COLUMN(B2)+1)*(B2:AF2<""),8)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

That will sum the last 8 entries in the range. If there are less than 8
entries it will sum whatever's there.

Adjust for the correct end of range. I've assumed AF2 would be for the
last
day of the month in a 31 day month.

--
Biff
Microsoft Excel MVP


"Kcholly" wrote in message
...
What you just stated is correct. To make myself clear,
I would need the data for the following:
July 28, July 29, July 30, July 31,....Aug 4. Then
Tomorrow's data would be from July 29..............Aug 5.

"T. Valko" wrote in message
...
Not sure what the significance of today's date has to do with it.

If you enter data daily then from tomorrows date to the end of the
month
there will be no data. Is that correct? If so, then don't you just
need
the *last* 8 entries in the row? Also, today's date is 8/4 so there
aren't 8 entries for the month, right?

--
Biff
Microsoft Excel MVP


"kcholly" wrote in message
...
I have cols. for each day of the month starting with the 1st.. In col
A
is
the grand total of the last 8 days of data. How would I create a
formula
to
add the last 8 days of data automaticlly from todays date.
Ex. Col A...Col B........Col M
69 12 8.... 11








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
Adding Days Toast Excel Worksheet Functions 2 January 25th 09 05:03 AM
Adding 2 days to a day [email protected] Excel Discussion (Misc queries) 3 October 29th 07 07:39 PM
Sum error when adding 31 days kmaki Excel Discussion (Misc queries) 6 September 11th 07 10:09 PM
adding days jcool12 Excel Discussion (Misc queries) 4 June 14th 06 09:25 AM
Adding days Mike R Excel Discussion (Misc queries) 8 February 21st 05 03:11 AM


All times are GMT +1. The time now is 02:25 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"