cgcamal
Active Member
- Joined
- May 2, 2007
- Messages
- 472
Hi to all,
Hoping somebody could help me.
I have this table:
And I want to look up, in columns A and B, the value in A1=2, but I need something like an extension of "VLookup"
to get all values in Column E (values in green) in the same row of each "2" found and obtain the the average of
those values in green that is 4.16666667 as in cell F1.
The issue with VLOOKUP is that returns only the first match for first value in column A. I think an array formula will do
the trick, because it could be many matches, not only 6 as in the sample.
Thanks in advance for any help.
Regards,
Hoping somebody could help me.
I have this table:
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | 2 | 3 | 4.16666667 | |||||
2 | ||||||||
3 | 1 | 3 | 1 | 2 | 2 | |||
4 | 3 | 5 | 3 | 1 | -3 | |||
5 | 4 | 2 | 5 | 0 | 2 | |||
6 | 5 | 1 | 7 | -1 | 1 | |||
7 | 2 | 7 | 9 | -2 | 3 | |||
8 | 1 | 4 | 11 | -3 | 1 | |||
9 | 3 | 2 | 13 | -4 | 6 | |||
10 | 5 | 7 | 15 | -5 | 3 | |||
11 | 11 | 2 | 17 | -6 | 4 | |||
12 | 3 | 4 | 19 | -7 | 2 | |||
13 | 2 | 1 | 21 | -8 | 9 | |||
14 | 8 | 2 | 23 | -9 | 1 | |||
15 | 5 | 9 | 25 | -10 | 2 | |||
... |
And I want to look up, in columns A and B, the value in A1=2, but I need something like an extension of "VLookup"
to get all values in Column E (values in green) in the same row of each "2" found and obtain the the average of
those values in green that is 4.16666667 as in cell F1.
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1 | =VLOOKUP(A1,A3:E15,5,FALSE) | |
F1 | =AVERAGE(E5,E7,E9,E11,E13,E14) |
The issue with VLOOKUP is that returns only the first match for first value in column A. I think an array formula will do
the trick, because it could be many matches, not only 6 as in the sample.
Thanks in advance for any help.
Regards,