Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
Question about IF function. A1 = date of order; B2= either "rejected" or "approved" C3= +30 days if A2=rejected or +60 days if A2=approved I tried to creat function for this: A3 = IF(B2="rejected",A2+30,A2+60) But the function is not returning a date. For example if A1= 2/2/1990 B1=rejected C1 = 32936 I don't know why its not working. Do I need to format it to return a date somehow? Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try formatting the cell as DATE
In Excel dates are really just numbers that are formatted to look like dates. The numbers are the number of days since a predefined date. That predefined date is Jan 1 1900. So, the result you got is the 32936th day since Jan 1 1900, or, when formatted as DATE, 4/3/1990. Biff "TypeType" wrote in message ... Hello, Question about IF function. A1 = date of order; B2= either "rejected" or "approved" C3= +30 days if A2=rejected or +60 days if A2=approved I tried to creat function for this: A3 = IF(B2="rejected",A2+30,A2+60) But the function is not returning a date. For example if A1= 2/2/1990 B1=rejected C1 = 32936 I don't know why its not working. Do I need to format it to return a date somehow? Thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Yes, you need to format it as a date.
Format-Cells, then select Date. "TypeType" wrote: Hello, Question about IF function. A1 = date of order; B2= either "rejected" or "approved" C3= +30 days if A2=rejected or +60 days if A2=approved I tried to creat function for this: A3 = IF(B2="rejected",A2+30,A2+60) But the function is not returning a date. For example if A1= 2/2/1990 B1=rejected C1 = 32936 I don't know why its not working. Do I need to format it to return a date somehow? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need true or false if a date falls between a date range | Excel Worksheet Functions | |||
IF Function doesn't recognize TRUE | Excel Worksheet Functions | |||
Function to return True/False if all are validated as True by ISNU | Excel Worksheet Functions | |||
How to get date entered recording first time condition is true? | Excel Discussion (Misc queries) | |||
If Function true value in Red | Excel Worksheet Functions |