+ Reply to Thread
Results 1 to 3 of 3

inserting preceding digits (NOT USING TEXT, CONCAT, OR "CUSTOM" FORMAT) 4 VLOOKUP

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    Pittsburgh, PA
    MS-Off Ver
    2007
    Posts
    25

    inserting preceding digits (NOT USING TEXT, CONCAT, OR "CUSTOM" FORMAT) 4 VLOOKUP

    Hello all I am attempting a vlookup. lookup value is a cell that contains (example) 465. the value in the table array to be found is 00000465. the only way i can get this to work is to manually add the preceding 0's with an ' (apostrophe) mark (e.g. '00000465) which populates my lookup cell with 00000465, and then the vlookup returns the value i need. I've tried adding 0's with Text Or Concatenate but get circular ref warning. Custom formatting does not work because it does not actually add the preceding )'s to the content of the cell.

    I need a quick way to add the preceding zeros to the column containing the lookup value. Ideas? need more info let me know. Thanks.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: inserting preceding digits (NOT USING TEXT, CONCAT, OR "CUSTOM" FORMAT) 4 VLOOKUP

    ASSUMING the465 that you wish to modify is in a1, this will return 00000465, which you can then use in your LOOKUP

    =TEXT(INT(ABS(A1)),"00000000")
    Last edited by Glenn Kennedy; 12-01-2014 at 03:20 PM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-30-2014
    Location
    Pittsburgh, PA
    MS-Off Ver
    2007
    Posts
    25

    Re: inserting preceding digits (NOT USING TEXT, CONCAT, OR "CUSTOM" FORMAT) 4 VLOOKUP

    Thank you Glenn, this is a great start.

+ 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] Convert from "general" (YYYYMMDD) to specific "custom" format (YYYY.MM.DD)
    By Ella_p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2013, 02:23 AM
  2. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  3. [SOLVED] TEXT function - format argument to place "0" before digits
    By Maki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2013, 10:45 PM
  4. Replies: 2
    Last Post: 11-01-2012, 04:35 PM
  5. Excel 2007 : Format cells as "custom" 5 digits
    By MyronCope in forum Excel General
    Replies: 1
    Last Post: 06-01-2010, 09:27 AM

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