+ Reply to Thread
Results 1 to 4 of 4

Find values with lots of conditions

  1. #1
    Registered User
    Join Date
    05-31-2017
    Location
    Santiago, Chile
    MS-Off Ver
    2013
    Posts
    2

    Find values with lots of conditions

    Hi, there! I'm new here and I have lots of questions.

    First of all, I’m not an expert in Excel. Actually, I know how to do a very few things. Because of that, I don’t know if what I want to do can be done on excel.

    I have a sheet that looks something like that

    sff.PNGipant)

    2) Check if the tanner_stage clumn has the same value as the higher value from right_breast and left_breast columns (see T3, where RB is 1 and LB is 2, so TS is 2)

    3) Check that in Tanner_stage de number by ID is always in ascending order. So for example, between T1 and T2 the participant went from
    2 to 1. That’s not right, because this is a growth measurement and participants can’t have lowers values than past years.

    I need to find those wrong values, wrong because they aren’t the same as RB or LB higher value, or wrong because newer values are lower than older values.

    I don’t know anything about excel and I’m not a very good English speaker, so I’m really sorry if this came up a little bit messy.

    Can I search information with this conditions on excel? In the end, what I want is to know which IDs have wrong info.
    Last edited by mili.bussio; 05-31-2017 at 04:07 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Find values with lots of conditions

    Please see the attached where I have used conditional formatting to highlight the conditions that you specified.

    Note that this solution will cope with one one blank line.
    Attached Files Attached Files
    Martin

  3. #3
    Registered User
    Join Date
    05-31-2017
    Location
    Santiago, Chile
    MS-Off Ver
    2013
    Posts
    2

    Re: Find values with lots of conditions

    Thank you! I have some questions,

    1) I downloaded but don't understand the rules, can you explain them to me? So I can change them as I need to.

    1) I need the Tanner column to be highlighted, no the other.

    2) I need it to understand the ID concept. I have 1000+ IDs and think it would be very slow if i have to look for where they start and finish myself.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Find values with lots of conditions

    OK - if you have multiple IDs then I suggest a different macro approach.

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010/2013.

+ 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] Find all values which meet specific conditions
    By ProFromMars in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2017, 07:12 AM
  2. [SOLVED] Find sum with multiple conditions of 'top n values of a table'.
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-14-2016, 09:12 AM
  3. [SOLVED] Find specific values based on two conditions
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-04-2015, 07:08 PM
  4. [SOLVED] Formula with lots of conditions
    By amy1 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-13-2013, 08:59 AM
  5. [SOLVED] SumIf and Looping to find values of different conditions
    By btillroo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 06:36 AM
  6. [SOLVED] Find average values with conditions
    By bigband1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2012, 05:28 PM
  7. If command with lots of conditions
    By adamtomlinson in forum Excel General
    Replies: 3
    Last Post: 06-22-2011, 08:13 AM

Tags for this Thread

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