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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I’m not sure. Can you check this formula to see if there were errors? =if(today(=VALUE(IF(ISERROR((SEARCH("exp.",LEFT(A1,LEN(A1)-1))))," no",MID(LEFT(A1,LEN(A1)-1), SEARCH("exp.",A1)+5,99))))>0, "exp", "not exp").



My post was purely to test methodology eg are you stripping the correct date out
 
Upvote 0
(bbbb exp. 12/02/2012)exp
this formula puts corrrect date in C1
=VALUE(LEFT(MID(A1,SEARCH("exp.",A1)+5,99),11))
now I add the comparison with today
=IF(VALUE(LEFT(MID(A1,SEARCH("exp.",A1)+5,99),11))<TODAY(),"exp","not exp")
note today() you missed a bracket
when I change it to 2012 it gives not expired
so in the cond format it will be
=VALUE(LEFT(MID(A1,SEARCH("exp.",A1)+5,99),11))>TODAY()
this is definitely right because it returns false so cell will not color

<colgroup><col><col><col><col span="8"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,416
Messages
6,124,772
Members
449,187
Latest member
hermansoa

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