U
ulrik.hillaert
Dear,
I rarely give up on those things, but I've been looking on this problem for ages and I don't seem to get it working.
What I basically want to do is looking op one certain text string in a range, with multiple occurences, and report for each of these occurences different values from the same column. eg the search returns as first result cell A7, and I want in that case to report cell A9, A12. If there's another place in the range, eg cell D4, where the same string occurs, I want to report D6, D9.
I hope that the attached file ( https://docs.google.com/open?id=0B72kGj3AVfwnTGtZak1IOTF4d3M )will make things clear. I start with the data in sheet1 and I want to generate an overview like in Sheet "Clint Eastwood", preferentially sorted by date, preferentially not manually as I did in this sample file
I've been messing with (h)(v)lookup, index and match but don't get it to work.
I figured out how to get the different row and column numbers where my lookupvalue is situated with:
=(SMALL(IF($A$1=Sheet1!$B$2:$K$13,ROW(Sheet1!$B$2:$K$13)),COUNTIF($L$1:L2,L1)))
and
=(SMALL(IF($A$1=Sheet1!$B$2:$K$13,COLUMN(Sheet1!$B$2:$K$13)),COUNTIF($L$1:L2,L1)))
I have added in column L1:L20 0 1 1 1 1 1 1 ... just to add up and get thesmallest, second smallest, third smallest,... with countif
However, the main problem I have is that this approach always combines thetwo n-smallest numbers for rows and columns.
In the excel file attached, this is not a problem for the first lookup value since both the column and row numbers are the smallest in the range(row 5 and column2). However, when I come to the second values, the row number is 4, but the corresponding column value is not the second smallest number(10), but the third smallest(13). Hence, this approach leaves me with the wrong combinations (row 4 with column 10 and row 7 with column 13, while it should be row 4 with column 13, and row 7 with column
Help!
Best regards,
Ulrik
I rarely give up on those things, but I've been looking on this problem for ages and I don't seem to get it working.
What I basically want to do is looking op one certain text string in a range, with multiple occurences, and report for each of these occurences different values from the same column. eg the search returns as first result cell A7, and I want in that case to report cell A9, A12. If there's another place in the range, eg cell D4, where the same string occurs, I want to report D6, D9.
I hope that the attached file ( https://docs.google.com/open?id=0B72kGj3AVfwnTGtZak1IOTF4d3M )will make things clear. I start with the data in sheet1 and I want to generate an overview like in Sheet "Clint Eastwood", preferentially sorted by date, preferentially not manually as I did in this sample file
I've been messing with (h)(v)lookup, index and match but don't get it to work.
I figured out how to get the different row and column numbers where my lookupvalue is situated with:
=(SMALL(IF($A$1=Sheet1!$B$2:$K$13,ROW(Sheet1!$B$2:$K$13)),COUNTIF($L$1:L2,L1)))
and
=(SMALL(IF($A$1=Sheet1!$B$2:$K$13,COLUMN(Sheet1!$B$2:$K$13)),COUNTIF($L$1:L2,L1)))
I have added in column L1:L20 0 1 1 1 1 1 1 ... just to add up and get thesmallest, second smallest, third smallest,... with countif
However, the main problem I have is that this approach always combines thetwo n-smallest numbers for rows and columns.
In the excel file attached, this is not a problem for the first lookup value since both the column and row numbers are the smallest in the range(row 5 and column2). However, when I come to the second values, the row number is 4, but the corresponding column value is not the second smallest number(10), but the third smallest(13). Hence, this approach leaves me with the wrong combinations (row 4 with column 10 and row 7 with column 13, while it should be row 4 with column 13, and row 7 with column
Help!
Best regards,
Ulrik