+ Reply to Thread
Results 1 to 9 of 9

Indirect Data Validation

  1. #1
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Indirect Data Validation

    Hi Excel Experts,

    I need some help on data validation. I have in tab Checklist which the data is coming from Sheet3 Column A but I cannot use data validation as it has a lot of duplicate records.
    Bigger problem is for example if I select "DBMW" in tab Checklist Column C4 I only want to see the countries in Column D4 which are listed in tab Sheet3 which column Service Tower = "DBMW" and so on for tab Checklist column E4 I want to only see the locations available if Sheet3 Column Service Tower="DBMW" & Sheet3 Column LBU="CA".

    I tried to use the Indirect formula but I am not getting the correct result. Anyone there able to help me with this? Attached is the Excel File sample and how I want it to look like.

    Kind Regards,
    Mark.
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Indirect Data Validation

    Ok try in checklist

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


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


    Copy down.

    Create name manger LBU =OFFSET(CheckList!$I$4,,,COUNTIF(CheckList!$I:$I,"?*"))

    Create another manger Location =OFFSET(CheckList!$J$4,,,COUNTIF(CheckList!$J:$J,"?*"))

    on D4 cell create data validation in source press f3 and select LBU same thing for Location.

    Check the attached file.

    hope this should help.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Indirect Data Validation

    Quote Originally Posted by shukla.ankur281190 View Post
    Ok try in checklist

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


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


    Copy down.

    Create name manger LBU =OFFSET(CheckList!$I$4,,,COUNTIF(CheckList!$I:$I,"?*"))

    Create another manger Location =OFFSET(CheckList!$J$4,,,COUNTIF(CheckList!$J:$J,"?*"))

    on D4 cell create data validation in source press f3 and select LBU same thing for Location.

    Check the attached file.

    hope this should help.
    Hi Shukla,

    This works perfectly well for Column C & D but Column E contains still extra data?
    For example if I select DBMW & BR, I should only get to see 1 record in the list but yours shows more than 1 records. For most of it it has more data in Column E but column D works well.

    Kind Regards,
    MArk.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Indirect Data Validation

    Drag formula of J column until 100 row perhaps.

  5. #5
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Indirect Data Validation

    Quote Originally Posted by shukla.ankur281190 View Post
    Drag formula of J column until 100 row perhaps.
    Hi Shukla,

    I tried that but there is still a lot of data when DBMW & BR should only show one data in Column E. :-(

    Kind Regards,
    Mark.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Indirect Data Validation

    Oh sorry my mistake.

    Try


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


    Drag down!

  7. #7
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Indirect Data Validation

    Quote Originally Posted by shukla.ankur281190 View Post
    Oh sorry my mistake.

    Try


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


    Drag down!
    Hi Shukla,

    This works perfectly. You are a genius sir.
    Manyt hanks for your help. :-)

    Kind Regards,
    MArk.

  8. #8
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Indirect Data Validation

    i think this is better:
    =IFERROR(INDEX(l!$E$2:$E$2204,SMALL(INDEX(((l!$B$2:$B$2204<>$D$4)+(l!$A$2:$A$2204<>$C$4)+COUNTIF($J$3:J3,l!$E$2:$E$2204))*10^10+ROW(l!$A$2:$A$2204)-ROW(l!$A$1),),1)),"")
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    01-02-2015
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    2007
    Posts
    272

    Re: Indirect Data Validation

    Quote Originally Posted by tim201110 View Post
    i think this is better:
    =IFERROR(INDEX(l!$E$2:$E$2204,SMALL(INDEX(((l!$B$2:$B$2204<>$D$4)+(l!$A$2:$A$2204<>$C$4)+COUNTIF($J$3:J3,l!$E$2:$E$2204))*10^10+ROW(l!$A$2:$A$2204)-ROW(l!$A$1),),1)),"")
    Hi Tim,

    This works perfectly as well.!
    Thank you very much. :-)

    Kind Regards,
    MArk.

+ 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. Replies: 11
    Last Post: 03-31-2016, 03:40 PM
  2. [SOLVED] Data Validation using indirect() across worksheets
    By Unca Wook in forum Excel General
    Replies: 6
    Last Post: 02-28-2015, 10:55 AM
  3. Data validation using indirect
    By erisaaka in forum Excel General
    Replies: 1
    Last Post: 02-11-2014, 08:16 PM
  4. Indirect Data Validation
    By techteam in forum Excel General
    Replies: 3
    Last Post: 11-22-2011, 07:03 AM
  5. data validation and indirect
    By jang430 in forum Excel General
    Replies: 10
    Last Post: 04-30-2011, 10:33 PM
  6. Data Validation and Indirect
    By matt_the_brum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2006, 09:53 AM
  7. Data Validation with Indirect
    By Nigel in forum Excel General
    Replies: 3
    Last Post: 12-17-2005, 11:40 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