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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

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,215,139
Messages
6,123,263
Members
449,093
Latest member
Vincent Khandagale

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