+ Reply to Thread
Results 1 to 4 of 4

Identify rows based on conditions

  1. #1
    Registered User
    Join Date
    06-16-2013
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    8

    Identify rows based on conditions

    Hi, I am trying to identify pairs in a worksheet of unsorted data. Within my worksheet, there should be a pair of rows that have the same value in Column E. In addition, within each pair, one row must have the text "Done" in Column C and the other row must have the text "Cancelled" in Column C.

    How can I identify rows that do not fulfil both the conditions above?

    Please help!!! Thank you so much!

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Identify rows based on conditions

    What is the last column you are using?
    Gary's Student

  3. #3
    Registered User
    Join Date
    06-16-2013
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Identify rows based on conditions

    The last column I am using is Column E.

    So something like this

    Column A Column B Column C Column D Column E
    1 ABC Done DEF 230
    2 ABC Cancelled DEF 230
    3 ABC Done DEF 493
    4 ABC Done DEF 766
    5 ABC Cancelled DEF 766

    How do I flag out number 3?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Identify rows based on conditions

    Hi and welcome to the forum

    Try this, copied down...

    =IF(AND(OR(C1="Done",C1="Cancelled"),COUNTIF($E$1:E1,E1)>1),"Yes","No")
    You can replace the Yes/No with whatever you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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