Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default if statement

I have the following formula:

if(date-TODAY()<=7,"Payment due","")

The problem is when today's date falls after the first date the result is a
negative number and it returns "payment due" since it's less than 7 even
though the payment has been made. A solution (since I'm a new user, not
likely to be the best one) might be specifying a range of from 1-7 days but I
don't know how to do that.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 903
Default if statement

Hi Brian,
As asked
=IF(AND(date-TODAY()<=7, date<TODAY()),"Payment due","")

You would be better off checking a cell or flag to tell if the payment
has been made for this period in addition or before checking the
difference. .
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"BrianM" wrote in message ...
I have the following formula:

if(date-TODAY()<=7,"Payment due","")

The problem is when today's date falls after the first date the result is a
negative number and it returns "payment due" since it's less than 7 even
though the payment has been made. A solution (since I'm a new user, not
likely to be the best one) might be specifying a range of from 1-7 days but I
don't know how to do that.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default if statement

Yes, that would be good but I have an array of 9 rows representing 9
payment-due dates. Complicating matters a bit is the fact that there are ten
other spreadsheets that have the same issue. Each spreadsheet (each one
representing an owned property) links to a summary of owned properties. I
want to create a link from each property spreadscheet to the summary
spreadsheet which, among other things, shows that a payment is coming up. By
the way, payment dates are different for each so having this kind of alert
would be quite useful.

Speaking or the array. the perfect formula would loop from each payment
date - TODAY() pair and report whether a payment was due. Since I'm only
working with one column of 9 cells and, if I understand how arrays work, I
need another column to make the array formula work, that doesn't appear to be
an option.

Thank you for your suggestion...
"David McRitchie" wrote:

Hi Brian,
As asked
=IF(AND(date-TODAY()<=7, date<TODAY()),"Payment due","")

You would be better off checking a cell or flag to tell if the payment
has been made for this period in addition or before checking the
difference. .
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"BrianM" wrote in message ...
I have the following formula:

if(date-TODAY()<=7,"Payment due","")

The problem is when today's date falls after the first date the result is a
negative number and it returns "payment due" since it's less than 7 even
though the payment has been made. A solution (since I'm a new user, not
likely to be the best one) might be specifying a range of from 1-7 days but I
don't know how to do that.




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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If Statement linked to cell with VLOOKUP problem - getting wrong v Mike R. Excel Worksheet Functions 4 January 14th 06 02:16 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


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