Consulting

Results 1 to 5 of 5

Thread: Filter question

  1. #1

    Filter question

    Hi,

    Wondering if its possible to do the following

    In column C (starting at C10) I have an amount, in column D (again starting at D10) I will start with nothing, a dropdown list/filter
    in col G that is set to N to begin with (i.e. C10 does not equal D10)

    If I select Y in the filter on that line (because the filter selection has Y unchecked) the line will disappear/hide as it should

    My issue is that I can select the Y even though C10 (or any others in that column of course) don't necessarily = D10 -
    the line will disappear/hide anyway. I only want this to happen where the amount in cell C = cell D - so matches

    Anyway to stop this happening if the 2 cells don't match (and for all cells on cols C& D) when selecting Y in the line filter?

    many thanks

    Jon

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    When none are equal, Y does show as a filter value for me.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Apologies I might not have explained very well

    The row dropdown in cell G is set to N to signify that cell C does not equal cell D

    I want to stop the row dropdown in cell G from being set to Y unless cell C = cell D

    I would use the main filter to only show those rows that have N in the dropdown

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I think I already got that, but as I say, if there are none equal, the filter dropdown only has an N, so you can't set it to Y
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Sorry still not explaining to well - column G has a data validation list with either Y or N

    What I was trying to ask was is it possible to not select Y unless the cells C & D are the same - the filter would allow me to hide rows where these 2 cells
    do match.

    I know you can set errors & alerts in data validation but not sure it can handle a condition?

    thanks
    Jon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •