Extracting date from text cell

Detectiveclem

Active Member
Joined
May 31, 2014
Messages
320
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Can anyone assist me with the formula to extract the date which is shown at the end of a string of text in a cell.

Each cell has differing lengthts of text and some cells are completely blank.

The date is at the end of the string of text and is displayed like this 03/04/2018 (DD/MM/YYYY). I purely want the date extracted into its own cell and where the target cell is blank not to show an error message.

Help on this would be much appeciated.

Thanks Paul
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Book1
AB
1Today is 18/04/2018April 18, 2018
2
3Yesterday was 17/04/2018April 17, 2018
4Tomorrow will be 19/04/2018April 19, 2018
Sheet1
Cell Formulas
RangeFormula
B1=IF($A1="","",DATEVALUE(RIGHT($A1,10)))


Assuming it's always the last 10 characters of the cell contents.

WBD
 
Upvote 0
Thank you WBD, works perfectly. I have been playing around with different formulas for hours, so thank you for solving this.

Paul
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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