Subtracting dates for days of rest for a player

mdean32

New Member
Joined
Jan 15, 2019
Messages
22
I have an ongoing database with multiple players. I need a formula to sort days of rest in between games (Column C) without sorting the players. I can get this to work if I sort the player ascending, but this causes extra work with the daily feed. I was wondering if there was a way to do this without sorting? Thanks for your help

PLAYER DATE REST DAYS
PlayerA1-1-19
PlayerB1-3-19
PlayerA1-4-192
PlayerB1-4-190
PlayerA1-8-193
PlayerB1-14-199
PlayerA1-9-190
PlayerB1-16-191

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try:

Excel 2012
ABC
1PLAYER DATE REST DAYS
2PlayerA1/1/2019
3PlayerB1/3/2019
4PlayerA1/4/20192
5PlayerB1/4/20190
6PlayerA1/8/20193
7PlayerB1/14/20199
8PlayerA1/9/20190
9PlayerB1/16/20191

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C2=IFERROR(B2-LOOKUP(2,1/($A$1:$A1=A2),$B$1:$B1)-1,"")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,984
Messages
6,122,601
Members
449,089
Latest member
Motoracer88

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