ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using a month as a trigger to do a calculation (https://www.excelbanter.com/excel-discussion-misc-queries/167515-using-month-trigger-do-calculation.html)

Debra

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

JLatham

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


daddylonglegs

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


Flick Olmsford

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



All times are GMT +1. The time now is 01:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com