Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Toni G.
 
Posts: n/a
Default Adding a column based on greater than a date

I am trying to add a column (Col. A) based on a date (Col. B). I want
to add Col. A if Col. B is within the next 30 days of today's date
(which I've put in Col. C). The formula I've tried is: SUMIF(A,"BC
AND B<=C") but it doesn't work. Any ideas about what I'm doing wrong?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(B1:B1000=TODAY()),(B1:B1000<=TODAY()+30),A1:A100 0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Toni G." wrote in message
om...
I am trying to add a column (Col. A) based on a date (Col. B). I want
to add Col. A if Col. B is within the next 30 days of today's date
(which I've put in Col. C). The formula I've tried is: SUMIF(A,"BC
AND B<=C") but it doesn't work. Any ideas about what I'm doing wrong?



  #3   Report Post  
UBER_GEEK
 
Posts: n/a
Default

for a range between 1-500

=SUMPRODUCT((B1:B500<=(TODAY())+30)*(B1:B500=TODA Y()),A1:A500)

Using entire columns error's out, and is uneeded unless you have a very
large amount of data.

  #4   Report Post  
Toni G.
 
Posts: n/a
Default

As it turns out, the function is a bit more complicated by the fact
that I need to add three columns. This is for estimating cashflow and
here's what I've tried to do with what's been suggested but it's not
quite working:

=SUMPRODUCT((J4<=(TODAY())+30)*(J4=TODAY()),S4)+( (N4<=(TODAY())+30)*(N4=TODAY()),T4)+((Q4<=(TODAY( ))+30)*(Q4=TODAY()),U4)

whe
J4 - Date of deposit
S4 - Amount of deposit
N4 - Date of interim payment
T4 - Amount of interim payment
Q4 - Date of final payment
U4 - Amount of final payment

Any other suggestions?


"UBER_GEEK" wrote in message roups.com...
for a range between 1-500

=SUMPRODUCT((B1:B500<=(TODAY())+30)*(B1:B500=TODA Y()),A1:A500)

Using entire columns error's out, and is uneeded unless you have a very
large amount of data.

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

I think you need to explain what the rules are, your formula is just a bit
of rubbish <bgv

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Toni G." wrote in message
om...
As it turns out, the function is a bit more complicated by the fact
that I need to add three columns. This is for estimating cashflow and
here's what I've tried to do with what's been suggested but it's not
quite working:


=SUMPRODUCT((J4<=(TODAY())+30)*(J4=TODAY()),S4)+( (N4<=(TODAY())+30)*(N4=TO
DAY()),T4)+((Q4<=(TODAY())+30)*(Q4=TODAY()),U4)

whe
J4 - Date of deposit
S4 - Amount of deposit
N4 - Date of interim payment
T4 - Amount of interim payment
Q4 - Date of final payment
U4 - Amount of final payment

Any other suggestions?


"UBER_GEEK" wrote in message

roups.com...
for a range between 1-500

=SUMPRODUCT((B1:B500<=(TODAY())+30)*(B1:B500=TODA Y()),A1:A500)

Using entire columns error's out, and is uneeded unless you have a very
large amount of data.





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
Format cell in column B based on value in the next cell (column c) Nicole Excel Discussion (Misc queries) 7 May 18th 05 10:19 PM
LINK ONE ROW BASED ON CONTENTS OF A COLUMN WITHIN THE ROW (DATE) Susan Excel Worksheet Functions 0 February 16th 05 05:01 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM
Show a date based on today DJ Dusty Excel Worksheet Functions 2 November 12th 04 03:20 AM


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