Hello! I originally posted to this forum and got a response on how to do the following:
"I'm trying to find a formula that will return a list of all cells matching the value of another cell. The 'Group' and 'Period' values in the first two rows are being selected via drop down menu.
So the result should be something like what begins in cell A4 and B4 in my table below. The 'Source' Data looks like what is shown in the data section beginning on row 7. The number of results to return will vary depending on which 'Group' is selected."
Someone kindly responded with the following formulas which worked great:
A4 formula
=IFERROR(INDEX($B$8:$B$13,SMALL(IF($A$8:$A$13=$B$1,ROW($C$8:$C$13)),ROW(1:1))-7,1),"") Press [CTRL+SHIFT+ENTER]
B4 formula
=IFERROR(INDEX(OFFSET($B$8:$B$13,0,MATCH($B$2,$C$7:$D$7,0)),SMALL(IF($A$8:$A$13=$B$1,ROW($C$8:$C$13)),ROW(1:1))-7,1),"") Press [CTRL+SHIFT+ENTER]
However, I then found out about a new requirement where the 'West' Group should include results matching both 'West' and 'Southwest'. Whether it is 'Southwest' versus 'West' doesn't need to be indicated anywhere in the list, but all projects need to be included in the results. Any suggestions on how I could modify the formulas above to get there? Any tips are much appreciated!
<thead>
</thead>
<tbody>
</tbody>
"I'm trying to find a formula that will return a list of all cells matching the value of another cell. The 'Group' and 'Period' values in the first two rows are being selected via drop down menu.
So the result should be something like what begins in cell A4 and B4 in my table below. The 'Source' Data looks like what is shown in the data section beginning on row 7. The number of results to return will vary depending on which 'Group' is selected."
Someone kindly responded with the following formulas which worked great:
A4 formula
=IFERROR(INDEX($B$8:$B$13,SMALL(IF($A$8:$A$13=$B$1,ROW($C$8:$C$13)),ROW(1:1))-7,1),"") Press [CTRL+SHIFT+ENTER]
B4 formula
=IFERROR(INDEX(OFFSET($B$8:$B$13,0,MATCH($B$2,$C$7:$D$7,0)),SMALL(IF($A$8:$A$13=$B$1,ROW($C$8:$C$13)),ROW(1:1))-7,1),"") Press [CTRL+SHIFT+ENTER]
However, I then found out about a new requirement where the 'West' Group should include results matching both 'West' and 'Southwest'. Whether it is 'Southwest' versus 'West' doesn't need to be indicated anywhere in the list, but all projects need to be included in the results. Any suggestions on how I could modify the formulas above to get there? Any tips are much appreciated!
A<o | B<o | C<o | D<o | |
1<o | Group<o | South<o | ||
2<o | Period<o | Q2<o | ||
3<o | ||||
4<o | Project B<o | $45 <o | ||
5<o | Project E<o | $222 <o | ||
6<o | ||||
7<o | Group<o | Project Name<o | Q1<o | Q2<o |
8<o | North<o | Project A<o | 400<o | 784<o |
9<o | South<o | Project B<o | 500<o | 45<o |
10<o | West<o | Project C<o | 509<o | 300<o |
11<o | North<o | Project D<o | 212<o | 411<o |
12<o | South<o | Project E<o | 858<o | 222<o |
13<o | North<o | Project F<o | 900<o | 450<o |
14 | Southwest | Project G | 200 | 311 |