Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default what function to use

Hello,
This is my row that I want to convert from number to text but with certain
criteria:

A
1
2
..
..
..
12

to text to show it as follows

000100001
000100002
when number is 2 digits it should show
000100012
000100300

my number run upto 600

Please help us wahat function fo excel should we use, th forth character
sould always show 0001

Thanks in advance



--
H. Frank Situmorang
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default what function to use

use the following formula:

="0001" & REPT("0",5- LEN(A1))&A1

supposing your data are starting in A1 en copy the formula down

--
met vriendelijke groetjes

"Frank Situmorang" schreef in bericht
...
Hello,
This is my row that I want to convert from number to text but with certain
criteria:

A
1
2
.
.
.
12

to text to show it as follows

000100001
000100002
when number is 2 digits it should show
000100012
000100300

my number run upto 600

Please help us wahat function fo excel should we use, th forth character
sould always show 0001

Thanks in advance



--
H. Frank Situmorang



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default what function to use

Frederik:

The result is only 000100000, could you explain more?
Thanks in advance

--
H. Frank Situmorang


"Frederik" wrote:

use the following formula:

="0001" & REPT("0",5- LEN(A1))&A1

supposing your data are starting in A1 en copy the formula down

--
met vriendelijke groetjes

"Frank Situmorang" schreef in bericht
...
Hello,
This is my row that I want to convert from number to text but with certain
criteria:

A
1
2
.
.
.
12

to text to show it as follows

000100001
000100002
when number is 2 digits it should show
000100012
000100300

my number run upto 600

Please help us wahat function fo excel should we use, th forth character
sould always show 0001

Thanks in advance



--
H. Frank Situmorang






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default what function to use

On Thu, 29 Jan 2009 08:12:02 -0800, Frank Situmorang
wrote:

Hello,
This is my row that I want to convert from number to text but with certain
criteria:

A
1
2
.
.
.
12

to text to show it as follows

000100001
000100002
when number is 2 digits it should show
000100012
000100300

my number run upto 600

Please help us wahat function fo excel should we use, th forth character
sould always show 0001

Thanks in advance




=TEXT(A1,"""0001""00000")

--ron
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default what function to use

On Thu, 29 Jan 2009 08:12:02 -0800, Frank Situmorang
wrote:

Hello,
This is my row that I want to convert from number to text but with certain
criteria:

A
1
2
.
.
.
12

to text to show it as follows

000100001
000100002
when number is 2 digits it should show
000100012
000100300

my number run upto 600

Please help us wahat function fo excel should we use, th forth character
sould always show 0001

Thanks in advance



Actually, this works just as well, and is simpler:

=TEXT(A1,"000100000")

--ron
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default what function to use

Frederik

You are awe some, it works perfecly, thank you very much


--
H. Frank Situmorang


"Frederik" wrote:

use the following formula:

="0001" & REPT("0",5- LEN(A1))&A1

supposing your data are starting in A1 en copy the formula down

--
met vriendelijke groetjes

"Frank Situmorang" schreef in bericht
...
Hello,
This is my row that I want to convert from number to text but with certain
criteria:

A
1
2
.
.
.
12

to text to show it as follows

000100001
000100002
when number is 2 digits it should show
000100012
000100300

my number run upto 600

Please help us wahat function fo excel should we use, th forth character
sould always show 0001

Thanks in advance



--
H. Frank Situmorang




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
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? SteveM Excel Programming 1 January 3rd 08 03:45 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 03:54 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"