Hi All,
Just wondering how I could convert this text eg. 10:00PM into 10:00 PM with a formula which can be formatted
Thanks
Hi All,
Just wondering how I could convert this text eg. 10:00PM into 10:00 PM with a formula which can be formatted
Thanks
Try:
Select the range CTRL+F to activate Find/Replace command & Replace PM with <space>PM
hit space bar instead of <space> & format the cell as time.
Regards,
Haseeb Avarakkan
__________________________________
"Feedback is the breakfast of champions"
Try this...
=--SUBSTITUTE(SUBSTITUTE(A1,"P"," P"),"a"," A")
Format that cell as time.
Is that something you can work with?
-------------------
Last edited by arekkusu03; 07-17-2013 at 07:40 PM.
That implies that the cell does not contain what we think it does.
Can you attach a workbook with some sample data?
Hi Haseeb, I'm looking for a formula which will automatically convert the text into time, as I'll be dumping Raw data from a program that will generate a report
thank you for your reply
SUBSTITUTE is a case sensitive formula. Replace Ron's formula to;
=--SUBSTITUTE(SUBSTITUTE(LOWER(A1),"p"," P"),"a"," A")
Hi All,
Please find attached a sample of what I mean in cell A1
Example.xlsxExample.xlsx
Thank you
Hi Haseeb, sorry that formula still doesn't allow me to change the format.
Ooops! Thanks for catching that, Haseeb.
Thanks it works, Ron and Haseeb,
It works now
=--SUBSTITUTE(SUBSTITUTE(LOWER(A1),"p"," P"),"a"," A")
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks