+ Reply to Thread
Results 1 to 15 of 15

Column A add up rows in sequence with Column B rows

  1. #1
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Column A add up rows in sequence with Column B rows

    Is there a way to have Column A add up rows in sequence with Column B rows?


    Untitled-1.jpg

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

    Re: Column A add up rows in sequence with Column B rows

    Maybe this...

    =SUMIF(B1:B10,"<>",A1:A10)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Column A add up rows in sequence with Column B rows

    Do you mean add up column A if column B is not blank? If so, you can use this in A11:

    =SUMIF(B1:B10,"<>",A1:A10)

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Re: Column A add up rows in sequence with Column B rows

    I was looking when I add new rows to Column B it will add the corresponding row in Column A to totals on row 11.

    Hopefully this doesn't get to confusing...

    Thanks for any help

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Column A add up rows in sequence with Column B rows

    Did you try the formula, and then put other numbers in column B?

    Pete

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

    Re: Column A add up rows in sequence with Column B rows

    I think our suggestions do what you want.

    Try it and let us know.

  7. #7
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Re: Column A add up rows in sequence with Column B rows

    I did in the my original document and it didn't work, but I just did in my example and it worked. I will have to make sure I got proper info in my org document.

    Thanks for your quick reply

    Anthony

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Column A add up rows in sequence with Column B rows

    Maybe the numbers in your original document are text values that just look like numbers - it depends what you mean by "it didn't work".

    Pete

  9. #9
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Re: Column A add up rows in sequence with Column B rows

    For some reason it adding Column E (E6:E8) to the total in D19 rather than D6:D8

    Untitled-2.jpg

  10. #10
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Re: Column A add up rows in sequence with Column B rows

    They are "Accounting" values

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Column A add up rows in sequence with Column B rows

    The syntax for SUMIF is SUMIF(condition_range, condition, sum_range).

    You need to swap the ranges over (or alternatively change it to SUMIFS, which has the syntax that you are trying to use).

    Hope this helps.

    Pete

  12. #12
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Re: Column A add up rows in sequence with Column B rows

    So it should read =SUMIFS(D6:D17,"<>",E6:E17)?

    I am getting the formula error when I do so.

    Anthony

  13. #13
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Column A add up rows in sequence with Column B rows

    It should either be:

    =SUMIF(E6:E17,"<>",D6:D17)

    or:

    =SUMIFS(D6:D17,E6:E17,"<>")

    Sorry, the syntax is slightly different, with the sum_range first, then the condition_range and condition as a pair (you can have multiple conditions).

    Hope this helps.

    Pete
    Last edited by Pete_UK; 05-04-2016 at 05:29 PM. Reason: corrections

  14. #14
    Registered User
    Join Date
    05-04-2016
    Location
    Boise, ID
    MS-Off Ver
    2010
    Posts
    23

    Re: Column A add up rows in sequence with Column B rows

    Pete,

    =SUMIF(E6:E17,"<>",D6:D17) WORKED!!

    Thank you for sticking with me!

    Anthony

  15. #15
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Column A add up rows in sequence with Column B rows

    Check my edit - I had it wrong for SUMIFS the first time round.

    Pete

+ 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. Replies: 2
    Last Post: 02-29-2016, 03:05 PM
  2. Replies: 4
    Last Post: 05-16-2014, 04:52 PM
  3. [SOLVED] 2 column compare that maintains data sequence but shifts cells to align rows
    By murphybrendan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2013, 06:24 PM
  4. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  5. [SOLVED] VLOOKUP formula that will relatively adjust rows by a block of 8 rows with absolute column
    By DPKologie in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 09-02-2012, 04:00 AM
  6. Replies: 1
    Last Post: 01-25-2012, 04:29 AM
  7. Replies: 11
    Last Post: 04-25-2011, 06:51 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