+ Reply to Thread
Results 1 to 6 of 6

Shortcut to long entry??

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    Pennsylvania, USA
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    8

    Shortcut to long entry??

    Hey everybody,

    Please be aware that before I start any thread I search to my best ability to find the solution. If I start a thread, its because I had difficulties trying to find exactly what I need.

    Anyways, I am working on an excel sheet where I have 5 different locations items ship to. They are written by geographic location (digits only). What I am trying to do is to have a column formatted to enter a digit and have the geographic location appear. For example:

    If a user enters the number "5" on a cell the following will appear on the user hits enter: 01-005-00-744-8639
    If a user enters the number "6" on a cell the following will appear on the user hits enter: 01-006-00-744-8639
    If a user enters the number "9" on a cell the following will appear on the user hits enter: 01-009-00-744-8639
    and so on...

    This function will only be available in 1 column.

    Thank you so much.

  2. #2
    Registered User
    Join Date
    05-25-2010
    Location
    Florida
    MS-Off Ver
    Excel 2009
    Posts
    39

    Re: Shortcut to long entry??

    If you add a column you could have a simple ="01-00"&"X1&"-00-744-8639" assuming that X is the column where you enter the number. Other than that you would be looking at inserting vba code.

  3. #3
    Registered User
    Join Date
    02-19-2015
    Location
    Pennsylvania, USA
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    8

    Re: Shortcut to long entry??

    Quote Originally Posted by knitterkuba View Post
    If you add a column you could have a simple ="01-00"&"X1&"-00-744-8639" assuming that X is the column where you enter the number. Other than that you would be looking at inserting vba code.

    I tried this but it's not working? Could you elaborate a little more?

    Thanks

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Shortcut to long entry??

    Please Login or Register  to view this content.
    x1 = number 5 or 6 or 9.

    y1 is the formula above.

    the result (in y1) is like you asked.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    02-19-2015
    Location
    Pennsylvania, USA
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    8

    Re: Shortcut to long entry??

    yeah I understood that, but after playing around I found the mistake. Knitter typed this ="01-00"&"X1&"-00-744-8639" but I think he meant this: ="01-00"&X1&"-00-744-8639". Removing the quotation and leave it as "&X1&" worked for me. Thank you!!

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Shortcut to long entry??

    You could use a simple VLOOKUP table to accomplish this.
    X
    Y
    Z
    AA
    AB
    AC
    AD
    1
    6
    01-006-00-744-8639
    5
    01-005-00-744-8639
    2
    5
    01-005-00-744-8639
    6
    01-006-00-744-8639
    3
    9
    01-009-00-744-8639
    9
    01-009-00-744-8639
    4
    5
    =IF(X1="","",VLOOKUP(X1,$AC$1:$AD$3,2,0))
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Long formula shortcut help!!!!
    By rexy69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2014, 10:04 PM
  2. [SOLVED] How to make repeat long numbers shortcut ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  3. [SOLVED] How to make repeat long numbers shortcut ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. [SOLVED] How to make repeat long numbers shortcut ?
    By Bernard Liengme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] How to make repeat long numbers shortcut ?
    By toyota58 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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