+ Reply to Thread
Results 1 to 17 of 17

Data validation with filter

  1. #1
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Data validation with filter

    Good evening I would need your help for a data validation formula
    In the attached file I used the formula:

    = OFFSET (Sheet2! $ J $ 2; MATCH (A4; Sheet2! $ K $ 3: $ K $ 81; 0)

    but, while in the first two validations of A4: A5 from the desired result in B4; B5
    with the choice in A6 the validation of B6 alone gives a name instead of 3 as listed in column D.
    Thank you
    Attached Files Attached Files
    Last edited by Berna11; 12-22-2017 at 03:48 PM.

  2. #2
    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,215

    Re: Data validation with filter

    Set calculations to "Automatic"

    result is "tabita"

  3. #3
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    Thanks jphn
    even setting the result automatically is not correct.

    the result in the menu in B6 it must be :Tabita - Tordiquinta - Virgo

    If you see Sheet2 I have filtered column K for FUSO and resubmit the 3 names listed above
    Thanks again

  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,215

    Re: Data validation with filter

    In OFFSET to need to set the HEIGHT

    maybe


    =OFFSET(Foglio2!$J$2,MATCH(A6,Foglio2!$K$3:$K$81,0),,COUNTIF(Foglio2!$K$3:$K$81,A6))

    or

    =OFFSET(Foglio2!$J$2,MATCH(A6,Foglio2!$K$3:$K$81,0),,3)

  5. #5
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    Hello we took a step forward but it is still not perfect.
    as you can see from the file in
    *B6 from Dino is not correct
    must give Virgo.
    Attached Files Attached Files

  6. #6
    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,215

    Re: Data validation with filter

    click on B6 drop down arrow; you will be surprised!

  7. #7
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    Yes, if I click on B6 they appear

    Tabita - Dino - Tordiquinta

    but the correct ones are:

    Tabita - Tordiquinta - Virgo

  8. #8
    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,215

    Re: Data validation with filter

    I am confused as to how DV are (or meant to be) working.

    If you look at columns J/K on Foglio2 you will see you need an INDEX/SMALL construct to extract those names belonging to "FUSO": put these in a named range and reference the named range in FV for B6

    Using a simple Offset from J2 will not work as "Dino" is the midst of the "FUSO" entries

  9. #9
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    I tried to alphabetize the column K sheet2
    and so returns the correct result.
    Thank you again for your precious help
    see you next time

  10. #10
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Data validation with filter

    Hi, to all!

    Berna11... if you want the solution that JohnTopley suggest, you have to sort your data by column K (2). If you can't sort, we can make a solution for that... just tell us. Blessings!

  11. #11
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    Hi Johnmpl
    I sorted by column k.
    But if there is another solution without making the order, every time I listen well.
    Thank you

  12. #12
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Data validation with filter

    Hi, again!

    Check the file in Sheet "Foglio1", in columns C:I (this columns could hidden if you want). You can extend the formula with gray background depends on data.

    Blessings!
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    hi johnnpl
    your solution is really interesting.
    It works properly..
    A question:
    * are the results from column D to the right possible to have them in alternating columns?
    Column D = name
    column E = empty
    Column F = name
    column G = empty
    ...
    Thank you so much

  14. #14
    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,215

    Re: Data validation with filter

    Try

    in D6

    =IFERROR(INDEX(Foglio2!$J$3:$J$7,SMALL(IF(Foglio2!$K$3:$K$7=$A6,ROW(Foglio2!$J$3:$J$7)-ROW(Foglio2!$J$2)),INT((COLUMNS($A:A)-1)/2)+1)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy into F, H etc

  15. #15
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    Hi John
    with this formula he repeats the same name twice
    column D and column E same name
    Column F- G same name
    ...
    I wanted to alternate name and white.
    D=name
    E=white
    ...
    ...

  16. #16
    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,215

    Re: Data validation with filter

    If you read my instructions
    Copy into F, H etc
    you will get right result!

    You cannot drag formula across. You have to copy to the required cells BUT you can copy as many as you like.

    The IFERROR will leave blanks when the end of the data is reached

  17. #17
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: Data validation with filter

    I apologize, john
    I had not read the last line:
    Copy into F, H etc
    ok if I drag the formula to the right then I delete
    the formula where it is not needed
    Thank you again
    see you next time

+ 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] Data Validation Filter
    By nardo53 in forum Excel General
    Replies: 3
    Last Post: 01-10-2018, 10:05 AM
  2. Filter with data validation list
    By asad.ermo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2017, 03:07 AM
  3. Advanced Filter and Data Validation
    By cholmes in forum Excel General
    Replies: 4
    Last Post: 04-30-2014, 03:17 PM
  4. VBA - Advanced filter with data Validation
    By Rubiks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2010, 02:32 PM
  5. Advance Filter with Data Validation
    By sats43 in forum Excel General
    Replies: 1
    Last Post: 03-26-2010, 05:07 AM
  6. Data validation with filter
    By yuzi in forum Excel General
    Replies: 13
    Last Post: 03-24-2010, 02:32 AM
  7. Data Validation Filter
    By benno87 in forum Excel General
    Replies: 5
    Last Post: 08-30-2009, 07:55 PM

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