Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Don is offline
external usenet poster
 
Posts: 487
Default Summing between two dates

I have a list of sales data. Column A is a list of dates (workdays). Column
B is the corresponding sales for those days.

I need to write a formula that will give me the sum of prior years sales
from the first of that year to the current date of that year. For instance,
today's date is 7/29/08. I want a formula that will sum the sales between
1/1/07 through 7/29/07. Any help would be appreciated.
--
Don Rountree
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Summing between two dates

One way, in say, C1:
=SUMPRODUCT((A2:A100=DATE(YEAR(TODAY())-1,1,1))*(A2:A100<=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))),B2:B100)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"Don" wrote:
I have a list of sales data. Column A is a list of dates (workdays). Column
B is the corresponding sales for those days.

I need to write a formula that will give me the sum of prior years sales
from the first of that year to the current date of that year. For instance,
today's date is 7/29/08. I want a formula that will sum the sales between
1/1/07 through 7/29/07. Any help would be appreciated.
--
Don Rountree

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Summing between two dates

Try this:

=SUMPRODUCT((A1:A100=DATE(YEAR(TODAY())-1,1,1))*(A1:A100<=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())))*B1:B100)

Hope this helps.

Pete

On Jul 29, 1:46*pm, Don wrote:
I have a list of sales data. *Column A is a list of dates (workdays). *Column
B is the corresponding sales for those days.

I need to write a formula that will give me the sum of prior years sales
from the first of that year to the current date of that year. *For instance,
today's date is 7/29/08. *I want a formula that will sum the sales between
1/1/07 through 7/29/07. *Any help would be appreciated.
--
Don Rountree


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Don is offline
external usenet poster
 
Posts: 487
Default Summing between two dates

Thank you.
--
Don Rountree


"Pete_UK" wrote:

Try this:

=SUMPRODUCT((A1:A100=DATE(YEAR(TODAY())-1,1,1))*(A1:A100<=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())))*B1:B100)

Hope this helps.

Pete

On Jul 29, 1:46 pm, Don wrote:
I have a list of sales data. Column A is a list of dates (workdays). Column
B is the corresponding sales for those days.

I need to write a formula that will give me the sum of prior years sales
from the first of that year to the current date of that year. For instance,
today's date is 7/29/08. I want a formula that will sum the sales between
1/1/07 through 7/29/07. Any help would be appreciated.
--
Don Rountree



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Don is offline
external usenet poster
 
Posts: 487
Default Summing between two dates

Thank you.
--
Don Rountree


"Max" wrote:

One way, in say, C1:
=SUMPRODUCT((A2:A100=DATE(YEAR(TODAY())-1,1,1))*(A2:A100<=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))),B2:B100)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"Don" wrote:
I have a list of sales data. Column A is a list of dates (workdays). Column
B is the corresponding sales for those days.

I need to write a formula that will give me the sum of prior years sales
from the first of that year to the current date of that year. For instance,
today's date is 7/29/08. I want a formula that will sum the sales between
1/1/07 through 7/29/07. Any help would be appreciated.
--
Don Rountree



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Summing between two dates

Welcome, Don. Pl press the Yes button (like the one below from where you're
reading this) in both responses which helped.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"Don" wrote:
Thank you.
--
Don Rountree


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Summing between two dates

You're welcome, Don. I see that Max and I came up wth virtually the
same solution.

Pete

On Jul 29, 2:28*pm, Don wrote:
Thank you.
--
Don Rountree

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
Summing cells containing dates Laura Excel Worksheet Functions 4 May 9th 08 08:05 PM
problem summing columns with dates lampatmyfeet Excel Worksheet Functions 2 May 9th 08 04:41 PM
Summing between 2 dates Ken[_2_] Excel Worksheet Functions 2 September 6th 07 10:31 PM
Summing values b/t two dates starguy Excel Discussion (Misc queries) 3 April 26th 06 07:39 AM
Summing weekending dates Jim Excel Worksheet Functions 1 January 17th 06 02:42 AM


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