Closed Thread
Results 1 to 5 of 5

Aray_Countif tricky Question

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    63

    Aray_Countif tricky Question

    Hi guys

    I got two columns

    Name;

    Contains name + surname

    e.g.

    andrew smith
    andrew smith
    john smith
    andrew john

    second column

    credit card number e.g.

    XXXXXXXXXXXX7240
    XXXXXXXXXXXX7240
    XXXXXXXXXXXX5985
    XXXXXXXXXXXX9042

    Now each row contains the users name, and the user's card number.

    The above example is how it should be. A credit card can only be in use by one user.

    The below example is something i want to catch...

    Columns A
    andrew smith
    andrew andrew
    john smith
    andrew john

    column B
    XXXXXXXXXXXX7240
    XXXXXXXXXXXX7240
    XXXXXXXXXXXX5985
    XXXXXXXXXXXX9042

    The credit card has been used under two names.

    ------------

    I only want a result when the credit card has been used under two DISTINCT NAMES;

    the below array formula gives me a result if the user has used the card twice

    {=IF(COUNT(IF($B$1:$B$4=$B1,ROW($A$1:$A$4),""))>1,"Card has Two Owners","")}

    However, i only want a result/return if a card has been used by two distrinct names.

    Hope you guys can help

  2. #2
    Registered User
    Join Date
    07-06-2011
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Aray_Countif tricky Question

    credits go to dilipandey who provided with ther original array

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Aray_Countif tricky Question

    Perhaps?

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    07-06-2011
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Aray_Countif tricky Question

    perfect! thanks!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Aray_Countif tricky Question

    aborg88
    Please read over the forum rules. Particularly #5 (Duplicate thread) and #9 (Mark your thread as SOLVED).

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed 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