Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Date Math if then

I am trying to return a dollar amount due if the date in one cell is greater
than or equal to today. I'm using this formula in an blank cell:
IF(today() = A7 , C7=10,,)

Can't get it to work. Using Excel 2003.

Help please.

Hank


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Date Math if then


Hank wrote:
I am trying to return a dollar amount due if the date in one cell is greater
than or equal to today. I'm using this formula in an blank cell:
IF(today() = A7 , C7=10,,)

Can't get it to work. Using Excel 2003.

Help please.

Hank

try this
put this formula in C7
= IF(TODAY()=A7, 10,)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Date Math if then

Hank is correct by moving the formula to C7 and correcting the syntax. You
could also add a pair of quotes after the last comma to suppress the 0 and
have a blank cell result when it is not "10".

If it still does not behave as expected, you might need to reverse the
logical test:

IF(TODAY()=A7, 10,"") applies 10 if date in A7 is today or a future date
IF(TODAY()<=A7, 10,"") applies 10 if date in A7 is today or a past date

From your written description it seems like your logical test is backwards.
However if the 10 represents a late fee for example, then the formula is
right and the description is misleading me.

Roy

"stevebriz" wrote:


Hank wrote:
I am trying to return a dollar amount due if the date in one cell is greater
than or equal to today. I'm using this formula in an blank cell:
IF(today() = A7 , C7=10,,)

Can't get it to work. Using Excel 2003.

Help please.

Hank

try this
put this formula in C7
= IF(TODAY()=A7, 10,)


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Date Math if then

oops! change that to: stevebriz is correct...

"Roy Wagner" wrote:

Hank is correct by moving the formula to C7 and correcting the syntax. You
could also add a pair of quotes after the last comma to suppress the 0 and
have a blank cell result when it is not "10".

If it still does not behave as expected, you might need to reverse the
logical test:

IF(TODAY()=A7, 10,"") applies 10 if date in A7 is today or a future date
IF(TODAY()<=A7, 10,"") applies 10 if date in A7 is today or a past date

From your written description it seems like your logical test is backwards.
However if the 10 represents a late fee for example, then the formula is
right and the description is misleading me.

Roy

"stevebriz" wrote:


Hank wrote:
I am trying to return a dollar amount due if the date in one cell is greater
than or equal to today. I'm using this formula in an blank cell:
IF(today() = A7 , C7=10,,)

Can't get it to work. Using Excel 2003.

Help please.

Hank

try this
put this formula in C7
= IF(TODAY()=A7, 10,)


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Date Math if then

Thanks stevbriz and Roy -- works perfect
Hank
"stevebriz" wrote in message
ups.com...

Hank wrote:
I am trying to return a dollar amount due if the date in one cell is
greater
than or equal to today. I'm using this formula in an blank cell:
IF(today() = A7 , C7=10,,)

Can't get it to work. Using Excel 2003.

Help please.

Hank

try this
put this formula in C7
= IF(TODAY()=A7, 10,)





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
Date Math Microsoft Excel Worksheet Functions 4 May 27th 10 10:40 PM
Date Math metaltecks Excel Discussion (Misc queries) 4 July 31st 06 02:11 PM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
In Excel, I need a date math formula... Lisa Excel Discussion (Misc queries) 2 December 3rd 04 12:13 AM
Date-Math Calendarization Codes Bourbon[_24_] Excel Programming 0 January 26th 04 07:39 PM


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