#1   Report Post  
Hans
 
Posts: n/a
Default Sum per month

Hi

I use the following sheet for interest calculation (very simplified):

CoL
A beginning date
B end date (always in the same month as A)
C Interest amount calculation (using days between A and B)

In a different sheet I want to total the amounts in column C PER MONTH, but
the problem is that due to changing interest rates not every month has the
same number of amounts (that is rows). For example, April might have only one
amount (so in the same row A will be 01-apr and B 30-apr), but May 2 or 3 (so
01-May will be in a different row than 31-May, making it impossible to use
the VLOOKUP formula).

Does anyone know how to solve this, without adding an extra column to my
sheet?

Hans




  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Data list on Sheet1.
Say that Sheet2 has month and year in Column A.
Try this in ColumnB of Sheet2:

=SUMPRODUCT((TEXT(Sheet1!$A$2:$A$50,"mm/yy")=TEXT(A2,"mm/yy"))*(Sheet1!$C$2:
$C$50))

And drag down to copy as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Hans" wrote in message
...
Hi

I use the following sheet for interest calculation (very simplified):

CoL
A beginning date
B end date (always in the same month as A)
C Interest amount calculation (using days between A and B)

In a different sheet I want to total the amounts in column C PER MONTH,

but
the problem is that due to changing interest rates not every month has the
same number of amounts (that is rows). For example, April might have only

one
amount (so in the same row A will be 01-apr and B 30-apr), but May 2 or 3

(so
01-May will be in a different row than 31-May, making it impossible to use
the VLOOKUP formula).

Does anyone know how to solve this, without adding an extra column to my
sheet?

Hans





  #3   Report Post  
Hans
 
Posts: n/a
Default

Thanks, it works!

Hans

"Hans" wrote:

Hi

I use the following sheet for interest calculation (very simplified):

CoL
A beginning date
B end date (always in the same month as A)
C Interest amount calculation (using days between A and B)

In a different sheet I want to total the amounts in column C PER MONTH, but
the problem is that due to changing interest rates not every month has the
same number of amounts (that is rows). For example, April might have only one
amount (so in the same row A will be 01-apr and B 30-apr), but May 2 or 3 (so
01-May will be in a different row than 31-May, making it impossible to use
the VLOOKUP formula).

Does anyone know how to solve this, without adding an extra column to my
sheet?

Hans




  #4   Report Post  
RagDyeR
 
Posts: n/a
Default

AND thank you for the feed-back.
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"Hans" wrote in message
...
Thanks, it works!

Hans

"Hans" wrote:

Hi

I use the following sheet for interest calculation (very simplified):

CoL
A beginning date
B end date (always in the same month as A)
C Interest amount calculation (using days between A and B)

In a different sheet I want to total the amounts in column C PER MONTH,

but
the problem is that due to changing interest rates not every month has the
same number of amounts (that is rows). For example, April might have only

one
amount (so in the same row A will be 01-apr and B 30-apr), but May 2 or 3

(so
01-May will be in a different row than 31-May, making it impossible to use
the VLOOKUP formula).

Does anyone know how to solve this, without adding an extra column to my
sheet?

Hans






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
UserForm to select current month or earlier Steve Excel Discussion (Misc queries) 2 January 21st 05 09:41 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM
PivotTable - Count by Month Gigi Excel Worksheet Functions 3 January 1st 05 12:30 PM
Pivot Table - Group by Month - Show Items with no data Dan Reynolds Excel Discussion (Misc queries) 0 November 28th 04 01:01 AM
calculate month from week number ankman Excel Worksheet Functions 2 November 24th 04 01:27 AM


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