Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Changing formula totals

I have a spreadsheet with sub-totals which calculate the columns at the
bottom - like below.

April 1.00
May 2.00
August 1.50
September 3.00
October 5.00
Etc.
Sub-totals:- 12.50

The information for September and October is hidden by using conditional
formatting and will only be visible at the end of the respective month.
Unfortunately though, the information is still showing in the sub-total. In
the example above, I only want the sub-total to show 4.50, then at the end of
September it should be 7.50.

I don't want to have to keep chaning the formula every month to include the
extra line and believe there must be a way to do this.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Changing formula totals

Thanks for your help Roger. It works partially.

The formula I have added is:-
=SUMIF(A6:A17,"<="&DATE(YEAR(TODAY()),MONTH(TODAY( )),0),K6:K17)

I have the dates set up as you described in columm A. It worked with what
was on the spreadsheet already and gave the correct totals. However to test
it, I changed September's date from 30/09 to 03/09 to see if it would total.

My conditional formatting worked as it changed and showed the figure in
black, but the totals didn't change.

Have I done something wrong?

Many thanks

"Roger Govier" wrote:

Hi

If you have you values in column A as 30 Apr 2008, 31 May 2008 etc but
FormatCellsNumber Custom mmmm
they will display as April, May etc.

You can then use
=SUMIF(A1:A5,"<="&DATE(YEAR(TODAY()),MONTH(TODAY() ),0),B1:B5)
Change the A1:A5 and B1:B5 ranges to suit

--
Regards
Roger Govier

"harwookf" wrote in message
...
I have a spreadsheet with sub-totals which calculate the columns at the
bottom - like below.

April 1.00
May 2.00
August 1.50
September 3.00
October 5.00
Etc.
Sub-totals:- 12.50

The information for September and October is hidden by using conditional
formatting and will only be visible at the end of the respective month.
Unfortunately though, the information is still showing in the sub-total.
In
the example above, I only want the sub-total to show 4.50, then at the end
of
September it should be 7.50.

I don't want to have to keep chaning the formula every month to include
the
extra line and believe there must be a way to do this.

Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Changing formula totals

Many thanks Roger - managed to modify the formula slightly so that it now
does exactly what I wanted.

Your help was much appreciated.


"Roger Govier" wrote:

Hi

If you have you values in column A as 30 Apr 2008, 31 May 2008 etc but
FormatCellsNumber Custom mmmm
they will display as April, May etc.

You can then use
=SUMIF(A1:A5,"<="&DATE(YEAR(TODAY()),MONTH(TODAY() ),0),B1:B5)
Change the A1:A5 and B1:B5 ranges to suit

--
Regards
Roger Govier

"harwookf" wrote in message
...
I have a spreadsheet with sub-totals which calculate the columns at the
bottom - like below.

April 1.00
May 2.00
August 1.50
September 3.00
October 5.00
Etc.
Sub-totals:- 12.50

The information for September and October is hidden by using conditional
formatting and will only be visible at the end of the respective month.
Unfortunately though, the information is still showing in the sub-total.
In
the example above, I only want the sub-total to show 4.50, then at the end
of
September it should be 7.50.

I don't want to have to keep chaning the formula every month to include
the
extra line and believe there must be a way to do this.

Thanks in advance.


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
Pivot Totals: Group totals different from Grand totals PsyberFox Excel Discussion (Misc queries) 1 February 13th 08 06:16 PM
how do I add a formula that totals a percentage gia New Users to Excel 2 March 6th 07 12:58 AM
formula for chart totals tjh Charts and Charting in Excel 2 January 24th 07 10:43 PM
What formula do I use to add totals between workbooks? Jodi @ Tehachapi Unified Excel Worksheet Functions 0 October 4th 06 08:25 PM
what is the formula to add totals from two different worksheets Suegeo Excel Discussion (Misc queries) 1 May 24th 05 05:18 PM


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