+ Reply to Thread
Results 1 to 10 of 10

Auto-populating w/ if statements and a drop down box

  1. #1
    Registered User
    Join Date
    04-17-2009
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2011
    Posts
    30

    Auto-populating w/ if statements and a drop down box

    I set up a drop down menu and I want the cells below to autopopulate based on the choice made in the data validation.

    Choices
    Example A
    Example B
    Example C

    Autopopulate
    Intermediate additions
    Renovations
    upgrades

    Now that I have written this I don't know if it is clear enough.

    I appreciate any guidance.
    Last edited by thisiscrazy; 10-12-2010 at 06:34 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto-populating w/ if statements and a drop down box

    No it is not clear enough... you need to elaborate...

    Probably you are looking for a simple lookup function?

    Maybe an uploaded sample worksheet may help.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-17-2009
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Auto-populating w/ if statements and a drop down box

    I appreciate the help.

    Attached is an outline of what I am hoping to do.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto-populating w/ if statements and a drop down box

    First name each range...

    So select K3 to L4 and enter OptionA in the Name Box just left of the Formula Bar.

    Do similar for K6 to L9 and K11 to L16, with names OptionB and OptionC (note: no spaces allowed).

    Then in B6 enter formula:

    =IFERROR(INDEX(INDIRECT(SUBSTITUTE($B$3," ","")),ROWS($A$1:$A1),COLUMNS($A$1:A$1)),"")

    and copy down as far as you want and over to next column, if desired to get prices...

    In E3, try:

    =VLOOKUP(B3,$G$3:$H$5,2,0)

  5. #5
    Registered User
    Join Date
    04-17-2009
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Auto-populating w/ if statements and a drop down box

    That worked perfectly.
    Do you recommend those Fred Pryor Excel classes?
    Anyway, thanks for all of your help.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto-populating w/ if statements and a drop down box

    Who is Fred Pryor?

  7. #7
    Registered User
    Join Date
    04-17-2009
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Auto-populating w/ if statements and a drop down box

    They are some company that offer a bunch of different seminars on management, HR, excel, etc.

    Does the formula change if I need it to be compatible with 2003 or prior?
    ----
    Ok, I just sent it to a friend who has 2003 and he receives a #name error, so I am guessing that I need to alter the formula somehow to be compatible in 2003
    Last edited by thisiscrazy; 10-12-2010 at 04:58 PM.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto-populating w/ if statements and a drop down box

    No it is not backward compatible....

    Try changing it to:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-17-2009
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Auto-populating w/ if statements and a drop down box

    The new formula works in 2003 but not in 2007.

    Does that matter?

    Also, I don't get that formula at all, why does it reference two blank cells?

    Thanks for all of the help.

  10. #10
    Registered User
    Join Date
    04-17-2009
    Location
    Pacific Northwest
    MS-Off Ver
    Excel 2011
    Posts
    30

    Re: Auto-populating w/ if statements and a drop down box

    Nevermind... of course it works perfectly.

    Thank you so much

+ 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