+ Reply to Thread
Results 1 to 4 of 4

Possible array IF formula

  1. #1
    Forum Contributor
    Join Date
    08-30-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    142

    Possible array IF formula

    I have a list of references in col a a1:a100, howver there are some duplicate references. In col b1:b100 an action of either "check" or "exclude" sits next to the reference.

    I need a way of determining where there is a count of duplicate references in col A, that only one type of action sits next to the appropriate refernce in col B.

    I.e. if the reference A0003 appears 3 times the n the corresponding action siting alongside col b is either check x3 or excludex3. Where there is a combination I.e. Check Check Exclude. I need a away of creating a flag in col C

    Unfortunaetly I am unable to upload a sample, but any help would be appreciated.

    Thanks

    Ted

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Possible array IF formula

    Maybe something like this...

    Data Range
    A
    B
    C
    1
    Reference
    Status
    Flag
    2
    A003
    check
    X
    3
    A003
    exclude
    X
    4
    A003
    check
    X
    5
    B101
    exclude
    6
    B101
    exclude
    7
    X100
    exclude
    X
    8
    X100
    exclude
    X
    9
    X100
    check
    X
    10
    P222
    check

    This formula entered in C2 and copied down:

    =IF(COUNTIFS(A$2:A$10,A2,B$2:B$10,B2)<>COUNTIF(A$2:A$10,A2),"X","")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    08-30-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    142

    Re: Possible array IF formula

    Cheers Tony that works a treat

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Possible array IF formula

    You're welcome. Thanks for the feedback!

+ 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. Is this array formula in a valid format?? IF(Array)
    By niceguy21 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-19-2012, 01:35 PM
  2. Replies: 6
    Last Post: 05-26-2012, 04:56 AM
  3. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 AM
  4. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 AM
  5. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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