formula to capture data from pivot table that keeps growing

Frank J

Board Regular
Joined
Feb 17, 2011
Messages
104
Office Version
  1. 365
Platform
  1. Windows
I need to capture the "Open Hours" for each month from a pivot table that will grow and expand as the year goes on. There's no way to add the months to come ahead of time as the data isn't there at the source until the actual occurrence. I'm adding an example of the sheet I'm using but expect the formula will work for all months. The data is arranged with the YTD on the left and each month going to the right in descending order from Dec to Jan.

Below it all is the pivot table that pulls in data from another sheet and will grow as the year goes on, moving the previous months to the right as another is added. Currently I haven't been able to create a formula that will allow for the addition of new months
Currently I'm using this below but I need to manually adjust it every month and I'm looking to stop that.

=IFERROR(INDEX(C$49:C$57,MATCH(I4,B$49:B$57,0)),"")

Here's a small example of my worksheet
2021 YTDJune
DropWin/LossHold %Open HoursDropWinHoldPromosOpen HoursDrop/HourWin/Hour
Baccarat$6,790,114$379,4415.59%7,828.36Baccarat$1,366,146$110,7168.1%$150,4751,110.94$1,230$100
Baccarat HL$27,904,700$1,859,3276.66%22,175.84Baccarat HL$5,420,153$273,7335.1%$386,5502,813.38$1,927$97
Baccarat Total$34,694,814$2,238,7686.45%30,004.20Baccarat Total$6,786,299$384,4495.7%$537,0253,924.32$1,729$98
Blackjack$8,733,684$2,050,36023.48%
27,236.35
Blackjack$1,889,660$505,10226.7%$22,6754,332.06$436$117
Double Deck$2,002,178$103,4855.17%
3,944.67
Double Deck$544,189($23,871)-4.4%$16,425575.98$945($41)
Blackjack HL$687,924($565,795)-82.25%
2,351.61
Blackjack HL$439,462($40,408)-9.2%$3,775327.30$1,343($123)
Blackjack Total$11,423,786$1,588,05113.90%
33,532.62
Blackjack Total$2,873,311$440,82315.3%$42,8755,235.34$549$84
Craps$9,806,234$1,934,39719.73%6,634.32Craps$2,124,619$364,23917.1%$35,600941.71$2,256$387
Roulette$3,981,847$989,95124.86%9,909.59Roulette$763,447$229,39130.0%$8,0501,719.43$444$133
Novelty$2,166,635$510,04023.54%9,731.06Novelty$474,494$34,6247.3%$5251,472.91$322$24
Casino Totals$62,073,316$7,261,20611.70%89,811.78Casino Totals$13,022,170$1,453,52511.16%$624,07513,293.71$980$109
Budget
$29,715,000​
$4,523,200​
15.22%Need to use below Pivot table to capture the Open Hours^^^
2021
Open Hours
JunMayAprMarFebJanCasino Totals
Baccarat
1,110.94​
1,327.27​
1,255.46​
1,377.28​
1,230.80​
1,526.61​
7,828.36​
Baccarat HL
2,813.38​
3,991.98​
3,973.71​
4,119.63​
3,616.73​
3,660.40​
22,175.84​
Blackjack
4,332.06​
5,803.10​
4,940.33​
4,443.22​
3,873.43​
3,844.20​
27,236.35​
Double Deck
575.98​
739.40​
715.32​
638.53​
609.33​
666.10​
3,944.67​
Blackjack HL
327.30​
407.84​
376.16​
553.84​
389.27​
297.20​
2,351.61​
Craps
941.71​
1,288.34​
1,122.45​
1,164.23​
1,057.69​
1,059.90​
6,634.32​
Roulette
1,719.43​
2,191.23​
1,805.58​
1,454.18​
1,265.09​
1,474.08​
9,909.59​
Novelty
1,472.91​
2,225.01​
1,698.08​
1,689.14​
1,327.82​
1,318.10​
9,731.06​
Casino Totals
13,293.71​
17,974.16​
15,887.09​
15,440.06​
13,370.17​
13,846.60​
89,811.78​
^^^ New months will be added pushing columns to the right
 

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
please provide a link to that file.
since ur working with Pt's its hard to estimate anything.
Do you mean the source file for the open hours? Or this file my example is in?
I can't provide either as it's a protected network and this computer doesn't have the program to upload the mini-worksheets and I don't have admin rights to get it.
 
Upvote 0
and what about onedrive sharing options or using dropbox?
Also what is important is the layout, same data type in cells but data itself can be a dummy data.
 
Upvote 0
and what about onedrive sharing options or using dropbox?
Also what is important is the layout, same data type in cells but data itself can be a dummy data.
The data is there above and can be copied to another sheet for use, I have no other way to share it.
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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