Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default padding numbers in excel

Assuming 1 through 9 have the single leading zero as show for 01 and 02 (and
assuming your first value is in A1)...

=IF(LEN(A1)=6,REPLACE(A1,2,0,"0"),A1)

and copy down.

Rick


"Joe" wrote in message ...
I have a similar problem I'm hoping someone can help me with. I have a
fairly large spreed sheet in excel 25000 rows by 350 columns (so lots of
numbers). In each cell, there is a value that is made up of letters and
numbers such as:

h01a01
y02d07
y120g06
y89a05

The first letter has a single meaning (th project).

The number(s) that follows this first letter, 01, 02, 89, 120 also refer
to a single unit -that is there is a number 1, 2, 89, 120 and so on. The
problem is that using the sort function in excel returns the number 89
after 120 as shown above because excel reads the first number "1" of 120
and the "8" of 89 and says "hey 1 come before 8". Of course I realize the
solution is to put a "0" in fromnt of 89 so that the number is
089 -problem solved by I have no idea how to write a formula in excel to
take care of the problem. PLEASE HELP! Thanks, Joe


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
HOW TO ASSIGN NUMERICAL VALUES TO LETTERS IN EXCEL teacherpaul Excel Worksheet Functions 5 October 24th 06 02:35 PM
how do i program alphabet letters to represent numerical values? Jo Excel Discussion (Misc queries) 4 October 8th 06 11:37 PM
Giving a letter a numerical value Mullet2262 Excel Discussion (Misc queries) 6 March 9th 06 01:23 AM
Giving Months Numerical Values luvthavodka Excel Discussion (Misc queries) 1 December 9th 05 10:56 AM
Create a total based on multiple conditions is not giving correct. Jacob Excel Worksheet Functions 2 November 4th 04 04:07 AM


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