Conditional Formula (Dates)

QUIJAN

New Member
Joined
Aug 27, 2021
Messages
9
Office Version
  1. 2013
Platform
  1. Web
Hello,

I hope someone can help me with this.
If cell C is not blank, result should be "Done"
If the cell is blank and cell B and cell A result should be the following:
If 15 Day Difference, "Too early"
If 30 Day Difference, " Needed"
If 60 Day, "Cancelled"

Here is the data:
Cell C:

Policy Effective

02/16/2021
02/11/2021
02/11/2021
01/22/2021

Cell A & B
Cell A Cell B
02/18/2021 02/16/2021
02/17/2021 02/04/2021
02/12/2021 02/06/2021
02/12/2021 02/06/2021
01/22/2021 01/18/2021
03/01/2021 02/27/2021


Tank you so much
Thank you so much
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Column headings would have been handy, you seem to be missing a category.
This should make is easier for you to modify once you figure out what to do with the missing category.
Also you need to know if a negative days is possible.

PS: Ideally I would give the lookup table and Table Name or as a second choice a range name.

20210828 If Statement Date Difference.xlsx
ABCDEF
1Revised DatePlanned DeliveryCompletedStatusDays Diff for checking only
218/02/202116/02/202116/02/2021Done2
317/02/20214/02/202111/02/2021Done13
412/02/20216/02/202111/02/2021Done6
512/02/20216/02/202122/01/2021Done6
622/01/202118/01/2021Too Early4
71/03/202127/02/2021Too Early2
820/05/202122/03/2021Cancelled59
9
10
11
12FromToStatus
13015Too Early
141630Needed
153160Cancelled
1661Cancelled ???
17
Sheet1
Cell Formulas
RangeFormula
D2:D8D2=IF(C2<>"","Done",VLOOKUP(A2-B2,$A$12:$C$16,3,TRUE))
E2:E8E2=A2-B2
 
Upvote 0
Welcome to MrExcel Message Borad.
If 15 Day Difference, "Too early"
If 30 Day Difference, " Needed"
If 60 Day, "Cancelled"
More Than or Less Than

if Less than then:
Book1
ABCDEF
1
2
32/18/20212/16/2021Done
42/17/20212/4/20212/16/2021Too Early
52/22/20212/6/20212/11/2021Needed
63/12/20212/6/20212/11/2021Cancelled
73/22/20211/18/20211/22/2021Cancelled
83/1/20212/27/2021Done
9
10
11
Sheet1
Cell Formulas
RangeFormula
E3:E8E3=IF(C3="","Done",IF(A3-B3<=15,"Too Early",IF(A3-B3<=30,"Needed","Cancelled")))
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top