+ Reply to Thread
Results 1 to 2 of 2

Excel Macro Find / Alter / Replace Function turn Subtotals into Sums

  1. #1
    Registered User
    Join Date
    11-08-2021
    Location
    USA
    MS-Off Ver
    MS Office Home & Business 2019
    Posts
    1

    Question Excel Macro Find / Alter / Replace Function turn Subtotals into Sums

    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 creates the SUBTOTAL functions I believe is this...

    Excel Formula:
    Please Login or Register  to view this content.
    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)

    To be clear the above example was a static one, I would need to be able to do this dynamically to work with any range. It should always be in the same column if that helps.

    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.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Excel Macro Find / Alter / Replace Function turn Subtotals into Sums

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to turn of Kutools-driven Find and Replace function
    By ray2h in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2017, 03:26 PM
  2. How to find conditional cumulative sums in an excel table using VBA macro
    By Emoryatekho in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-19-2016, 02:13 PM
  3. Macro for Find and replace function
    By Alpha_Mike in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2015, 05:07 PM
  4. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  5. Macro to Perform Find and Replace Function Please HELP!
    By Elizabethd1012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2014, 07:13 PM
  6. Advanced Find and Replace function or macro help
    By johnmalcolm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2007, 11:01 PM
  7. Excel macro/function like VLOOKUP that sums eventual multiple matches
    By Mary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2006, 11:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1