+ Reply to Thread
Results 1 to 13 of 13

Automatically change a drop-down based on selection of another drop-down

  1. #1
    Registered User
    Join Date
    01-09-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    8

    Automatically change a drop-down based on selection of another drop-down

    Hello,

    I am trying to figure out a way to automatically change a cell value (which has a drop-down validation on it) based on the selection of another drop-down.

    I have attached an example of my worksheet.

    Worker 1 selects the status of the job and once completed it passes to worker 2.
    Worker 2 then selects the status of the job and once complete moves to worker 3 and so on.

    However if worker 2 discovers an error and needs to pass the work back to worker 1 they will select 'worker 1 to review'

    This is where the automatic change comes in. Once 'worker 1 to review' has been selected, I need the status cell on worker 1 to change from 'ready for worker 2' to 'not started'
    Then once it has been reviewed and worker 1 changes the status to 'ready for worker 2' (for the second time) I need the job status of worker 2 to change from 'worker 1 to review' to 'not started'.

    Is there any way to do this either through formula/validation or vba?

    Thanks for reading.
    Kind regards,
    Joe
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    My guess is VBA, so why not do the same you do with Worker 1 setting it to Worker 2? Instead of Worker 2 setting it to Worker 3 het/she sets it back to worker 1 ? Or is that too simple thinking?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    BTW why the xlsm.xlsx ? You remove the macros?

  4. #4
    Registered User
    Join Date
    01-09-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    8

    Re: Automatically change a drop-down based on selection of another drop-down

    Hi, thanks for your reply.

    Yeah i was messing about with macros to try and get it to work, before making an example one to upload here.

    Yes, you're right, that is the way it works. However when worker 2 sets it back to worker 1 i need the worker 1 status to change back to 'not started' automatically.

    The issue is worker 1 will only be filtering on their specific statuses to track the work that needs doing. Therefore if worker 2 sets their status to 'worker 1 to review', worker 1 will not pick this up as their status will still be set at 'ready for worker 2'

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    Then you will nee the macro that checks the status to set it back to Worker 1 the same way you have the macros to set it to worker 2.
    But, since the macros you already have are not in the file... I'm not going to invent your wheel again

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    Try this, just a quick and dirty change the first row in the workker 2 status to back to worker 1
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-09-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    8

    Re: Automatically change a drop-down based on selection of another drop-down

    Hi,

    Why do you think I already have macros? I don't have any macros. I tried to record a couple of macros but they were completely wrong so i deleted them.

  8. #8
    Registered User
    Join Date
    01-09-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    8

    Re: Automatically change a drop-down based on selection of another drop-down

    Hi,

    Ok thank you that works one way, but how do i replicate this if i have more workers? I have only a very basic understanding of macros.

    The logic I've used doesn't seem to be working. Here's the code;


    Option Explicit

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("I3:I6")) Is Nothing Then
    If Target.Value = "Worker 1 to review" Then Target.Offset(, -4) = "Not Started"
    End If

    If Not Intersect(Target, Range("E3:E6")) Is Nothing Then
    If Target.Value = "Ready for Worker 2" Then Target.Offset(, 4) = "Not Started"
    End If

    End Sub

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    You were the one that gave us the idea that you had macros and then changed it. Your sample file had two extensions .xlsm.xslx
    I suggest you pick up some tutorials for vba. There are many and all free and... vba is the result of a lot of practice perseverance patience and imagination , it’s not really complicated just logic
    Can you explain what you really want to achieve? Maybe your approach needs to be reconsidered but you’ll have to explain it in a way that I (and others) can understand it, it’s clear for you but think of us as the ones that have no idea what you want done.

  10. #10
    Registered User
    Join Date
    01-09-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    8

    Re: Automatically change a drop-down based on selection of another drop-down

    I never said I had working macros in there.
    Im currently partaking in an online vba course however, looking at the modules, I dont think they will cover this particular issue, hense why i turned to a forum.

    As for my request, you've done half of what i requested (thank you again), I just need to know how to replicate it as the code above is not working

    If cell in column I = "Worker 1 to review" then the cell adjacent in column E needs to change to "not started"
    And If the cell in column E is selected as "Ready for worker 2" then the cell adjacent in column I needs to change to "Not started"

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    Your logic was/is good, but the thing is you have to take into account the letter case, it wasn't working because the text was not identical so what I did and should have done in the first place is check it all in lower case LCASE()
    See attached corrected sample
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-09-2020
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    8

    Re: Automatically change a drop-down based on selection of another drop-down

    Sorry for the late reply.

    That worked perfectly. Thank you

  13. #13
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Automatically change a drop-down based on selection of another drop-down

    Good to hear. If this solved you issue please take the time to mark the post solved.

+ 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: 1
    Last Post: 09-06-2018, 09:39 PM
  2. Change the drop down values, based on selection in other columns(drop downs)
    By zeebee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2017, 01:16 PM
  3. Automatically Copy Data based on Drop Down Selection
    By ExcelNovice79 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-22-2015, 02:10 PM
  4. Replies: 1
    Last Post: 04-12-2013, 06:27 PM
  5. Automatically enter date and time based on above drop down box selection
    By haydoon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-16-2012, 09:16 PM
  6. Row color change based on drop down selection
    By bigbluesfan22 in forum Excel General
    Replies: 7
    Last Post: 08-01-2012, 09:15 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