Dates in a formula and blank cells in another

SeanLCA

New Member
Joined
Nov 3, 2018
Messages
15
Office Version
  1. 365
Platform
  1. Windows
hello
Need a formula that in Col C returns either Clear if in ColA there is a Date and in ColB is a Date. ColC is Expires if ColA there is a Date that is Less Than Today and ColB is Blank. Sample Below.

Condition:
If there is a Date in Col A that is Less than today's date, and in ColB is blank than in ColC I=Expired
If there is a Date in Col A that is Less than today's date, and in ColB has a date than in ColC = Clear


A1B1C1
12/13/1912/12/2019Clear
12/14/1912/14/2019Clear
12/15/19Expired
12/16/1911/16/2019Clear
12/17/1910/14/2019Clear
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi, check the following.
It is not defined when today is equal to the date or when the date is greater than today and cell B has no date.

Book1
ABC
1
213/12/201912/12/2019Clear
314/12/2019Expired
415/12/2019undefined
516/12/2019undefined
617/12/201914/10/2019Clear
Hoja5
Cell Formulas
RangeFormula
C2:C6C2=IF(A2<TODAY(),IF(B2="","Expired","Clear"),IF(B2<>"","Clear","undefined"))
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0
hello
I updated my condition ran into some issues.

I Need a formula that in Col C returns either Clear if in ColA there is a Date and in ColB is a Date. ColC is Expires if ColA there is a Date that is Less Than Today and ColB is Blank. Sample Below.

Updated Condition:
If there is a Date in Col A that is Less than today's date, and in ColB is blank than in ColC I=Expired
If there is a Date in Col A that is Greater than today's date, and in ColB is blank than in ColC =Clear
If there is a Date in Col A that is Less than today's date, and in ColB has a date than in ColC = Clear
If there is a Date in Col A that is today's date or Greater and in ColB has a date than in ColC = Clear

Sample:
A1B1C1
12/13/1912/12/2019Clear
12/14/1912/14/2019Clear
12/16/1911/13/2019Clear
12/15/19 Expired
12/17/1910/14/2019Clear
 
Upvote 0
Try this

=IF(A2<TODAY(),IF(B2="","Expired","Clear"),"Clear")
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

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