Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default date range additions

if column A "text" and column A "more text" and column B date 5/18 and less
than 5/22 (***date is the current week) then sum number in column C.

basically looking for: based what's in column A, the dates in column B
should be the current week, then add whats in column C
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default date range additions

One way

=SUMPRODUCT(--(A1:A30="a"),--(B1:B30=TODAY()-7),--(B1:B30<=TODAY()),C1:C30)



adapt to fit your data



--


Regards,


Peo Sjoblom


"Ann" wrote in message
...
if column A "text" and column A "more text" and column B date 5/18 and
less
than 5/22 (***date is the current week) then sum number in column C.

basically looking for: based what's in column A, the dates in column B
should be the current week, then add whats in column C



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default date range additions

close...i need to put in a date, rather than -7. for example i need it to be
=SUMPRODUCT(--(A1:A30="a"),--(B1:B30=5/18/2008),--(B1:B30<=5/22/2008),C1:C30)

what's the correct syntax for the dates?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default date range additions

In lieu of the 5/18/2008, use the Date(2008,5,18) function, etc.

Good Luck.

"Ann" wrote:

close...i need to put in a date, rather than -7. for example i need it to be
=SUMPRODUCT(--(A1:A30="a"),--(B1:B30=5/18/2008),--(B1:B30<=5/22/2008),C1:C30)

what's the correct syntax for the dates?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default date range additions

here's the formula i'm using.
=SUMPRODUCT(--(H3:H200="ABC"),--(D3:D200DATE(2008,5,18)),--(D3:D200=DATE(2008,5,22)),E3:E200)

it's only adding up if the date matches 5/22, not 5/19 through 5/22.
tia


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default date range additions

You need to check the original formula I gave you and use the same
technique, the last date part should be

(D3:D200<=DATE(2008,5,22)

and not

(D3:D200=DATE(2008,5,22)





--


Regards,


Peo Sjoblom


"Ann" wrote in message
...
here's the formula i'm using.
=SUMPRODUCT(--(H3:H200="ABC"),--(D3:D200DATE(2008,5,18)),--(D3:D200=DATE(2008,5,22)),E3:E200)

it's only adding up if the date matches 5/22, not 5/19 through 5/22.
tia



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default date range additions

thank you so much, don't know when i changed it, that fixed it!

"Peo Sjoblom" wrote:

You need to check the original formula I gave you and use the same
technique, the last date part should be

(D3:D200<=DATE(2008,5,22)

and not

(D3:D200=DATE(2008,5,22)





--


Regards,


Peo Sjoblom


"Ann" wrote in message
...
here's the formula i'm using.
=SUMPRODUCT(--(H3:H200="ABC"),--(D3:D200DATE(2008,5,18)),--(D3:D200=DATE(2008,5,22)),E3:E200)

it's only adding up if the date matches 5/22, not 5/19 through 5/22.
tia




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
Chart additions to explain Jay Charts and Charting in Excel 1 November 12th 06 12:34 PM
Can I allow Additions but not Edits? Keith Excel Discussion (Misc queries) 2 November 9th 06 01:10 PM
Cell Additions acopper57 via OfficeKB.com Excel Worksheet Functions 0 May 17th 06 11:54 PM
Multiple additions BIYB Excel Discussion (Misc queries) 4 July 26th 05 04:22 PM
Date depentdant cell additions. Big Rick Excel Discussion (Misc queries) 1 June 22nd 05 06:29 PM


All times are GMT +1. The time now is 06:22 AM.

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"