DarthDiggler
New Member
- Joined
- Nov 4, 2021
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
I have a spreadsheet that already has some macros that setup SUBTOTAL functions where I would like there to be SUM functions.
The code that creats the SUBTOTAL functions I believe is this...
There is one caveat, I would like to change the first Cell cited in the formula down by 1 cell.
I would like: =SUBTOTAL(9,V2:V55)
To turn into: =SUM(V3:V55)
Thanks in advance, I have found solutions for a simple find and replace, but not exactly sure how I move the cell range down 1 cell just for the first cell cited in the function.
The code that creats the SUBTOTAL functions I believe is this...
Excel Formula:
Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(22), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
There is one caveat, I would like to change the first Cell cited in the formula down by 1 cell.
I would like: =SUBTOTAL(9,V2:V55)
To turn into: =SUM(V3:V55)
Thanks in advance, I have found solutions for a simple find and replace, but not exactly sure how I move the cell range down 1 cell just for the first cell cited in the function.