+ Reply to Thread
Results 1 to 5 of 5

Sumif formula won't drag down to bottom row

  1. #1
    Registered User
    Join Date
    01-08-2017
    Location
    USA
    MS-Off Ver
    Excel Mac 2016
    Posts
    2

    Sumif formula won't drag down to bottom row

    Hi,

    I'm using the following formula in B2 of my worksheet to calculate message volume by month from another worksheet.

    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!C$16:C$63)
    When I drag the formula to the next row down (B3) the formula just repeats itself

    How can I get B3 to be
    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!D16:D63) and so on by dragging down?

    When i use
    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!C16:C63) the output on B3 is
    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!C17:C64)

    The formula works fine if I drag across columns but I need it to go down instead of across.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Sumif formula won't drag down to bottom row

    you mean COLUMN not row

    remove the "$" from the criteria range

    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!A$36,'Msg Volume Detail'!D16:D63)

    But the highlighted range will change if you drag across

    Perhaps

    =SUMIF('Msg Volume Detail'!$A$16:$A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!$C$16:$C$63)

    This is dragging down not across as the ROW increments

    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!C16:C63) the output on B3 is
    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,'Msg Volume Detail'!C17:C64)

    so which is? it??

    You need to understand the difference between relative and absolute range

    the "$" fixes a range: either row, column or both

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumif formula won't drag down to bottom row

    Try this...

    Assuming you're entering the formula in cell B3 and copying down.

    =SUMIF('Msg Volume Detail'!A$16:A$63,'Msg Volume Detail'!$A$36,INDEX('Msg Volume Detail'!C$16:F$63,0,ROWS(B$3:B3)))

    Adjust for the correct end of range where I've used up to F63.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-08-2017
    Location
    USA
    MS-Off Ver
    Excel Mac 2016
    Posts
    2

    Re: Sumif formula won't drag down to bottom row

    Tony thank you that worked!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumif formula won't drag down to bottom row

    You're welcome. Thanks for the feedback!

+ 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. [SOLVED] Rows copying from bottom to top. need to copy top to bottom.
    By jafvortex93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2015, 02:07 PM
  2. [SOLVED] Increase sumif range by 3 with drag down
    By Risto85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 07:51 AM
  3. Replies: 6
    Last Post: 07-16-2012, 12:05 PM
  4. Replies: 4
    Last Post: 06-14-2012, 07:49 AM
  5. Replies: 5
    Last Post: 04-22-2012, 02:15 AM
  6. Replies: 4
    Last Post: 02-09-2010, 04:13 PM
  7. Replies: 1
    Last Post: 04-09-2006, 04:30 PM

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