+ Reply to Thread
Results 1 to 3 of 3

SOLVED:Expressing the number of digits in a cell's value

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Williamsburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    18

    SOLVED:Expressing the number of digits in a cell's value

    Hi;
    Cell A1 contains data that is retrieved from another location using VLOOKUP.

    The data in Cell A1 will be concatenated with other text in multiple places throughout my workbook.

    A1 is formatted as a 4 digit number (i.e., 0001-9999). There will be instances where I need to use it just as it's formatted.

    There are other instances where I need to use the value in that cell without the leading zeroes (i.e., 1-9999).

    I have tried several IF(AND) formulas, but I am having no success. Any suggestions?

    Thanks,
    Dave
    Last edited by d dubya; 08-31-2014 at 06:26 AM. Reason: Solved

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Expressing the number of digits in a cell's value

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    Williamsburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: SOLVED:Expressing the number of digits in a cell's value

    That did it.

    Thank you, TMS!!

+ 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. [SOLVED] How do I determine the number of digits in a cell
    By Gandalf2524 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 12:06 PM
  2. Replies: 2
    Last Post: 07-06-2009, 12:30 PM
  3. Expressing a number into days-hours-minutes
    By stbrewin in forum Excel General
    Replies: 5
    Last Post: 07-02-2009, 12:23 PM
  4. Replies: 5
    Last Post: 12-08-2008, 11:47 AM
  5. Number of Digits in a cell.
    By pilotwings64 in forum Excel General
    Replies: 2
    Last Post: 01-18-2008, 05:24 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