@ bluesky
please wrap your code with code tags ( select the code and press the #button)...
To add code tags select the code and click the #button.
You can see the result in Bob's post
It's important so that it can be copied easier...
can you upload the file you're working in?
can't figure out why it doesn't work on my side...
Probably your real data has nothing to do with what you listed in post #1; I don't have a crystal ball.
Maybe changing the line of code:
Set repeat_cell_address
Need formula to create totals using only certain data
And a Power Query solution at cell K1. Right-click and choose Refresh to update....
p45cal Today, 04:25 PM