Return the sheet name if multiple cells in different sheets are populated

dannn

New Member
Joined
Jan 24, 2019
Messages
2
Hi,

I need some help on a formula that will return the sheet name if a certain cell within other sheets is occupied, aswell as the same cell within the first sheet.
I do struggle to explain myself at times, so I have linked to a picture of my worksheet which has been simplified for ease. I am after a formula to replicate the manual text in column F.
https://imgur.com/a/j2IfLuS

This is for a sport and we have 4 players, but only 2 players play a week. Each player has a sheet, named here as player 1 to player 4. I am trying to auto populate the F columns based on if that player has played (shown by E being occupied) and finding the other occupied column E'S from other sheets. Obviously, I do not need the formula to return anything unless the E column is occupied.

So, on week 1, player 1 & player 3 both play, I need player 1's F4 cell to return 'Player 3'. Likewise, player 3's F4 cell needs to return 'Player 1'. F4 should stay blank for players 2 & 4. If it makes things easier, The player name can be taken from the sheet name or from A2.
I have searched for weeks and found very little, can anyone help with this formula? I assume that once I have a basic formula, I should be able to amend it to suit every individual player and circumstance.

Thanks for any input!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
It's difficult to work with pictures. Could you post a link to a copy of your Excel file? It would make it easier to test possible solutions. Also, I think that you may need a macro to do what you want if you are open to that.
 
Upvote 0
Try this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 1

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 2'!E4>0,'Player 2'!$A$2,IF('Player 3'!E4>0,'Player 3'!$A$2,IF('Player 4'!E4>0,'Player 4'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 2

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 1'!E4>0,'Player 1'!$A$2,IF('Player 3'!E4>0,'Player 3'!$A$2,IF('Player 4'!E4>0,'Player 4'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 3

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 2'!E4>0,'Player 2'!$A$2,IF('Player 1'!E4>0,'Player 1'!$A$2,IF('Player 4'!E4>0,'Player 4'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 4

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 2'!E4>0,'Player 2'!$A$2,IF('Player 3'!E4>0,'Player 3'!$A$2,IF('Player 1'!E4>0,'Player 1'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Try this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 1

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 2'!E4>0,'Player 2'!$A$2,IF('Player 3'!E4>0,'Player 3'!$A$2,IF('Player 4'!E4>0,'Player 4'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 2

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 1'!E4>0,'Player 1'!$A$2,IF('Player 3'!E4>0,'Player 3'!$A$2,IF('Player 4'!E4>0,'Player 4'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 3

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 2'!E4>0,'Player 2'!$A$2,IF('Player 1'!E4>0,'Player 1'!$A$2,IF('Player 4'!E4>0,'Player 4'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sheet Player 4

[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]F4[/TD]
[TD]=IF(E4>0,IF('Player 2'!E4>0,'Player 2'!$A$2,IF('Player 3'!E4>0,'Player 3'!$A$2,IF('Player 1'!E4>0,'Player 1'!$A$2,""))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

This looks great and exactly what I am after. Hopefully all goes smoothly when I integrate this fully into my spreadsheet.
Thankyou DanteAmor!
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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