Find offset value when I only have the colum number

brianfosterblack

Active Member
Joined
Nov 1, 2011
Messages
251
Can someone please help me with this
I am working in a worksheet (named Report) and have to find the person ranked first in a certain category on another worksheet
The other worksheet is named "scores"
I have used a match formula to find the applicable category on the scores sheet between a range AL2:BL2
From there I got the column number (In this case column 39) and then using the address formula I got the column address "Scores!AM2" - This result in the formula reflects in Report!I19
That is where I am stuck
What I need help with is the rest of the formula to find the number 1 in the column matched (it will be between row 3 and 203 of that column) and then pick up the name in the same row in Range Scores!C3 to Score!C203

Any assistance would be most welcome
Thank you.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try:

Excel Workbook
AB
1MatchTest4
2Name =Name5
Report
Excel Workbook
CAKALAMANAOAPAQ
2NameTest1Test2Test3Test4Test5Test6
3Name15553104132179188
4Name24510011131272
5Name3938632186185
6Name41041588619344
7Name51001312116361
8Name6171637256194
9Name7196184193189411
10Name87192179941584
Score
 
Upvote 0
Try:

Report


AB
1MatchTest4
2Name = Name5

<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=IFERROR(INDEX(Score!$C$3:$C$203,MATCH(1,INDEX(Score!$AL$3:$BL$203,0,MATCH(Report!$B$1,Score!$AL$2:$BL$2,0)),0)),"No Match")

<tbody>
</tbody>

<tbody>
</tbody>


Score


CAKALAMANAOAPAQ
2Name
Test1Test2Test3Test4Test5Test6
3Name1
5553104132179188
4Name2
4510011131272
5Name3
938632186185
6Name4
1041588619344
7Name5
1001312116361
8Name6
171637256194
9Name7
196184193189411
10Name8
7192179941584

<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Thank you for this but I am getting an answer of "No Match"
I presume that in your Formula "MATCH(Report!$B$1,)" - Report!B1 is the value which must be found in the range Score!$AL$2:$BL$2? On my workbook, the value to be matched is in cell Report!$D$18. I made this change but still got "No Match"
 
Upvote 0
Sorry, I have been playing around with this to try and find the problem.
I found my sheet is named Scores and not score and the range is AL2:BI2 - not BL2
I changed these and it still did not work.
Then I realised the problem. The reason I started by finding the column number is that in the Range AL2:BI2 I have a lot of column headings like M,S,V, which have scores in them. But next to each of these I have a column named "Rank" Each of the scores are ranked in the Rank column and the number 1 I am looking for will be found in one of the Rank columns. So if my match column is found, I want to find the number 1 in the column just to the right of that.
Sorry, I did not know you would use a different formula completely from mine. But thank you for your patience
 
Upvote 0
After explaining my problem I have sorted out the formula.
=IFERROR(INDEX(Scores!$C$3:$C$202,MATCH(1,INDEX(Scores!$AL$3:$BI$202,0,MATCH(Report!$D$17,Scores!$AL$2:$BI$2,0)+1),0)),"No Match")
By putting in the +1 I resolved it
thank you so much for your assistance - it works perfectly
It is much appreciated
 
Upvote 0
If D18 holds the value of the header to return in Score!$AL$2:$BL$2 see what this returns.

=MATCH($D$18,Score!$AL$2:$BL$2,0)

It should return a number for the column.

<colgroup><col width="315"></colgroup><tbody>
</tbody>
If you get an #NA it means it didn't find a match. If that's the case check the spelling and make sure there are no leading or ending spaces in either the header or cell D18.

If that's not the issue please post the actual formula you are using.
 
Upvote 0
Just saw that you got it to work. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top