+ Reply to Thread
Results 1 to 12 of 12

Data Validation for each cell in a matrix - Need Help!

  1. #1
    Registered User
    Join Date
    11-25-2018
    Location
    Australia
    MS-Off Ver
    Office 2013, and 2016, Office 365
    Posts
    11

    Question Data Validation for each cell in a matrix - Need Help!

    Hi
    I joined the forum today and Nice to meet You All.
    I am from Sydney Australia.

    I have an array of 3 rates based on material types.
    3 Columns indicate dollar rates for a specified unit of materials.

    The user needs to select any one cell against the three.
    When they decide the material type (one out of the Three), the other two cells have to be made to zero.

    Then the next column Qty (Quantity) where the Qty is to be entered.
    using the Data validation, I manually created 'List' based data validation to choose the value. (adding a 0.00 to the list in a separate sheet).

    This is laborious and time consuming for me.

    Can someone suggest, Is there any way to do the same for a range of cells (3 x say 25).

    I need to understand and extend this to other cells in the sheet.

    Anxiously looking forward to some direction.

    Thanks
    HM1961

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data Validation for each cell in a matrix - Need Help!

    Hi and welcome.

    It would be much easier for us to help you if we could see the issue in context. So if you can attach a sample workbook showing before and after (manually generated) it would be great.

    Click on GO ADVANCED (below your reply) and then scroll down to Manage Attachments to open the upload window. Should be straightforward from there.

    BSB

  3. #3
    Registered User
    Join Date
    11-25-2018
    Location
    Australia
    MS-Off Ver
    Office 2013, and 2016, Office 365
    Posts
    11

    Re: Data Validation for each cell in a matrix - Need Help!

    Hi BadlySpelledBuoy,

    Thanks for promptly replying and assisting me to get across.


    I have attached the spreadsheet 'Sample Pricing Sheet-HM1961'.

    I have provided the narration on the table header.

    Cheers

    HM1961.
    Attached Files Attached Files

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data Validation for each cell in a matrix - Need Help!

    Are you tied to this approach?

    Perhaps it would be easier to have a column with a dropdown that could be applied to all rows where the user selects A, B or C. It then looks up the value for the relevant material in the hidden list and makes the other two zero.

    Would that work at all?

    If you are tied to this approach then perhaps a short piece of VBA could loop through the rows and apply the validation rather than you doing it manually.

    BSB

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Data Validation for each cell in a matrix - Need Help!

    Maybe... delete the values in CD & E... Replace the DV with =J8 and copy down the row
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data Validation for each cell in a matrix - Need Help!

    Whilst I prefer Glenn's approach, I'm attaching this purely because I've put it together.
    Changing the material selection in the new column will also negate the need for the user to set other columns to zero if they change the selection.

    BSB
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-25-2018
    Location
    Australia
    MS-Off Ver
    Office 2013, and 2016, Office 365
    Posts
    11

    Re: Data Validation for each cell in a matrix - Need Help!

    Hi Glenn and BSB,

    Thanks a Ton for your timely awesome help.

    My reply to the two scenarios is:-
    a) Glenn's solution is apt except that if the user erroneously selects a material, there is no provision to choose another one.
    b) BSB's list of populating works perfectly fine. But

    As per the procurement policies, The approved rates cannot be hidden as it has to be transparent for the management to have an option to choose the material on a case to case basis depending on the project works.

    Glenn is there something that I can do to include changing the options to other, But ONLY ONE Material.

    Looking forward to your valuable response.
    HM1961

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Data Validation for each cell in a matrix - Need Help!

    If you erroneously choose a material... hit delete.

  9. #9
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data Validation for each cell in a matrix - Need Help!

    Quote Originally Posted by HM1961 View Post
    As per the procurement policies, The approved rates cannot be hidden as it has to be transparent for the management to have an option to choose the material on a case to case basis depending on the project works.
    I'm not sure what this means... I only mentioned having the list hidden away as you said it would be in your attachment.

    BSB

  10. #10
    Registered User
    Join Date
    11-25-2018
    Location
    Australia
    MS-Off Ver
    Office 2013, and 2016, Office 365
    Posts
    11

    Re: Data Validation for each cell in a matrix - Need Help!

    Hi Glenn and BSB,

    I wish to thank you both for the excellent help.

    How do I indicate 'Solved'?

    Cheers
    HM1961

  11. #11
    Registered User
    Join Date
    11-25-2018
    Location
    Australia
    MS-Off Ver
    Office 2013, and 2016, Office 365
    Posts
    11

    Re: Data Validation for each cell in a matrix - Need Help!

    I figured out how to mark this thread as "Solved".

    HM1961

  12. #12
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data Validation for each cell in a matrix - Need Help!

    You should see "Thread Tools" above your original post. You can select mark as solved from there.

    BSB

+ 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. Data Validation Cell based on previous Data Validation Cell?
    By Dessesbo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2015, 11:42 PM
  2. Matrix Validation
    By l3lacksnow in forum Excel General
    Replies: 1
    Last Post: 01-19-2015, 06:53 PM
  3. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  4. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  5. Dynamic Comparitive Matrix Table with Data validation conditions
    By santhosh51 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2013, 09:21 AM
  6. Replies: 1
    Last Post: 07-08-2013, 09:20 AM
  7. validation rules not working when someone copy paste data on validation cell
    By jthakrar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-17-2010, 03:36 AM

Tags for this Thread

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