Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lowkey
 
Posts: n/a
Default Recogniziting Dates in an IF function?

I want to set an IF function based on date.

The premise is that bonus pay is paid only if an employee works up to or
after a specific date. If the end date of the employee is before DATEX, then
do the calcuation, if not, the calculation is irrelevant. It looks like this:
=IF(B3DATE,(T5*U8)/12,"0")
Except the function doesn't use the date in the way I intend. Is there a
different function I should be using and how?

  #2   Report Post  
JMB
 
Posts: n/a
Default

Try using DATEVALUE("DATE") to replace DATE in your function.
Excel stores dates as numbers, not text. For example, 5/31/05 is stored as
38,503 and, therefore, DATE must also be converted to a number.

"Lowkey" wrote:

I want to set an IF function based on date.

The premise is that bonus pay is paid only if an employee works up to or
after a specific date. If the end date of the employee is before DATEX, then
do the calcuation, if not, the calculation is irrelevant. It looks like this:
=IF(B3DATE,(T5*U8)/12,"0")
Except the function doesn't use the date in the way I intend. Is there a
different function I should be using and how?

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 31 May 2005 16:00:59 -0700, Lowkey
wrote:

I want to set an IF function based on date.

The premise is that bonus pay is paid only if an employee works up to or
after a specific date. If the end date of the employee is before DATEX, then
do the calcuation, if not, the calculation is irrelevant. It looks like this:
=IF(B3DATE,(T5*U8)/12,"0")
Except the function doesn't use the date in the way I intend. Is there a
different function I should be using and how?


Either enter the date into some cell, and use the cell reference in your IF
statement; or define the date using the DATE worksheet function: e.g.
=DATE(2005,5,31) for today.


--ron
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 & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
SUMIF function - criteria of between two dates. How? Frannie21 Excel Worksheet Functions 4 January 27th 05 03:28 PM
if function with dates Brad Excel Discussion (Misc queries) 1 January 10th 05 10:49 PM


All times are GMT +1. The time now is 05:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"