Originally Posted by
FDibbins
Broken down, that formula finds the value from 1 instance of a name, finds the 2nd instance of that same name, and subtracts 1 from the other....
=INDEX(LIST!$D$2:$D$7,MATCH(A2&2,LIST!$A$2:$A$7&LIST!$C$2:$C$7,0))
-INDEX(LIST!$D$2:$D$7,MATCH(A2&1,LIST!$A$2:$A$7&LIST!$C$2:$C$7,0))
To give each duplicate name a unique ID, I just added 2 (or 1) to it, then combined the name in A and the Wave in C as the range
as far as the INDEX/Match combo is concerned, it is often used as INDEX/MATCH/MATCH, with the syntax of...
=index(criteria-to-find,column-to-search-in,0),row-number,column-number)
=match(criteria-to-find,column-to-search-in,0) 0 returns exact match
=MATCH(criteria-to-find,row-to-search-in,0)
soooo that gives us...
=index(criteria-to-find,match(criteria-to-find,column-to-search-in,0),match(criteria-to-find,row-to-search-in,0)
=Index(A1:E10,match("aaa",A1:A10,0),match(2013,A1:E5,0)
where A2:A10 contains a bunch of item names ("aaa", "BBB" etc)
and B2:B5 contains years, with 2013 being in D1...
that formula will return the value from D2 - the junction of A2 and D1
In your case, we only had 1 column to use, so there was no need for the 2nd MATCH
Bookmarks