+ Reply to Thread
Results 1 to 4 of 4

Adding leading 0's to singular numbers

  1. #1
    Registered User
    Join Date
    09-16-2021
    Location
    Cheltenham
    MS-Off Ver
    365
    Posts
    4

    Adding leading 0's to singular numbers

    Hi guys!

    So I've got a requirement for something I'm working on.

    Basically I'm doing some work for a printer and they've sent over their CMYK print values, ie 85 56 14 1

    However the system I'm working on needs these values formatted in a certain way, so 85 56 14 1 needs to become 0.85,0.56,0.14,0.01 to read into the database.

    So I've tried to be clever using CONCAT and it's mostly done the trick, however in the case of singular numbers I've ended up with 0.1 which is a different colour to 0.01.

    Is there a formula to add a leading 0 but only when it's a singular number, if that makes sense?

    Kind Regards,

    Matthew
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Adding leading 0's to singular numbers

    Hi & welcome to the board.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-16-2021
    Location
    Cheltenham
    MS-Off Ver
    365
    Posts
    4

    Re: Adding leading 0's to singular numbers

    that works an absolute treat, thank you so much!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Adding leading 0's to singular numbers

    You're welcome & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 04-27-2019, 12:13 AM
  2. [SOLVED] Adding leading zeros to a column of numbers
    By DixonPeer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2018, 03:57 PM
  3. [SOLVED] Adding Leading Zeros
    By j_Southern in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2014, 08:03 AM
  4. Adding Leading Zero's
    By mma3824 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2014, 02:27 PM
  5. [SOLVED] Adding leading zero to numbers within alphanumeric string
    By jp78kt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2013, 05:38 PM
  6. [SOLVED] adding a leading 0 to only the numbers with 4 digits
    By SwampYankee in forum Excel General
    Replies: 4
    Last Post: 06-01-2006, 03:55 PM
  7. Adding leading spaces
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2006, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1