ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   remove and replace digits from a number (https://www.excelbanter.com/excel-worksheet-functions/139722-remove-replace-digits-number.html)

spreadsheet monkey

remove and replace digits from a number
 
I am having some problems with data from one system being exported to excel.
the data I get from the system is translated by excel into another format and

it is supposed to come out as 2/1 but instead in interpreted as feb-01. I
can't change the format in order to get the correct value, so I think I need
a function for it.
I can re-format the value to 1999-02-01 but them, I need a function to
remove the first 5 digits and replace the (-) with a (/).

can anybody help me?

Himani[_2_]

remove and replace digits from a number
 
Use this formula to empty cell and copy and paste as value to original cell.
H17 is a cell which contains 1999-02-01

=DATE(,MID(H17,6,1),MID(H17,8,1))

"spreadsheet monkey" wrote:

I am having some problems with data from one system being exported to excel.
the data I get from the system is translated by excel into another format and

it is supposed to come out as 2/1 but instead in interpreted as feb-01. I
can't change the format in order to get the correct value, so I think I need
a function for it.
I can re-format the value to 1999-02-01 but them, I need a function to
remove the first 5 digits and replace the (-) with a (/).

can anybody help me?


Gary''s Student

remove and replace digits from a number
 
try:

=SUBSTITUTE(RIGHT(TEXT(A1,"yyyy-mm-dd"),5),"-","/")

--
Gary''s Student - gsnu200716


"spreadsheet monkey" wrote:

I am having some problems with data from one system being exported to excel.
the data I get from the system is translated by excel into another format and

it is supposed to come out as 2/1 but instead in interpreted as feb-01. I
can't change the format in order to get the correct value, so I think I need
a function for it.
I can re-format the value to 1999-02-01 but them, I need a function to
remove the first 5 digits and replace the (-) with a (/).

can anybody help me?


Dave Peterson

remove and replace digits from a number
 
How about trying something else?

Tools|Options|Transition Tab|Check Transition Formula Entry
Then do the Edit|Paste
When I did this, I ended up with a formula: =2/1

Then I could select the range and
Edit|Replace
what: =
with: (leave blank)
replace all

Then Tools|Options|Transition Tab|Uncheck Transition Formula Entry

It may work ok for you.



spreadsheet monkey wrote:

I am having some problems with data from one system being exported to excel.
the data I get from the system is translated by excel into another format and

it is supposed to come out as 2/1 but instead in interpreted as feb-01. I
can't change the format in order to get the correct value, so I think I need
a function for it.
I can re-format the value to 1999-02-01 but them, I need a function to
remove the first 5 digits and replace the (-) with a (/).

can anybody help me?


--

Dave Peterson


All times are GMT +1. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com