Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Sum if the column heading is in the past?

I have a spreadsheet which has each month as a column heading, it will
always show the last 3 months and the next 6 months (every month we hide a
month and add a new month on)

eg. May-07, June 07, July 07, August 07, September 07

In each column i put what has been invoiced, and what is going to be
invoiced, so May might contain £100 and August £200.

I want a formula to put in a cell which will calculate all the months from
the current date back, but not future months. but i don't want to have to
amend the calulation every month!

i might not be making this clear, i hope someone can help!

Kirstie


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Sum if the column heading is in the past?

If your first row contains the months (real dates, not text) and if you have
a sum row for each column at the bottom (in my example it is row 11), then
this formula:
=SUMPRODUCT(--(1:1<""),--(1:1<=NOW()),11:11)
will calculate the sum of all the months which are before today's date.

Let me know in case I have misunderstood your request!

--
Message posted via http://www.officekb.com

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
column help- can I go past IV? shantymay23 Excel Discussion (Misc queries) 4 June 24th 06 07:19 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
Can I add more columns in Excel past column IV Jamie Excel Discussion (Misc queries) 0 December 22nd 05 06:49 PM
column heading rml Excel Discussion (Misc queries) 1 June 30th 05 04:15 AM
Need to put a name in the column heading windsorhartung Excel Discussion (Misc queries) 6 February 19th 05 06:36 AM


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