Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula in one sheet to find first occurrence of date in another

I have an Excel file that contains one spreadsheet containing dates
and payments, and a second statistical spreadsheet that contains
monthly totals. The totals are to be referenced by from and to dates
(i.e. start and end of each month), and I want a formula in the third
(total) cell that is the sum of all the payments appearing in the
first sheet between the from and to date.

Could someone please help?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Formula in one sheet to find first occurrence of date in another

Hi
You could use SUMPRODUCT eg:
=SUMPRODUCT((Sheet1!C2:C500=DATEVALUE("01/04/2008"))*(Sheet1!C2:C500<=DATEVALUE("30/04/2008"))*(Sheet1!B2:B500))

Where dates would be in range C2 to C500 Sheet1 and Amounts in range B2 to
B500 Sheet1

Please amend accordingly (especially date formats and ranges)

HTH
Cordially
Pascal


"Simple Simon" a écrit dans le message de news:
...
I have an Excel file that contains one spreadsheet containing dates
and payments, and a second statistical spreadsheet that contains
monthly totals. The totals are to be referenced by from and to dates
(i.e. start and end of each month), and I want a formula in the third
(total) cell that is the sum of all the payments appearing in the
first sheet between the from and to date.

Could someone please help?



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
Find Last Occurrence of Number KimC Excel Discussion (Misc queries) 4 January 12th 09 03:24 AM
Need help on Excel formula to find an occurrence and display numbers [email protected] Excel Worksheet Functions 13 May 13th 07 05:21 PM
How to find SECOND occurrence in a string? Bill_S Excel Worksheet Functions 4 March 19th 07 06:49 PM
Find nth occurrence and replace with ":" marlea Excel Worksheet Functions 4 October 5th 05 10:43 PM
find last occurrence REMnLYN Excel Worksheet Functions 9 March 29th 05 10:43 AM


All times are GMT +1. The time now is 06:54 PM.

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"