Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Identifying a selection of a selection of a range

Hello -

I want to add one column based on bgn/end date parameters, and account.
I've tried using a combination of SUMIF and OFFSET without success. Assume
the following data:

*Data will be in chronological order.
*It's possible records will not exist for the first or last day of the month.

A B C
1 Begin Dt 01/01/07
2 End Dt 01/31/07
3 Acct. 1
4
5 Date Acct Amt
6 01/02/07 001 $100.00
7 01/03/07 001 $2.00
8 01/04/07 002 $75.00
9 02/06/07 001 $20.00
10 02/28/07 001 $42.00
11 03/01/07 004 $11.00
12 03/02/07 003 $22.00

From this data, I would expect the formula to return $102.00.

I know this is easy in SQL, but is it possible using formulas?

Any thoughts on this would be greatly appreciated!!

Sincerely,
Patrick
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Identifying a selection of a selection of a range

=SUMPRODUCT(--(A6:A12=B1),--(A6:A12<=B2),--(B6:B12=B3),C6:C12)


"swimfast" wrote:

Hello -

I want to add one column based on bgn/end date parameters, and account.
I've tried using a combination of SUMIF and OFFSET without success. Assume
the following data:

*Data will be in chronological order.
*It's possible records will not exist for the first or last day of the month.

A B C
1 Begin Dt 01/01/07
2 End Dt 01/31/07
3 Acct. 1
4
5 Date Acct Amt
6 01/02/07 001 $100.00
7 01/03/07 001 $2.00
8 01/04/07 002 $75.00
9 02/06/07 001 $20.00
10 02/28/07 001 $42.00
11 03/01/07 004 $11.00
12 03/02/07 003 $22.00

From this data, I would expect the formula to return $102.00.

I know this is easy in SQL, but is it possible using formulas?

Any thoughts on this would be greatly appreciated!!

Sincerely,
Patrick

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
Range selection rule? dk_ Excel Discussion (Misc queries) 11 December 7th 06 10:00 AM
Active range/selection? anita Excel Worksheet Functions 9 September 20th 06 01:35 PM
Range Selection cfspahn24 Excel Discussion (Misc queries) 3 April 14th 06 01:29 PM
Selection Range ch Excel Discussion (Misc queries) 5 July 15th 05 05:50 AM
random selection from a range of cells tjb Excel Worksheet Functions 1 February 15th 05 06:34 PM


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