Referencing a Dynamic Cell

ztrotman

New Member
Joined
Aug 1, 2012
Messages
3
Hi, I have a very simple spreadsheet that shows in worksheet 1 a table of scoring, which I may need to sort by score, salary band or both so these cells are dynamic. eg

[TABLE="width: 150"]
<TBODY>[TR]
[TD]Name[/TD]
[TD]Salary Band[/TD]
[TD]Total Score[/TD]
[/TR]
[TR]
[TD]Vic[/TD]
[TD]A[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Jo[/TD]
[TD]B[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]c[/TD]
[TD]16[/TD]
[/TR]
</TBODY>[/TABLE]



In worksheet 2 I have a static table set out horizontally eg
[TABLE="width: 300"]
<TBODY>[TR]
[TD]Salary Band[/TD]
[TD]Name[/TD]
[TD]Total
Score[/TD]
[TD]Salary Band[/TD]
[TD]Name[/TD]
[TD]Total Score[/TD]
[TD]Salary Band[/TD]
[TD]Name[/TD]
[TD]Total Score[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Vic[/TD]
[TD]14[/TD]
[TD]B[/TD]
[TD]Jo[/TD]
[TD]6[/TD]
[TD]C[/TD]
[TD]Bob[/TD]
[TD]16[/TD]
[/TR]
</TBODY>[/TABLE]


What I need to be able to do is in worksheet 2, reference the Total Score cells in worksheet 2 to either the Total Score cells in worksheet 1 wherever they may be (ie they will move if I sort the data in different ways) or to the values of the data in the total score cells.

Is this possible?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Welcome to MrExcel.

In C2 on Sheet2:

=INDEX(Sheet1!$C$2:$C$4,MATCH(1,INDEX((Sheet1!$A$2:$A$4=B2)*(Sheet1!$B$2:$B$4=A2),),FALSE))

Copy the formula to F2 and I2.
 
Upvote 0
Thank you the formula that Mr Excel provided has worked. I couldn't use Vlookup because I can't guarantee that the data will always be assorted in ascending order - but I didn't know if would have to be when I asked the question so thank you for that suggestion as well - I have learnt from it.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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