+ Reply to Thread
Results 1 to 4 of 4

Increment Rows Across Columns in copied SUMIF formula??

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    West Hartford, CT
    MS-Off Ver
    Excel 2003
    Posts
    2

    Increment Rows Across Columns in copied SUMIF formula??

    Hi,

    I am trying to copy a SUMIF formula across columns and would like the "criteria" to increase by row, not column.

    Here is my formula:

    =SUMIF($A:$A,A2,$B:$B)


    How can I get the A2 to become A3, A4, etc.

    Thanks!

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Increment Rows Across Columns in copied SUMIF formula??

    Hi Chizilla,

    one possibility is using INDIRECT, but that would be volatile. So, you may want to try this in column C and copy across:

    =SUMIF($A:$A,INDEX($A:$A,COLUMN()),$B:$B)

    You may need to adjust the column() part by adding or subtracting a number that will result in the correct row number to feed into the Index() function.

    Try out the Index() function in a separate cell in the same column that will have your original formula, then tweak the Column() with +2 or -1 or whatever, until you see the correct value of column A returned. Then plug that into your sumif() and copy across

    hth

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Increment Rows Across Columns in copied SUMIF formula??

    where's the first formula? Assuming it's in D3 then copied across try

    =SUMIF($A:$A,INDEX($A:$A,COLUMNS($D3:D3)+1),$B:$B)

    change the COLUMNS($D3:D3) part to reflect your actual start cell

  4. #4
    Registered User
    Join Date
    02-10-2010
    Location
    West Hartford, CT
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Increment Rows Across Columns in copied SUMIF formula??

    Thanks to both of you - You've saved me a considerable amount of time!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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