+ Reply to Thread
Results 1 to 11 of 11

MATCH? INDEX? Help!

  1. #1
    Registered User
    Join Date
    05-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    72

    MATCH? INDEX? Help!

    Hi, I am trying to really test the powers of Excel now! I have a sheet, with a whole list of numbers (URNs), some duplicated. Each line has an entry on it which indicates a potential status; could be the same in each instance, or could be different:

    - Case Officer
    - Claimant
    - Legal
    - Other
    - PAID
    - passed
    - received

    I want to be able to tell, on another sheet, if a URN on a line in that sheet has any statuses from the first sheet as 'received', and if more than one, how many? Ideally, I'd like to be able to count the number of each category (unless it is zero, in which case it needs excluding). I have tried VLookup, but obviously this only provides one return per URN, so duplicates are not captured effectively.

    There must be a clever way of doing this? Attached a simplified working sheet, if anyone fancies a look?!
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MATCH? INDEX? Help!

    Try

    =COUNTIFS(Sheet1!$A$2:$A$2121,A2,Sheet1!$C$2:$C$2121,"Received")

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: MATCH? INDEX? Help!

    Like this for each status:

    =COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"PAID")

    I cannot find any matches for "received"!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    05-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    72

    Re: MATCH? INDEX? Help!

    OK, great, thanks! If I add them to each status, do I just do it like this?

    =COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"PAID"),COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"received"),COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"claimant") etc.?
    ...then throw in some concatenation to make it really work for what I need!?!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: MATCH? INDEX? Help!

    Yes, you could concatenate as long as you don't need to do any further calculations. If you do, then put each status calculation into a separate column using the formula supplied here.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MATCH? INDEX? Help!

    Perhaps a Pivot Table would be better.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MATCH? INDEX? Help!

    Please see attached file with an array formula solution.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Registered User
    Join Date
    05-26-2011
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    72

    Re: MATCH? INDEX? Help!

    Thanks all, but can't quite get it to work...no even with +COUNTIF after it.

    I'm keen to show, in one cell, how many URNs have PAID, how many have 'received', how many have 'legal' etc. As in, displaying in the cell as 0,3,2 for example. Is that possible, without a concatenate from multiple hidden cells?

    I can't use a Pivot, for various reasons...but in summary I am creating a spreadsheet where you dump raw data from various sources, for this working sheet to do all the leg work (as in, can't ask users of it to create pivots...)

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: MATCH? INDEX? Help!

    Never Mind..

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,691

    Re: MATCH? INDEX? Help!

    =COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"PAID")&", "&COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"received")&", "COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"passed")&", "COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"claimant")&", "COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"other")&", "COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"case officer")&", "COUNTIFS(Sheet1!A:A,Sheet2!A2,Sheet1!C:C,"legal")

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,725

    Re: MATCH? INDEX? Help!

    Quote Originally Posted by NJS1982 View Post
    ...........I'm keen to show, in one cell, how many URNs have PAID, how many have 'received', how many have 'legal' etc. As in, displaying in the cell as 0,3,2 for example. Is that possible, without a concatenate from multiple hidden cells? ...........
    Is something like this what you want on sheet2?

    Row\Col
    C
    D
    E
    F
    G
    H
    I
    1
    received PAID claimant legal passed Case Officer Other
    2
    2
    137
    3
    0
    0
    1
    0


    Formula in C2:I2 would be
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit Or put a drop-down in C1 listing all status with this same formula in C2 and query one by one.
    Last edited by FlameRetired; 11-17-2015 at 03:18 PM.
    Dave

+ 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] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. [SOLVED] Index Match from a cell populated from index match
    By MarcLewis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2013, 05:30 AM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 PM

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