View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
squenson via OfficeKB.com squenson via OfficeKB.com is offline
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