+ Reply to Thread
Results 1 to 20 of 20

Need help having a drop down list change multiple cells depending on the list selection

  1. #1
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Need help having a drop down list change multiple cells depending on the list selection

    I'm just starting to learn how to use formulas in excel so I am looking for some help on having a drop down list change multiple cells depending on the list selection. I have been successful in trial and error thus far for tons of other issues, but I am stuck on this one.

    I have attached an example of my problem I am working with for others to get a better understanding of what I mean.

    In regards to my example, I have two shifts, D.5 Shift and C Shift. Each shift comes with different times in half hour increments and when I select D.5 Shift in the drop down, I want B8-AA8 to be populated in B1-AA1, B9-AA9 to be populated in B2-AA2, and B10-AA10 to be populated in B3-AA3.

    If I were to choose C shift, I'd want B13-AA13 to be ALSO populated in B1-AA1, B14-AA14 to be ALSO populated into B2-AA2, and B15-AA 15 to be ALSO populated in B3-AA3.

    Is this concept even possible? If so, how do I combat this as anything I've searched for has not properly addressed my problem.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    I don't know if I understand correctly, but try =IF($A$1="D.5",B8,B13) in B1, then copy to all cells from B1:AA3.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140
    David,

    This is exactly what I was looking for. Thank you so much! Now I just need to know how to take care of this with more selections than just two.
    Last edited by jennis7242; 08-11-2017 at 03:05 PM.

  4. #4
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140
    With my example there are only two choices with two time grids. With my actual project, I have eight. I tried adding in more to the formula to cover eight choices rather than two and it throws an error stating there's "too many arguments fo this function"

    How would I go about this? My actual spreadsheet has a ton going on and I didn't want to attach that but I will if it helps people help me.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    You probably need to go down the lookup table route, but seeing the workbook, a desensitised version of it, would help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    Okay I cleaned it all up and showing is now the majority of what I am working on in regards to this formula issue I'm having.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    It also depends on the day: only reference to the day is in tab name (?)

  8. #8
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    I apologize, please ignore the days. I forgot to remove those. We wont be needing any information from any other sheet within the formula, I know that much.

  9. #9
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    To clarify, please only worry about the first sheet titled "W2 Monday"

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    in "W2 Monday"

    in C3

    =INDEX(INDIRECT("'" &$B$3&"'!A1:AA24"),ROWS($1:2),COLUMNS($A:A))

    Copy across and down

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    Or

    =INDEX(INDIRECT("'" &$B$3&"'!A2:AA24"),ROWS($1:1),COLUMNS($A:A))

    (as I was "fixated" on finding the day!)

  12. #12
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    Hey John, thanks for helping out!

    Unfortunately, that doesn't work. It just displays 0:00 no matter what I choose.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    See attached.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    Ahh yup the D.5 selection works, but the rest of them don't.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    Because there is no data for the other shifts!!!!!

  16. #16
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    Look again. Starting cell C12 and down is the rest of the data for the other shifts.

  17. #17
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    After hours of trial and error, I finally figured it out myself. This will be a ton of work, but I don't see it working another way. Thanks for the help anyway everyone!

    In each cell that needs to be changed,
    =IF(A1="D.5","10:00",IF(A1="C","9:00",IF(A1="B","9:30",""))) and so on.

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    My misunderstanding obviously ........

    I expected to find the details for Shift D5 on Sheet D5, those for Shift D on Sheet D but I think I now understand: they are all in the sheets "W2 Monday" !!!!!

    In C3

    =INDEX($C$7:$AB$35,MATCH($B$3,$C$7:$C$35,0)+ROWS($1:1),COLUMNS($A:A))

    Copy across and down..

    Again apologies.
    Attached Files Attached Files
    Last edited by JohnTopley; 08-12-2017 at 03:58 AM.

  19. #19
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Lansing, Michigan
    MS-Off Ver
    2016
    Posts
    140

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    No worries, it's my fault for not removing the unnecessary sheets and making it confusing. You've been a big help, thank you so much!

  20. #20
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Need help having a drop down list change multiple cells depending on the list selectio

    You are very welcome; I am of an an age where confusion comes easily!!!

+ 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. Vlookup to chose correct list depending on a drop down list selection
    By Bandit_750 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-06-2015, 06:22 PM
  2. Replies: 1
    Last Post: 06-25-2015, 07:29 AM
  3. Change cell content depending on selection from drop down list
    By mack4n in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2015, 04:17 AM
  4. Replies: 1
    Last Post: 04-03-2015, 06:00 PM
  5. Replies: 1
    Last Post: 04-12-2013, 06:27 PM
  6. [SOLVED] From drop down list selection populate multiple Cells
    By logcabin123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-21-2012, 12:43 PM
  7. Auto fill cells depending on Drop down List selection
    By Trengor in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-22-2008, 11:06 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