+ Reply to Thread
Results 1 to 2 of 2

Sumif and dynamic range

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    28

    Sumif and dynamic range

    I have created a macro that creates new sheets from a master sheet by calendar year. On each new sheet a totals row is copied from the master sheet and entered below the last row of data through the macro. The macro works correctly. I want formulas in the totals row that would sum the amount in each column starting at row 9 and ending one row above the totals row. This row will be differnt for each sheet. Is there a dynamic range formula I can use for this?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sumif and dynamic range

    The technique is:

    1) Use a specific column to look UP to find the last used row with data.
    2) Insert a formula into that next cell down the uses R1C1 syntax so you can specify a specific starting row and a relative final row:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. SUMIF Dynamic Range
    By M1234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2013, 01:14 PM
  2. sumif with dynamic value range
    By vinayakg in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-19-2013, 09:08 AM
  3. [SOLVED] SumIF applied to a dynamic range
    By timtim89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2013, 11:56 AM
  4. VBA SUMIF in Dynamic Range
    By Cowzilla in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2012, 05:28 PM
  5. Sumif for dynamic range
    By Praneetbvb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2012, 07:14 AM

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