#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Scripting

Hi,

I looking for a script that will do this:

Inputdata: 4702168703

Outputdata: 1947

Function: I will import data with 10 digits, I will erase all digits after
the first to and replace it with 19 in front of the first two.

If this i possible to without scripting I prefer that solution.

Looking forward to creative and functional solutions

//Stefan C
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Scripting

Hi Stefan,

Try this, if you input your 10 digits in Cell A1 put this in your output
cell =19&LEFT(A1,2)
--
Regards
Warren
Excel Novice

If this helps please click the Yes button.


"Stefan" wrote:

Hi,

I looking for a script that will do this:

Inputdata: 4702168703

Outputdata: 1947

Function: I will import data with 10 digits, I will erase all digits after
the first to and replace it with 19 in front of the first two.

If this i possible to without scripting I prefer that solution.

Looking forward to creative and functional solutions

//Stefan C

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Scripting

This will do the job:

=19&EXTEXT(A1;1;2)

Thanks for the with 19&

"Warren Easton" wrote:

Hi Stefan,

Try this, if you input your 10 digits in Cell A1 put this in your output
cell =19&LEFT(A1,2)
--
Regards
Warren
Excel Novice

If this helps please click the Yes button.


"Stefan" wrote:

Hi,

I looking for a script that will do this:

Inputdata: 4702168703

Outputdata: 1947

Function: I will import data with 10 digits, I will erase all digits after
the first to and replace it with 19 in front of the first two.

If this i possible to without scripting I prefer that solution.

Looking forward to creative and functional solutions

//Stefan C

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Scripting

EXTEXT is used in some of the Scandinavian versions of Excel.
The English equivalent would be
=19&MID(A1,1,2)
but it's easier to use LEFT as Warren suggested.
--
David Biddulph

"Stefan" wrote in message
...
This will do the job:

=19&EXTEXT(A1;1;2)

Thanks for the with 19&

"Warren Easton" wrote:

Hi Stefan,

Try this, if you input your 10 digits in Cell A1 put this in your output
cell =19&LEFT(A1,2)
--
Regards
Warren
Excel Novice

If this helps please click the Yes button.


"Stefan" wrote:

Hi,

I looking for a script that will do this:

Inputdata: 4702168703

Outputdata: 1947

Function: I will import data with 10 digits, I will erase all digits
after
the first to and replace it with 19 in front of the first two.

If this i possible to without scripting I prefer that solution.

Looking forward to creative and functional solutions

//Stefan C



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
Scripting in Excel 2007 Tinsel Excel Discussion (Misc queries) 1 February 12th 07 10:42 AM
Scripting from command line [email protected] Excel Discussion (Misc queries) 0 January 24th 07 04:29 PM
Scripting Question Becca Setting up and Configuration of Excel 2 September 22nd 05 12:33 AM
Excel scripting,programming TechGuyatwork New Users to Excel 2 June 19th 05 06:53 PM
Scripting.FileSystemObject Leif Rasmussen Excel Discussion (Misc queries) 1 January 12th 05 11:21 PM


All times are GMT +1. The time now is 06:15 AM.

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

About Us

"It's about Microsoft Excel"