+ Reply to Thread
Results 1 to 4 of 4

Sumif Help - two columns

  1. #1
    Registered User
    Join Date
    03-07-2019
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    2

    Sumif Help - two columns

    Hello everyone

    I have two columns with number values in them. I want to sum only those cells which have a value in the equivalent cell in the next column.

    Thanks in advance.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sumif Help - two columns

    Without an example file to show your data layout it's impossible to give an exact answer, but the below will sum the values in column A where column B is not blank.
    =SUMIF(B:B,"<>",A:A")

    Does that help?

    BSB

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Sumif Help - two columns

    =sumproduct((a1:a10=b1:b10)*(a1:a10)) if the values have to be equal otherwise the solution in the post above

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Sumif Help - two columns

    or, possibly, to aggregate numerics in either A and/or B - but only where both A & B are populated

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    modify range to suit but do not use above with entire column references.

+ 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 across columns
    By jw01 in forum Excel General
    Replies: 8
    Last Post: 06-29-2017, 02:26 PM
  2. SUMIF 2 columns?
    By kevinSHR in forum Excel General
    Replies: 3
    Last Post: 05-04-2016, 07:56 PM
  3. sumif with not columns far apart
    By makinmomb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2014, 04:24 PM
  4. [SOLVED] Sumif two columns matching another two columns
    By kl99ny in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-11-2013, 02:08 PM
  5. SUMIF Several Columns
    By lampoonsaat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 01:11 PM
  6. SumIf across columns
    By Lithium78 in forum Excel General
    Replies: 12
    Last Post: 02-19-2010, 04:01 AM
  7. Sumif across columns-Sum pay-
    By mremmenga in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2008, 05:42 PM

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