+ Reply to Thread
Results 1 to 3 of 3

Multiple criteria within an IF statement

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2003
    Posts
    9

    Multiple criteria within an IF statement

    I have the following formula =IF(P2="","",COUNTIF($P$2:P10000,P2)>1) which returns a true or false value return on a column of unique reference numbers, basically I need to identify 2 matching reference numbers but also a further match with the reference number and a W in another column and the second ref number with an R.

    Hope this makes sense.

    TEST.xls

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Multiple criteria within an IF statement

    muish,

    Using your provided example workbook, in cell T2 and copied down:
    Please Login or Register  to view this content.

    Does that work for you?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-20-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Multiple criteria within an IF statement

    Not exactly, if returns the correct result, however I need the result to only be true if one instance of the unique reference if found with W and 1 with R, if these values were to appear further down I need it to return a false value.
    so for example if the values in rows 2&3 appeared again in rows 7&8 I need the result to be false.
    So the unique reference along with a w and then r can only appear once after that it is a false value.
    Hope this makes sense.
    Thanks for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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