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 How to sum data from another sheet using date ranges?

I need to sum data from a colum using a specific date range from another
excel sheet. Sheet 1 contains my summary page extracting the sum from sheet
2 by listing date ranges on sheet 1 to find corresponding numerical data to
be summed that fall in the date ranges. Any ideas where to start?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default How to sum data from another sheet using date ranges?

Your post wants for a few more details....but here's a guess:

With Sheet1
A1: (start date)
A2: (end date)

And....on sheet2...
Col_A contains dates
Col_B contains account names
Col_C contains numbers

Try something like this:
On Sheet1...
C1: =SUMPRODUCT((Sheet2!A1:A100=A1)*(Sheet2!A1:A100<= A2)*(Sheet2!C1:C100))

Or...if you want to sum amounts for a certain account names in the date range
On Sheet1!A3: (the account name)
and the formula should be:
C1:
=SUMPRODUCT((Sheet2!A1:A100=A1)*(Sheet2!A1:A100<= A2)*(Sheet2!B1:B100=A3)*(Sheet2!C1:C100))

Adjust range references to suit your situation.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Heeder07" wrote:

I need to sum data from a colum using a specific date range from another
excel sheet. Sheet 1 contains my summary page extracting the sum from sheet
2 by listing date ranges on sheet 1 to find corresponding numerical data to
be summed that fall in the date ranges. Any ideas where to start?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to sum data from another sheet using date ranges?

Ron,

Thank you for the feedback. Your post has me starting in the right
direction but is it possible for the range of cells to be a full column or
does it have to be cell range specific? Otherwise, your feedback is most
appreciated.

"Ron Coderre" wrote:

Your post wants for a few more details....but here's a guess:

With Sheet1
A1: (start date)
A2: (end date)

And....on sheet2...
Col_A contains dates
Col_B contains account names
Col_C contains numbers

Try something like this:
On Sheet1...
C1: =SUMPRODUCT((Sheet2!A1:A100=A1)*(Sheet2!A1:A100<= A2)*(Sheet2!C1:C100))

Or...if you want to sum amounts for a certain account names in the date range
On Sheet1!A3: (the account name)
and the formula should be:
C1:
=SUMPRODUCT((Sheet2!A1:A100=A1)*(Sheet2!A1:A100<= A2)*(Sheet2!B1:B100=A3)*(Sheet2!C1:C100))

Adjust range references to suit your situation.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Heeder07" wrote:

I need to sum data from a colum using a specific date range from another
excel sheet. Sheet 1 contains my summary page extracting the sum from sheet
2 by listing date ranges on sheet 1 to find corresponding numerical data to
be summed that fall in the date ranges. Any ideas where to start?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default How to sum data from another sheet using date ranges?

Check out sumif

"Heeder07" wrote:

Ron,

Thank you for the feedback. Your post has me starting in the right
direction but is it possible for the range of cells to be a full column or
does it have to be cell range specific? Otherwise, your feedback is most
appreciated.

"Ron Coderre" wrote:

Your post wants for a few more details....but here's a guess:

With Sheet1
A1: (start date)
A2: (end date)

And....on sheet2...
Col_A contains dates
Col_B contains account names
Col_C contains numbers

Try something like this:
On Sheet1...
C1: =SUMPRODUCT((Sheet2!A1:A100=A1)*(Sheet2!A1:A100<= A2)*(Sheet2!C1:C100))

Or...if you want to sum amounts for a certain account names in the date range
On Sheet1!A3: (the account name)
and the formula should be:
C1:
=SUMPRODUCT((Sheet2!A1:A100=A1)*(Sheet2!A1:A100<= A2)*(Sheet2!B1:B100=A3)*(Sheet2!C1:C100))

Adjust range references to suit your situation.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Heeder07" wrote:

I need to sum data from a colum using a specific date range from another
excel sheet. Sheet 1 contains my summary page extracting the sum from sheet
2 by listing date ranges on sheet 1 to find corresponding numerical data to
be summed that fall in the date ranges. Any ideas where to start?

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
sorting 2 colums of numbers and incremening them down blk&wht Excel Discussion (Misc queries) 10 October 9th 06 10:12 PM
macro unouwanme Excel Discussion (Misc queries) 9 August 31st 06 09:38 PM
Moving data based on date ranges Wendy Excel Worksheet Functions 1 July 6th 06 06:04 PM
Inputting data to one worksheet for it effect another daedalus1 Excel Discussion (Misc queries) 1 June 25th 06 04:39 PM
data from one sheet to several in sequential order! firecord New Users to Excel 6 June 22nd 05 05:10 PM


All times are GMT +1. The time now is 05:00 PM.

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

About Us

"It's about Microsoft Excel"