+ Reply to Thread
Results 1 to 15 of 15

Auto update cell with validation list

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Auto update cell with validation list

    Hi Experts,

    please help me fix my problem. I would like cells D3 and E3 (sheet "validation") to auto update when I change value in validation list on C3 eg. prevoius year was 2017, I have changed C3 to 2016, but values in D3 and E3 didn't update to jan-16 and feb-16.

    Thaks for help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Auto update cell with validation list

    Your cell value is static (the value selected from dropdown is permanent)
    - and so needs either a "change" macro or a formula to reflect the change when you select a different year

    see row 10 in attached workbook for a "formula" solution
    Last edited by kev_; 03-30-2017 at 04:07 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Auto update cell with validation list

    Hi wrybel

    Not sure if this is what you are looking for...Check out Validation Sheet
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Auto update cell with validation list

    Hi,

    unfortunately yours solution are not enought. Look at this post http://www.ashishmathur.com/automati...-list-changes/, here is almost what I want, but the problem is that, the values in validation update only after manual cell change. Do you have any other solution ?

    Thanks for your current help.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Auto update cell with validation list

    Where are you getting the month value for Month A and Month B

  6. #6
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Auto update cell with validation list

    There are from data sheet range D2:D13. Is that what you mean?

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Auto update cell with validation list

    Why does the validation cell itself need to change?

    Why can you not use a cell with a formula in it? It achieves exactly the same result

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Auto update cell with validation list

    Quote Originally Posted by wrybel View Post
    There are from data sheet range D2:D13. Is that what you mean?
    Okay, however, on your validation sheet, there is no dropdown for month?

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Auto update cell with validation list

    Quote Originally Posted by kev_ View Post
    Why does the validation cell itself need to change?

    Why can you not use a cell with a formula in it? It achieves exactly the same result
    I agree with Kev_ on this one.

  10. #10
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Auto update cell with validation list

    Because later I will need validation list in D3 and E3 for further actions, like choosing values depend on this cells.

  11. #11
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Auto update cell with validation list

    Perhaps it would be better if you attached a new workbook which explains everything you are trying to achieve so that we can look at the "whole" picture.
    We need to understand which cell is dependant on another and what you want to happen to each cell in the whole chain

    It sounds as though dependant dropdowns (achieved by using a combination of Named Ranges and the Indirect Function) will get you what you want

    thanks

  12. #12
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Auto update cell with validation list

    In the meantime have a look at the attached workbook
    - may not be quite what you want - but is an excellent twist on the normal way to achieve dropdowns

    Adapted from something I found at Jerry Beaucaire's excellent site

    Beaucaire.jpg
    Last edited by JBeaucaire; 12-26-2019 at 03:49 PM.

  13. #13
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto update cell with validation list

    This can only be achieved through VBA, probably why it's in the VBA forum.

    Here is my published solution for this common goal: DV-UpdatePriorChoices

    The macro solution watches for a DV selection to be made, then immediately replaces that choice with a formula that gives the same result. This way if you change your source list, the prior choices will update to show the new value in the same positions from the list.


    To use the code as is, you simply need to create a named range for the months, then
    Attached Files Attached Files
    Last edited by JBeaucaire; 12-26-2019 at 03:49 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  14. #14
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Auto update cell with validation list

    JBeaucaire, this is excactyly what I need. Thanks a lot. kev and sintek thanks for your support.

  15. #15
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Auto update cell with validation list

    You are welcome. Thanks for rep.

+ 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. [SOLVED] Auto update of indirect list when parent validation list is re-selected.
    By xtremca in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-23-2015, 10:15 AM
  2. Replies: 7
    Last Post: 02-01-2013, 06:47 PM
  3. Data Validation Dependant auto update the list
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 07:38 PM
  4. auto update validation list.
    By Jurado01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2009, 11:23 AM
  5. Update a validation list based on value of another cell
    By JDM11808 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-05-2009, 07:53 PM
  6. Update Validation List from cell
    By pkeegs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2006, 11:20 PM
  7. Auto Update A Validation List
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 04:06 PM

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