text to date value in formula

Joe C

Well-known Member
Joined
Oct 17, 2002
Messages
841
I have a file I get where dates come in as text like

'9/1/2011

I want to convert that to

40787 which is the value of the actual date if it were texted to column to date.

Text(b1) = 40787 if I text to text to column

Is there some way to in the formula get the same result without texting to coulmn
if B1 = '9/1/2011?

Many thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
For me:

=A1+0

did the trick. Excel ignores the single quote, which is a hangover from Lotus 123 and signifies that the entry is text.
 
Upvote 0
=DATEVALUE(RIGHT(A24,LEN(A24)))

Actually worked but I am going to try AP's suggestion because I love adding nothing to something and changing it
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,135
Members
452,890
Latest member
Nikhil Ramesh

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