leading

  1. M

    Trouble with leading 0s in VBA

    I have a column with unique IDs that are supposed to be 7 characters in length. Sometimes when these get manually input the leading 0 is omitted, so I was writing a macro to check, and if the number of characters is 6, to add a 0 to the beginning. In some instances these cells are formatted as...
  2. B

    Remove all Non-Printable characters as well as Clean and Trim; leave name text intact with spaces

    I saw Rick Rothstein's code that removed Non-Printable Characters, and did a Clean and trim as well. Can it be modified to leave spaces in the middle alone? such as, if I have a column of names that may have leading or trailing spaces, or both...Like so: Alfred E. Newman John Paul Jones I'd...
  3. D

    Open Files XLS CSV with Numbers with Leading Zero

    Hello, Is there a way to open files saved as xls and csv that have numerical numbers that have a leading zero. Currently when I open my files I am having to convert that column to a number to get it to show correctly and mostly loosing the leading zero. Since the files I open can have random...
  4. R

    VBA Remove/Delete Leading Zeros

    Hello, I need to remove the leading zeros in column J. It would need to remove from alphanumeric strings. Can some one provide the VBA code to do this? Thanks!
  5. M

    problem with leading 0's

    I have a macro that imports data from an outside workbook to the active workbook. A problem I am having is that some of the numbers have leading zeroes, then they do not come over. Example: if the number is 099999999, it shows up on the new sheet as 99999999. Any ideas how I can get the...
  6. X

    UPC format-text with dashes and possible leading zero

    12 digits, may or may not have a leading zero. Needs dashes as follow: 0-12345-67890-1 client inputs the numbers. Leading number may or may not have a zero but if it does, it needs to be visible. I was trying to do text but with dashes as a customer but couldn't quite get there. thanks...
  7. Z

    removing leading numbers

    HI i am using a form to get an email for a list of preferred names. the list comes back to me in the order that the user has chosen but it has leading numbers on it (see below) is there a formula i can run to cut off the leading number, the : and the blank space so that the first character is...
  8. G

    Swaping order of names in Cell , creates a leading space

    Hello, i want to use the following formula to swap the order of names within a cell, however it is creating a leading space, before the first name. =MID(A2&" "&A2,FIND(",",A2)+1,LEN(A2)) I know the Trim function can remove this, but not sure how to combine into this formula. So my question is...
  9. R

    Need help with formula

    Hi All, In cell D1 there is data that looks like this 2x100'. The leading digit will always start with a number between 1 & 8 and always in that format. In Column A there are always just numbers. In cell E1 (formula needed), I want to return the numbers from cells A1 & A2 (2 rows) indicated by...
  10. J

    help with extracting part numbers in a text format

    We have access to a client system. the problem column is the Part Number column. Some parts start with 0, 00, 000. Some also start with a leading 0, but have a non-numeric character in them. Those are fine. They come in as text. The only way we can get their data into our system is to...
  11. C

    Splitting one colum to 5 without dropping leading zero

    Hi All, I have a data string in column A that i need to split out by the "_", however when i use text to columns it drops the leading zero's. Can anyone help in coming up with a solution? Example of the string is below <tbody> 211_0807_1009_00_03 </tbody>
  12. D

    Creating an FTP file. need cell to be 18 characters long with leading zeros.

    Hi Folks, I am creating a file for import to a client's system. One of the values is an amount. The cell has to be 18 characters long with no decimal points (the pence or cents will be the last two characters). If the amount in Sheet1 cell A1 was £19.99 then the cell B2 in sheet 2 would look...
  13. E

    Leading zeros

    I have the following code to add a leading zero to my data in column E1-E20 the problem is when I run this macro which is set to 3 digits it runs down 210 lines adding a 0 -it musnt only the data in column E -in this example the 4 should be 004 and the 40 should be a 400 it must leave all the...
  14. M

    Excel Function or VBA Code to remove leading ZERO ?

    Attn Excel Gurus. Anyone care to share Excel Function or VBA Code to remove all leading 'ZERO' (0's) from Col. cell(s) of data ? See example below: https://ibb.co/feGSAb Col D: Input Data Col E: Output Data Thanks in Advance
  15. D

    Leading zero's in cells

    Hi, I am having the hardest time trying to get leading zeros to appear in cells... I'm trying to append of concatenate digits from one cell with digits from another cell: <tbody> A B C D E F 1 03 15 17 20 32 2 3 4 </tbody> I want for example to get...
  16. E

    Conditional format for removing trailing and leading spaces.

    Hi, I'm using this formula to remove any trailing or leading spaces. =TRIM(CLEAN(A1)) It works fine but is there anyway that I can use it as a conditional format so that when I paste the information onto the page it removes any trailing or leading spaces. At the moment I have to use this...
  17. G

    Cell data & custom format

    Hello guys & Gals, I have excel 2013 and I am trying to do something but cant seem to. In column A I want a leading / before any data I enter in the cell. So for example I want "/time" or "/545" (just examples.) I tried custom format and format tried was ?"/"? and tried 0"/"0 and several...
  18. I

    leading zeros with both numbers and letters in string

    I need to add leading zeros before two separate strings for all in column E. For example: <colgroup><col width="111"></colgroup><tbody> 0336565-CM </tbody> <colgroup><col></colgroup><tbody> 336700 </tbody>
  19. H

    Add Leading 0's to FileName Based on Variable Length

    I have a piece of code that is used to generate PDF files. The problem however is that the file names need a 3 digit prefix, based on the variable District. So for example, it will generate a file named: 1_PM.pdf Whereas I need it to generate a file named: 001_PM.pdf This is not a problem for...
  20. C

    Leading Zeros insert

    Hi I am new to this board and have tried every solution to inserting leading zeros. My question is how to insert leading zeros to the following cell entry? 206A 206B 206C 206T I have tried the format function but this does not work due to the fact I have a letter on the end of the cell...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top