Recogniziting Dates in an IF function?

L

Lowkey

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(B3>DATE,(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?
 
J

JMB

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.
 
R

Ron Rosenfeld

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(B3>DATE,(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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top