INDEX/MATCH formula has me stumped

I am trying to understand a formula that someone else has written and I cannot get it. It works great but I do not know how and I would like to. It looks like this:

=COUNTIFS(INDEX({EDB Full Range}, 0, MATCH([Equipment / Limit Required]@row, {EDB Full Range}, 0)), >[Equipment Max#]@row, {EDBDate}, >=Start@row, {EDBDate}, <=[Last Date]@row)

I understand all of it EXCPET the 0 as the row_index portion of the INDEX formula. I am stumped as there is no 0 row position. How does the 0 come into play; what is it doing? Does the 0 basically say look at all rows? As opposed to a specific row? Or is it looking at column headers? These are just some theories I was playing around with as I could not find an answer.

Thank you!

Tags:

Best Answer

  • Genevieve P.
    Genevieve P. Employee
    Answer ✓

    Hi @Paul Newcome

    Yes! I think I've actually been working with @Susan Vieira on this other post, here.

    You would use the 0 if you wanted the MATCH to use the column index in an INDEX function instead of looking at the row index for the match. Basically, if you want to evaluate a selection of columns and use the MATCH function to bring back one column from that range.

    Most recently I used it like this:

    =COUNTIF(INDEX({All Columns}, 0, MATCH("Column 1”, {Other Sheet First Row}, 0)), “No Concern”)


    This was for a table where the column names from one sheet were listed as the rows in the metrics table:

    Column 1

    Column 2

    Column 3

    And the user wanted a COUNT of the value "No Concern" in each column, but only wanted to write one formula to find the answer for every column (versus writing an individual cross-sheet reference).

    The First Row of the other, source sheet had to have the column names pasted into it for the INDEX function to reference and find a match. Then it would pull just that one column out of the {all columns} range to evaluate for the COUNTIFS.

    I feel like I didn't explain that very well... let me know if screen captures will help!

    Cheers,

    Genevieve

    Need more information? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!