Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default SUM if date < 30 days away

I have two columns, one with the amount due, and one with due dates. The due
dates are changing periodically, and I want my sum to only include amounts
that are due within 30 days from the current date.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default SUM if date < 30 days away

Hi,

=sumproduct(--(a2:a1000<c2)*(b2:b1000))

assuming the column A has the dates, column B has the amounts and C2 has the
current date.

hth
regards from Bazil
Marcelo


"Meesheltx" escreveu:

I have two columns, one with the amount due, and one with due dates. The due
dates are changing periodically, and I want my sum to only include amounts
that are due within 30 days from the current date.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default SUM if date < 30 days away

This is helpful. But I'm also wondering if there is a way to do this,
assuming that C2 does NOT have the current date. isn't there a way that you
can include in the formula something like:

=sumproduct(--(a2:a1000<(NOW+30)*(b2:b1000))

....I tried that, but I don't think I have the formula right for the "now+30"
part. How else would I do that?



"Marcelo" wrote:

Hi,

=sumproduct(--(a2:a1000<c2)*(b2:b1000))

assuming the column A has the dates, column B has the amounts and C2 has the
current date.

hth
regards from Bazil
Marcelo


"Meesheltx" escreveu:

I have two columns, one with the amount due, and one with due dates. The due
dates are changing periodically, and I want my sum to only include amounts
that are due within 30 days from the current date.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default SUM if date < 30 days away

=sumproduct(--(a2:a1000today()),--(A2:A1000<today()+30),B2:B1000)

hth
regards from Brazil
Marcelo


"Meesheltx" escreveu:

This is helpful. But I'm also wondering if there is a way to do this,
assuming that C2 does NOT have the current date. isn't there a way that you
can include in the formula something like:

=sumproduct(--(a2:a1000<(NOW+30)*(b2:b1000))

...I tried that, but I don't think I have the formula right for the "now+30"
part. How else would I do that?



"Marcelo" wrote:

Hi,

=sumproduct(--(a2:a1000<c2)*(b2:b1000))

assuming the column A has the dates, column B has the amounts and C2 has the
current date.

hth
regards from Bazil
Marcelo


"Meesheltx" escreveu:

I have two columns, one with the amount due, and one with due dates. The due
dates are changing periodically, and I want my sum to only include amounts
that are due within 30 days from the current date.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default SUM if date < 30 days away

I ginned up some dummy data and got the results you're looking for with
this formula:
=SUMPRODUCT($A$1:$A$6,--($B$1:$B$6<TODAY()+30))

Column A contains the figures, column B contains the dates- you'll need
to provide the appropriate ranges.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default SUM if date < 30 days away

That is perfect...thank you!!

"Dave O" wrote:

I ginned up some dummy data and got the results you're looking for with
this formula:
=SUMPRODUCT($A$1:$A$6,--($B$1:$B$6<TODAY()+30))

Column A contains the figures, column B contains the dates- you'll need
to provide the appropriate ranges.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUM if date < 30 days away

=SUMPRODUCT(--(A2:A200TODAY()),--(A2:A200<TODAY()+30),B2:B200)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Meesheltx" wrote in message
...
I have two columns, one with the amount due, and one with due dates. The

due
dates are changing periodically, and I want my sum to only include amounts
that are due within 30 days from the current date.



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
Calculating Number of days from one date to another Renz09 Excel Discussion (Misc queries) 2 May 3rd 06 10:18 AM
I want any date 90 days or older from current date change color Big Abalone Excel Worksheet Functions 5 April 23rd 06 05:01 AM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM
set a date in columns 7 days apart Squirel Eater Excel Worksheet Functions 8 June 26th 05 02:00 AM
How would I change a date cell to decrease it by business days? CNGracin Excel Discussion (Misc queries) 3 December 15th 04 05:20 PM


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