Forum Discussion

CelineFoong's avatar
CelineFoong
Copper Contributor
May 24, 2021

How can i create 3 dependent drop down list with the 3rd drop down depending on 1st and 2nd list?

Here is my list of data. For Dropdown3, I will want the dropdown to be dependent on BOTH Dropdown1 and Dropdown2. Kindly note that some of the values within Order Information/Shipping Information under Proforma Invoice/Draft Shipping docs/Final Shipping docs can be the same and it can be different too . As such I will need the 3rd dropdown list to be dependent on BOTH Dropdown 1 and Dropdown2

Dropdown1Dropdown2Dropdown3
Proforma InvoiceOrder informationCustomer requirement/basic information 
Proforma InvoiceOrder informationPayment terms
Proforma InvoiceOrder informationPO number / Material information 
Proforma InvoiceOrder informationPrice
Proforma InvoiceOrder informationQuantity
Proforma InvoiceOrder informationVendor information
Proforma InvoiceShipping informationDate discrepancy
Draft shipping docsOrder informationCustomer requirement/basic information 
Draft shipping docsOrder informationPayment terms
Draft shipping docsOrder informationPO number / Material information 
Draft shipping docsOrder informationPrice
Draft shipping docsOrder informationQuantity
Draft shipping docsOrder informationVendor information
Draft shipping docsShipping informationCarton information 
Draft shipping docsShipping informationContainer information
Draft shipping docsShipping informationDate discrepancy
Final shipping docsOrder informationCustomer requirement/basic information 
Final shipping docsOrder informationPayment terms
Final shipping docsOrder informationPO number / Material information 
Final shipping docsOrder informationPrice
Final shipping docsOrder informationQuantity
Final shipping docsOrder informationVendor information
Final shipping docsShipping informationCarton information 
Final shipping docsShipping informationContainer information
Final shipping docsShipping informationDate discrepancy
Final shipping docsShipping informationEEM - GAC/VSD accuracy
  • CelineFoong 

    See the attached sample workbook.

    Select C2 on the Data Entry sheet and click Data Validation on the Data tab of the ribbon to see the formula I used. It is

     

    =OFFSET(Lists!$C$1,MATCH(1,(Lists!$A$2:$A$27=A2)*(Lists!$B$2:$B$27=B2),0),0,COUNTIFS(Lists!$A$2:$A$27,A2,Lists!$B$2:$B$27,B2),1)

  • CelineFoong 

    See the attached sample workbook.

    Select C2 on the Data Entry sheet and click Data Validation on the Data tab of the ribbon to see the formula I used. It is

     

    =OFFSET(Lists!$C$1,MATCH(1,(Lists!$A$2:$A$27=A2)*(Lists!$B$2:$B$27=B2),0),0,COUNTIFS(Lists!$A$2:$A$27,A2,Lists!$B$2:$B$27,B2),1)

    • CelineFoong's avatar
      CelineFoong
      Copper Contributor

      HansVogelaar 

      Appreciate your great help and reply.

      I tried at my end using the formula you provided and it works 🙂 

       

      Thank you for the great help , this formula really save alot of time in my work

       

      Happy Weekend

       

      Celine

    • ChristianDeinzer's avatar
      ChristianDeinzer
      Copper Contributor

      HansVogelaar 

       

      It looks like it is exactly I have been looking for, but for some reason your Dropdown3 is not working.

      Could you please let me know how to fix it?

      Thanks a lot!

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        ChristianDeinzer 

        It looks like data validation has to be refreshed when the workbook is opened.

        The attached new version is now a macro-enabled workbook; you may have to allow macros when you open it. I hope this works for you.