+ Reply to Thread
Results 1 to 3 of 3

Auto fill values based on drop down list

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Auto fill values based on drop down list

    I'm trying to figure out how to auto fill values of different cells based on which value I choose from a drop down list in Excel 2007.

    I have the drop down list created, and the only way I could figure out to auto fill the values was to do =IF(A2=M2, "Value A", IF(A2=M3, "Value B", IF(A2=M4, "And so on...")))

    Several things with this though, if I need to add additional items to the list, I'd have to go through each IF statement and add them, AND, will have multiple columns and rows that I will be tallying.

    What's the "easy" way to do this?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Auto fill values based on drop down list

    Hi,

    It might be easier if we could see the workbook in question, but have you tried creating a table of the M2, M3, M4 etc values and alongside in N2, N3, N4 etc the Value A, Value B etc. values. Then use =VLOOKUP(A2,M2:N100,2,FALSE)

    Better still create a dynamic range name for your range M2:N??, say 'MyTable' so that it will expand if you add values and use =VLOOKUP(A2,MyTable,2,FALSE)

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-21-2010
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Auto fill values based on drop down list

    I uploaded a test xlsx to sort of show what I'm trying to do. I only have the first two if statements done...and you can see why I'm looking for an easier way.

    I don't know much about VLOOKUP, but I will take a look into that, as well as creating the table and using that.
    Attached Files Attached Files

+ 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