Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default 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?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default 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?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 : How to remove the digits from original reference ? Mr. Low Excel Discussion (Misc queries) 6 April 13th 07 02:04 PM
How to replace 12 digits only of 16 digit number. TomL Excel Discussion (Misc queries) 1 September 1st 06 10:14 PM
Find/Replace last couple of digits on number gardenhead Excel Worksheet Functions 3 June 28th 06 08:00 PM
adding digits of a number dantee Excel Worksheet Functions 8 March 30th 06 11:05 PM
How do I find the sum of all digits in a number? monkeyforce5 Excel Discussion (Misc queries) 4 September 9th 05 09:49 PM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"