Using indirect to refer to a row

laurafv

New Member
Joined
Jan 29, 2009
Messages
4
Hello,

I have a list of employees (one person per row). The columns are attendance to events (each attendance has a different number), and I would like to create a table that sumarises the attendance ranked chronologically.

To do so, I would need that in the formula below instead of the red part (now referring to row 7) there is a link to another cell that I have set so that it automatically finds the row corresponding to an employee. Would an indirect formula work? how? I tried with no success...

=match(C5,'v2'!7:7,0)


Thanks in advance,
Laura

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try

=MATCH(C5,INDEX('v2'!A:IV,anothercell,0),0)

Another cell is a cell containing the 7

Change IV to XFD if in XL2007+
Or better, change IV to the last occupied column of the v2 sheet.
 
Last edited:
Upvote 0
not an answer to your question, but have you tried pivot table for that kind of work?
 
Upvote 0
Thanks! tomorrow I will try at the office and let you know if it works :)
I dont want to use a pivot table because the dataset is not in the right format (each column is an event), but maybe I will have to investigate if this is a better option...
 
Upvote 0
thanks, it works you saved my project :)!

Try

=MATCH(C5,INDEX('v2'!A:IV,anothercell,0),0)

Another cell is a cell containing the 7

Change IV to XFD if in XL2007+
Or better, change IV to the last occupied column of the v2 sheet.
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,779
Members
449,468
Latest member
AGreen17

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