Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default adding/omitting/all the values prior to todays date

using given formula by Otavio sum((B10:B20="s1")*(C10:C20<"x")*A10:A20),
how can it add all the values in colume A that is prior to todays date (dates
are in colume D).
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default adding/omitting/all the values prior to todays date

"tleehh" wrote:
using given formula by Otavio
sum((B10:B20="s1")*(C10:C20<"x")*A10:A20),
how can it add all the values in colume A that is
prior to todays date (dates are in colume D).


=SUMPRODUCT((B10:B20="s1")*(C10:C20<"x")*(D10:D20 <TODAY()), A10:A20)

Or do you mean simply:

=SUMPRODUCT(--(D10:D20<TODAY()), A10:A20)

or alternatively:

=SUMIF(D10:D20, "<" & TODAY(), A10:A20)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default adding/omitting/all the values prior to todays date

I hope Otavia gave you SUMPRODUCT not SUM for the formula you show
This should work
=SUMPRODUCT((D10:D20<TODAY())*(A10:A20)
or this
=SUMIF(D10:D20,"<"&TODAY(),A10:A20)
best wishes

--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"tleehh" wrote in message
...
using given formula by Otavio sum((B10:B20="s1")*(C10:C20<"x")*A10:A20),
how can it add all the values in colume A that is prior to todays date
(dates
are in colume D).


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
how do count a set of values that are only in todays date Joe[_2_] Excel Discussion (Misc queries) 3 February 20th 07 10:27 AM
Date arithmetic: adding 1 month to prior end of month date manxman Excel Worksheet Functions 2 July 14th 06 09:29 PM
Highlighing values on todays date JamStev New Users to Excel 3 March 29th 06 10:09 AM
Adding Column of mixed data omitting the dates lpullen Excel Discussion (Misc queries) 2 November 17th 05 04:40 PM
Adding values for prior date intervals Qaspec Excel Worksheet Functions 0 January 25th 05 01:49 AM


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