+ Reply to Thread
Results 1 to 20 of 20

Data validation listing all associations but looking at 2 separate worksheets?

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Data validation listing all associations but looking at 2 separate worksheets?

    Hello, I was hoping for some assistance with another data validation issue:
    I'm looking for a way to get employer information that now associates with 3 criterion, from column M, in cells M2,M3 & M4 in my workbook. Cell M4 will change based on the text in cell N2. If "NCP" is selected then the formula will need to look for the associations in the "Employer Docket" worksheet and if "CP" is selected it will need to look at the data in the "Employer DocketCP" worksheet. Then the user can select from a drop down menu in cell M6:P6 from the list of employers based on the associations, which one they want to select, etc. Based on the data in cells M2, M3 & M4 the employers that should populate are displayed underneath m6 in my attached sample workbook.

    The data in cells M2, M3 and M4 are formula based, meaning they have formulas in those cells and the data is coming from the Docket sheet.

    Bo_Ry was kind enough to help me with this type of validation involving 1 data worksheet and 2 manual entry types. I tried to modify the formula(s) for this scenario, but I kept getting #NUM! and I can't figure out why. Any assistance would be appreciated.
    Attached Files Attached Files
    Last edited by lilsnoop; 04-11-2021 at 03:26 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Please create a Range name

    List
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    then Data Validation =List
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Bo_Ry-Thanks for your help with this expanded issue of mine with this project. The formula you provided is giving me the results from the opposite selection. I've highlighted in yellow on the specific data sheets the rows that would match the three cell match criterion; (see new workbook attachment) Thanks again!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Try this for "List"

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Add N to "NCP" in the Range name List

    =CHOOSE(1+($N$2="NCP"),...

  6. #6
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Thanks John! If I use your formula and scroll down, it will only provide me the 1st employer and not the 2nd affiliated with the individual. Do I need to edit anything per line? Thanks again!

  7. #7
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Thanks Bo_Ry! I'm still having issues with the correct employer names populating, even with adding the "N" for NCP. Also for the CP I get #N/A. I assume I can drag this formula down to accommodate individuals who may have 5 or more past employers? I found the drop down data validation list displays the correct employers, but I don't see one of them listed in the formula section in column Q. Why is that? I've also been trying to understand the data validation part too. I see it says "=list". Where is this list that it references? The reason I ask, is that the drop down works for NCP employers, but doesn't list the CP employers. Sorry for so many questions, just trying to figure this out. Thanks again for your patience with me.
    Attached Files Attached Files

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    List
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    see attached: formula entered with Ctrl+Shift+Enter
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    John that is fantastic! It appears to be doing exactly what I need! Thank you! Could you explain how the data validation formula "=list" works? So I can try to have the references correct on real workbook? Appreciate the help!

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    =CHOOSE(1+('Employer Disclosure (case)'!$N$2="CP"),OFFSET('Employer Docket'!$N$2,MATCH('Employer Disclosure (case)'!$M$2,'Employer Docket'!$A$3:$A$99,),,COUNTIFS('Employer Docket'!$A$3:$A$99,'Employer Disclosure (case)'!$M$2)),OFFSET('Employer DocketCP'!$N$2,MATCH(1,INDEX(('Employer DocketCP'!$A$3:$A$99='Employer Disclosure (case)'!$M$2)*('Employer DocketCP'!$B$3:$B$99='Employer Disclosure (case)'!$M$3)*('Employer DocketCP'!$C$3:$C$99='Employer Disclosure (case)'!$M$4),),),,COUNTIFS('Employer DocketCP'!$A$3:$A$99,'Employer Disclosure (case)'!$M$2,'Employer DocketCP'!$B$3:$B$99,'Employer Disclosure (case)'!$M$3,'Employer DocketCP'!$C$3:$C$99,'Employer Disclosure (case)'!$M$4)))

    If CP is picked then in CHOOSE(1+('Employer Disclosure (case)'!$N$2="CP the RED part is TRUE which resolves to 1 so the CHOOSE value is 2 , so it selects the formula in RED i.e looks at the CP data.

    The MATCH statement does the comparisons against account & REF# And ID.

    If you get problems post a file of your real workbook and we should be able to get the formulae aligned.

  12. #12
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Appreciate that John! I can't get my original workbook down to the size that it would allow me to upload it, even with all of the data removed; it has many pages and is over 1,431kb saved as a binary file; which is bare bones.

    The sample data validation (drop down menu) references "list" as how it locates the employers. It doesn't seem to be referencing off of the array formulas that I can tell at least by any association of a "list" title. (hope that makes sense). That is what is puzzling me. So if I go to my original file and for cell M6, I go to data validation and I select list as my option and then in the formula bar portion I need to reference what? The sample file in the formula section displays "=list" is that the section with all of your formulas or is it referencing the N columns of both data worksheets? Thanks again for taking the time to help!

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    You only need to supply 2 sheets which represent the CP/NCP sheets plus the "selection" sheet i.e where you have drop down for CP/NCP.

    It references N in both cases and compares (MATCH) columns A, B and C.

    You could ZIP (compress) the file if required.

  14. #14
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Ok, John I'll try the zip. I removed all of the normal data and replaced with the test data.. so hopefully this will work. Really appreciate your help! The worksheet is titled Employer Disclosure (case) as it will open by default on a different worksheet due to macros.
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    I created a named range called Listx using the formula in post #11.

    I changed the DV in M6 to use Listx: now looks OK.

  16. #16
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Thanks John! Look forward to seeing the revised file!

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    Hopefully this OK.
    Attached Files Attached Files

  18. #18
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    John, that does exactly what I need! Can't thank you enough for taking the time to help!

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    You're welcome. Not forgetting Bo_Ry's contribution.

  20. #20
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Re: Data validation listing all associations but looking at 2 separate worksheets?

    You both have helped immensely for sure! Thanks again!

+ 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. Creating a macro to split data into separate workbooks and separate worksheets
    By jfish07 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2019, 10:48 AM
  2. Replies: 4
    Last Post: 11-21-2017, 07:35 PM
  3. [SOLVED] Data Validation Limited Listing
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2017, 04:18 AM
  4. [SOLVED] Data Validation Listing Based on Certain Condition
    By vs.suresh in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 04-04-2016, 01:39 PM
  5. Index/match with Data Validation Listing
    By rise206 in forum Excel General
    Replies: 7
    Last Post: 12-30-2010, 12:36 PM
  6. Data Validation associations
    By dam366 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2010, 01:57 PM
  7. Listing data from multiple worksheets
    By scottcts in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 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