Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Using a month as a trigger to do a calculation

I have a spreadsheet that has entries set out by date. I now need to break
that data out by month so it can be totaled. Have tried a couple of
solutions and am not finding something that really gets me what I need.
Basically what I need to do is:

If cell E1 is a date in June I need to total the dollars in columns E4-E7.
If the month is not June then I do not need it to do anything. Would need to
to the same for each month of year in different columns.

Currentlyl I am doing this manually and looking for a better solution that
eliminates the manual input. Any ideas would be welcome.



--
debra
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Using a month as a trigger to do a calculation

=IF(MONTH(E1)=6,SUM(E4:E7),"")
See if that doesn't help.

"debra" wrote:

I have a spreadsheet that has entries set out by date. I now need to break
that data out by month so it can be totaled. Have tried a couple of
solutions and am not finding something that really gets me what I need.
Basically what I need to do is:

If cell E1 is a date in June I need to total the dollars in columns E4-E7.
If the month is not June then I do not need it to do anything. Would need to
to the same for each month of year in different columns.

Currentlyl I am doing this manually and looking for a better solution that
eliminates the manual input. Any ideas would be welcome.



--
debra

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default Using a month as a trigger to do a calculation

Hello debra, at the most basic level you can use a formula like

=IF(MONTH(E1)=6,SUM(E4:E7),"")

Does that help? Note: this won't differentiate by year

"debra" wrote:

I have a spreadsheet that has entries set out by date. I now need to break
that data out by month so it can be totaled. Have tried a couple of
solutions and am not finding something that really gets me what I need.
Basically what I need to do is:

If cell E1 is a date in June I need to total the dollars in columns E4-E7.
If the month is not June then I do not need it to do anything. Would need to
to the same for each month of year in different columns.

Currentlyl I am doing this manually and looking for a better solution that
eliminates the manual input. Any ideas would be welcome.



--
debra

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Using a month as a trigger to do a calculation

I use Excel 2003

The month() function will return the number of the month of a date, from
1-12. You can use this in combination with a lookup function to retrieve the
month name from a list if you need / want the name

1 January
2 February
3 March
....

To do the summation, you might look into the subtotals command in
conjunction with the above.


"debra" wrote:

I have a spreadsheet that has entries set out by date. I now need to break
that data out by month so it can be totaled. Have tried a couple of
solutions and am not finding something that really gets me what I need.
Basically what I need to do is:

If cell E1 is a date in June I need to total the dollars in columns E4-E7.
If the month is not June then I do not need it to do anything. Would need to
to the same for each month of year in different columns.

Currentlyl I am doing this manually and looking for a better solution that
eliminates the manual input. Any ideas would be welcome.



--
debra

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
add text in a cell to trigger a calculation noddy47 Excel Worksheet Functions 3 October 24th 06 09:02 AM
Last Day Of Month Calculation... Jay Excel Worksheet Functions 3 July 11th 06 03:17 PM
Month end calculation Tony Excel Worksheet Functions 12 March 24th 06 12:56 AM
MOREFUNC.XLL - RECALL() to trigger once only calculation? rhay999 Excel Discussion (Misc queries) 0 October 16th 05 06:01 PM
month-to-month calculation Colin2u Excel Discussion (Misc queries) 0 July 27th 05 01:32 AM


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