+ Reply to Thread
Results 1 to 9 of 9

Autofill from column B to C

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    Jersey
    MS-Off Ver
    Excel 2003
    Posts
    11

    Autofill from column B to C

    Hi guys,

    I'm after a formula or script which will look at what the user is entering (which will be a number), and then autofill the field next to it based on that number... I want it to grab the number/names from a text or database file of some sort, then match them up from there.

    Is this possible?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Autofill from column B to C

    Almost certainly. Some more details would be required for a more specific answer as to how.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-28-2010
    Location
    Jersey
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Autofill from column B to C

    Great,

    Column B is a number compromising of between 1 and 4 digits.
    Column C is a name that refers / is connected to those digits (so 200 = mr wallace, 211= mrs hannaghan) etc etc

    I would like it so if 200 was typed, it would autofill the C box wil mr wallace, 211 mrs hannaghan.

    The list would need to be contained in some sort of host file or even another tab within the spreadsheet, whatevers easiest... but the list would compromise of over 2000 numbers.

    Thanks in advance for any help

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Autofill from column B to C

    Attached is a formula approach.

    Dom
    Attached Files Attached Files
    Last edited by Domski; 09-28-2010 at 06:36 AM.

  5. #5
    Registered User
    Join Date
    09-28-2010
    Location
    Jersey
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Autofill from column B to C

    Hi Dom,

    Thank you so much, this worked perfectly!

    Can I be akward and ask one more thing?

    Is it possible rather than it routing to a worksheet, to get it to look at an excel file in a certain directory instead, or not?

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Autofill from column B to C

    Sure, the lookup table can sit within another workbook if required.

    Dom

  7. #7
    Registered User
    Join Date
    09-28-2010
    Location
    Jersey
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Autofill from column B to C

    Great, is it a simple matter of entering the directory inplace of worksheet name?

  8. #8
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Autofill from column B to C

    Easiest way is to have both files open and just create the formula referencing the other workbook.

    Dom

  9. #9
    Registered User
    Join Date
    09-28-2010
    Location
    Jersey
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Autofill from column B to C

    That simple!

    Thanks for all your help, appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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