+ Reply to Thread
Results 1 to 4 of 4

INDEX MATCH alternative similar to COUNTIFS, but pastes values, not counts -> huge matrix

  1. #1
    Registered User
    Join Date
    12-08-2019
    Location
    Erwin, NC
    MS-Off Ver
    2016
    Posts
    2

    INDEX MATCH alternative similar to COUNTIFS, but pastes values, not counts -> huge matrix

    Hello Folks,

    I have a matrix that looks like this:


    NAME CLASSNAME1 CLASSNAME2 CLASSNAME3 CLASSNAME4 CLASSNAME5 ... --> many columns
    NAME1
    NAME2 These cells are supposed to contain GRADES retreived from a separate dataset
    NAME3
    ...no duplicates
    in this column

    REFERENCE DATA COMES FROM THREE COLUMNS: 1. NAME, 2. CLASSNAME, 3. GRADE
    There are many thousands of NAMES, hundreds of CLASSNAMES, and thousands of GRADES. NAME1, NAME2...repeats for multiple classes, but each possible CLASSNAME for a given NAME can have only one GRADE

    GOAL: TO PASTE A UNIQUE GRADE INTO EACH CELL WHERE: NAME1=CLASSNAME1... GRADE is positioned directly to the right of NAME and CLASSNAME in the reference dataset

    NOTE: INDEX & MATCH only retreives the first occurrence of a TRUE event in each row, thus it does not work. However, COUNTIFS WORKS, but does not place GRADE in the cell, only the count.

    I HAVE TRIED EVERYTHING! Please help if you can. Thank you sooo much!

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: INDEX MATCH alternative similar to COUNTIFS, but pastes values, not counts -> huge mat

    It's impossible for me to write formulas without structure and sample data.
    Could you please upload a sample file ?

    Regards.

  3. #3
    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,047

    Re: INDEX MATCH alternative similar to COUNTIFS, but pastes values, not counts -> huge mat

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  4. #4
    Registered User
    Join Date
    12-08-2019
    Location
    Erwin, NC
    MS-Off Ver
    2016
    Posts
    2

    Re: INDEX MATCH alternative similar to COUNTIFS, but pastes values, not counts -> huge mat

    SOLVED! ‘=IFERROR(INDEX(hh!$C$2:$C$3843,MATCH($A2&"|"&B$1,INDEX(hh!$A$2:$A$3843&"|"&hh!$B$2:$B$3843,0),0)),"")

    Thank you everyone, 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)

Similar Threads

  1. How to optimize Index Match for huge dataset
    By jianan77818 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-15-2019, 11:25 PM
  2. Huge data index/match replacement
    By teireii in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2017, 03:33 AM
  3. Huge data index/match replacement
    By teireii in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-26-2017, 05:44 AM
  4. [SOLVED] Alternative to using an array in an Index or similar function?
    By aquixano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2017, 04:57 PM
  5. index-match between two huge files
    By is2_egypt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2016, 09:59 AM
  6. VLookup/Index,Match for Similar values
    By hpatel517 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-21-2015, 06:35 AM
  7. Replies: 2
    Last Post: 08-30-2014, 02:49 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