Expired expiration date with text in the same cell

2phat4u

New Member
Joined
Aug 20, 2013
Messages
45
Hello,

I am looking for a formula that it would let me know when the expiration date going to be expired or has expired with the text in the same cell.
For example, Cell A1 contains "ISO 13485:2003 (exp. 2/2/2012)". How do I write the formula to let me know when the date has expired but the cell must include "ISO 13485:2003 (exp. 2/2/2012)"?

Is that even possible?



Help, please.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
ISO 13485:2003 (exp. 2/2/2012) 2/2/2012) 102/2/201202/02/2012EXPtoday's date20/02/2018
a series of helper cells find if "exp." is present in the cell
if it is the date is stripped out and compared to today's date
if it is prior to today's date "EXP" appears in cell I1
now in A1 in conditional formatting use this equation
=I1="EXP"
to turn cell A1 red

<colgroup><col><col span="6"><col><col span="3"><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Format B1 as a date.
Excel Workbook
AB
1ISO 13485:2003 (exp. 2/2/2012)2/2/2012
Sheet1
 
Upvote 0
I am confused. I think I tried plugging in the formula and it didn't work. Or maybe I don't know where to plug in the formula. Can you try to post some step by step?
 
Upvote 0
On my excel sheet, A1 has ISO 13485:2003 (exp. 2/2/2012). I want to know if there a formula to identify the date in A1 cell date expired only. Thanks in advance.


Format B1 as a date.
Sheet1

AB
1ISO 13485:2003 (exp. 2/2/2012)2/2/2012

<colgroup><col style="font-weight:bold; width:30px;"><col style="width:199px;"><col style="width:127px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B1=TRIM(SUBSTITUTE(MID(A1,SEARCH("/",A1)-2,10),")",""))+0

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
my reply showed you how to pull the date out
so you need
=if(today() - put formula to strip out date here - >0, "exp", "not exp")
 
Upvote 0
What formula do I put in?

=if(today() - put formula to strip out date here - >0, "exp", "not exp")



my reply showed you how to pull the date out
so you need
=if(today() - put formula to strip out date here - >0, "exp", "not exp")
 
Upvote 0
ISO 13485:2003 (exp. 2/2/2012)02/02/2012
formula stripping out date is
=VALUE(IF(ISERROR((SEARCH("exp.",LEFT(A1,LEN(A1)-1)))),"no",MID(LEFT(A1,LEN(A1)-1),SEARCH("exp.",A1)+5,99)))
it is complicated because you are using 2/2/2012 now but you might use 02/02/2012 on another occasion

<colgroup><col><col><col span="11"></colgroup><tbody>
</tbody>
 
Upvote 0
Thanks.

When I applied the formula under the Rule Type, it turns red because the expiration date expired. When I changed the year to 2020, it is still red. How do I fix that?



ISO 13485:2003 (exp. 2/2/2012)02/02/2012
formula stripping out date is
=VALUE(IF(ISERROR((SEARCH("exp.",LEFT(A1,LEN(A1)-1)))),"no",MID(LEFT(A1,LEN(A1)-1),SEARCH("exp.",A1)+5,99)))
it is complicated because you are using 2/2/2012 now but you might use 02/02/2012 on another occasion

<tbody>
</tbody>
 
Upvote 0
let us go back to basics - say cell A1 can only have 3 values, 1,2 or 3
first cond format formulaa will be =A1=1 and set to red
put 1 in A1 and A1 goes red
now without YET adding another formula, make A1=2
A1 loses its red color, it cannot be red because it does not equal 1

did you change the cell in my example to ISO 13485:2003 (exp. 2/2/2020)
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,749
Members
449,050
Latest member
excelknuckles

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