#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Array

I have values from a2:a500 which contains various dates(not sorted) and
amount in b2:b500.

I would like to sum, where month(a2:a500) represents my values in
c2:c13(Jan,Feb ... Dec)

Please advice ...

TIV.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Array

in D2:

=SUMPRODUCT(--(MONTH($A$2:$A$500)=MONTH(C2)),$B$2:$B$500)

where C2=01/01/2007 i.e. 1st January (for any year) formatted as "mmm"
C3=01/02/2007 i.e. 1st February (for any year)


Copy down to C13

"Amul" wrote:

I have values from a2:a500 which contains various dates(not sorted) and
amount in b2:b500.

I would like to sum, where month(a2:a500) represents my values in
c2:c13(Jan,Feb ... Dec)

Please advice ...

TIV.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Array

In D2:

=SUMPRODUCT(B2:B500*(TEXT(A2:A500,"mmm")=C2))

HTH
Kostis Vezerides

On Jul 25, 11:50 am, Amul wrote:
I have values from a2:a500 which contains various dates(not sorted) and
amount in b2:b500.

I would like to sum, where month(a2:a500) represents my values in
c2:c13(Jan,Feb ... Dec)

Please advice ...

TIV.



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
How to manipulate an 2D Array into a Column Array? Joe Excel Discussion (Misc queries) 3 April 16th 07 06:30 PM
Array: Counting multiple values within array Trilux_nogo Excel Worksheet Functions 4 April 16th 07 03:12 AM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
combining cells and array from different sheets into an array to pass to IRR() [email protected] Excel Discussion (Misc queries) 3 September 11th 06 07:17 AM
Goal Seek On Members of an Array within Array LostInVBA Excel Worksheet Functions 1 June 27th 05 11:01 PM


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