in Excel, I am attempting to show 1-4 for AAAA, 5-7 for BBBB, etc
Num Words
1 AAAA
2 AAAA
3 AAAA
4 AAAA
5 BBBB
6 BBBB
7 BBBB
8 CCCC
9 CCCC
10 CCCC
11 CCCC
12 CCCC
13 CCCC
14 CCCC
15 DDDD
16 DDDD
17 DDDD
18 DDDD
19 DDDD
20 DDDD
My logic in my head is that I would like to look at the whole column and grab the highest number of a set of adjacent cells which match the words. Thus grabbing the output described above for each word.
Thanks for any assistance.
Assuming your data is in A1:A21, put these formulas into the sheet...
EDIT: Updates to use Array formulas, which allows for the source list to be unordered
So, the results looks like:
I will assume there is a header row. In C2 put:
It is an array formula and needs to be Confirmed with Ctrl-Shift-Enter. Then copy down.
Note:
If your search range is static then change all the full column references to the absolute range, e.g. A:A in this case would become $A$2:$A$21. It will make the formulas calculate quicker.
One more for the pot; the newer AGGREGATE function produces a pseudo-MINIF/MAXIF without CSE.