+ Reply to Thread
Results 1 to 10 of 10

Populate the value of a specific cell based on two other dependant validation lists

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    58

    Populate the value of a specific cell based on two other dependant validation lists

    Dear Forum members,

    I want to populate the value of a specific cell based on the choices made from two other dependent validation lists.

    I am attaching a workbook that explains what I need to do.

    I consider myself a novice Excel user. Please explain in very simple terms. Assume that I know nothing
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Populate the value of a specific cell based on two other dependant validation lists

    Autopopulate the specific customer number from column C if individual or from Column F based on the value in B40.

    you can create a lookup

    =IF ( A40 = "Individual", LOOKUP(B40,{"Private individual","Prospect custmer","wesbank"},{"01",99,14}), LOOKUP(B40,{"Private individual","Prospect custmer","wesbank"},{??,??,??})

    so that will do the lookup

    BUT not sure what you wanted to lookup in F40 ?
    Last edited by etaf; 02-15-2014 at 07:39 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    12-07-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Populate the value of a specific cell based on two other dependant validation lists

    Hi Louisa

    An alternative way of doing it making use of the named ranges you had already created plus 1 I added 'customer' which is just $A$6 and $A$7 you could also use this for the data validation of A40

    Please Login or Register  to view this content.
    Regards
    Ian

  4. #4
    Registered User
    Join Date
    01-22-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Populate the value of a specific cell based on two other dependant validation lists

    Hi Wayne, thank you. I tried the formula, but it gave an error message, which I am attaching.excelerror.JPG
    The idea is to do the following:
    a) In cell A40 select individual or juristic based on customer type in column A.
    b) Cell B40 is a dependent validation list. If I select individual, I only see the values in column B. If I select juristic, I only see the values in column E.
    c) If I select individual, and from the dependent drop down select Westbank, then cell C40 should populate with the number of Westbank as per column C, if I select prospect customer, then cell C40 should populate with the number prospect customer as per column C.
    d) However, if I select juristic in cell A40, then the drop down chooses in cell B40 is limited to the juristic choices in column E. Should I select public company from the dependent dropdown, cell C40 should populate with the number for the public company based on Column F.

    Louisa

  5. #5
    Registered User
    Join Date
    01-22-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Populate the value of a specific cell based on two other dependant validation lists

    Hi Ian,

    Thanks for the suggestion.

    I tried it. but received an #name error.

    Louisa

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Populate the value of a specific cell based on two other dependant validation lists

    use, in C40
    =IF(A40="individual ", LOOKUP(B40,{"Private individual","Prospect custmer","wesbank"},{"01",99,14}),VLOOKUP(B40,JurNrLookup,2,FALSE))

    NOTE in individual you have a space after the word

  7. #7
    Registered User
    Join Date
    01-22-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Populate the value of a specific cell based on two other dependant validation lists

    Hallo Wayne,

    Thank you. I tried the formula, but got an error message again. Then I realized that I need to replace all the , in the formula with ;. The error message disappeared.

    The formula works like a charm when I select juristic, the dependent data validation lists works correctly and upon selecting the values from the list, cell C40 is populated with the correct number.

    However, when I select individual in Cell A40, the dependent validation list opens up correctly, but when I select any of the values from the list, I receive a #N/A.

    I am sure there must be something very simple that I am not seeing.

    I am attaching a second version of the workbook with the formula in it so that you can see what I mean.

    Louisa
    Attached Files Attached Files

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Populate the value of a specific cell based on two other dependant validation lists

    its the space as mentioned at the end of individual
    on the first sheet the validation looked for
    individual with a space at the end
    try this
    =IF(A40="individual", LOOKUP(B40,{"Private individual";"Prospect customer";"Wesbank"},{"01";99;14}),VLOOKUP(B40,JurNrLookup,2,FALSE))
    with the changes needed for your version , to ;

  9. #9
    Registered User
    Join Date
    01-22-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Populate the value of a specific cell based on two other dependant validation lists

    Hi Wayne, this worked perfectly. Much appreciated.

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,108

    Re: Populate the value of a specific cell based on two other dependant validation lists

    your welcome

+ 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] Dependant Data Validation - Numbers NOT Lists
    By TC1980 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2014, 08:20 AM
  2. [SOLVED] Cell Lookup (Rate) based on Dependant Data Val using Dynamic Lists
    By LSN in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2013, 08:43 AM
  3. Macro to populate multiple validation lists, based upon user's selection
    By katie.rader in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2013, 01:50 PM
  4. Replies: 2
    Last Post: 08-19-2009, 02:05 PM
  5. Replies: 1
    Last Post: 11-09-2007, 09:18 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