+ Reply to Thread
Results 1 to 6 of 6

If cell 1 contains a number, then auto input contents in other cells

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    California
    MS-Off Ver
    Excel for Macs 2011
    Posts
    3

    Red face If cell 1 contains a number, then auto input contents in other cells

    I am trying to make a shortcut to filling out checks for my work. Everyone(where) we write to checks to has a specified number. For the checks, we put in the specified number and address (street, city, state, and zip all in different cells).

    I am wondering if there is a way to just put the specified number in a cell, and the other cells automatically fill with the address.

    For example:
    Frank is #390
    123 Apple St.
    Sunnyvale, FL 12345

    If I punch 390 in cell A1, is there any way to auto fill the rest so that A2 is '123 Apple St.', cell A3 is 'Sunnyvale', A4 is 'FL', and A5 is '12345'?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: If cell 1 contains a number, then auto input contents in other cells

    if you have the full list in a table in excel

    so in columns as listed a-b
    #390 = 123 Apple St. Sunnyvale FL 12345

    then you can lookup the value in A and return the value in B

    can you post a sample file of your address info
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-19-2014
    Location
    California
    MS-Off Ver
    Excel for Macs 2011
    Posts
    3

    Re: If cell 1 contains a number, then auto input contents in other cells

    Sample.xlsx
    Thank you for responding! I attached a sample of the form I need to fill out (Sheet 1), and Sheet 2 is sample information.

    I just want to know if there is a way to just type in the GL code on the top form, and have the address fill in automatically...

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: If cell 1 contains a number, then auto input contents in other cells

    assuming the GL Code goes into cell D12

    for the address use
    =VLOOKUP(D12,Sheet2!A1:E6,2,FALSE)
    for City/State/Zip Code use
    =VLOOKUP(D12,Sheet2!A1:E6,3,FALSE)&"/"&VLOOKUP(D12,Sheet2!A1:E6,4,FALSE)&"/"&VLOOKUP(D12,Sheet2!A1:E6,5,FALSE)

    you can change how its laid out
    & is the concatenate command and so if you want spaces and other text, then change
    &"/"&
    to
    &" / "&
    adding spaces

    see attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-19-2014
    Location
    California
    MS-Off Ver
    Excel for Macs 2011
    Posts
    3

    Re: If cell 1 contains a number, then auto input contents in other cells

    Awesome, thank you so much!!!

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: If cell 1 contains a number, then auto input contents in other cells

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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: 4
    Last Post: 03-07-2014, 09:06 AM
  2. [SOLVED] Distribute contents of a cell into other cells according to number of characters
    By Sacharny in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2013, 10:38 AM
  3. Auto applying text to a cell based on another cells input
    By Dutch67 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2013, 09:47 AM
  4. [SOLVED] Validating contents of a cell on input based on the contents of another cell
    By Saigonet in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 03:07 AM
  5. Replies: 0
    Last Post: 11-06-2012, 11:16 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