+ Reply to Thread
Results 1 to 5 of 5

Checking if sum of multiple rows equals total in another.

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    9

    Checking if sum of multiple rows equals total in another.

    Hello,

    I am trying to check whether the sum of a number of rows equals the total in a single cell located elsewhere on the spreadsheet.

    I have attached a cell sheet to make it easier.

    Thanks for any help on this!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Checking if sum of multiple rows equals total in another.

    Hi -

    Copy and paste this formula into cell G2 and copy down:

    =IF(SUMPRODUCT(($C$2:$C$10=F2)*($D$2:$D$10))=B2,"TRUE","FALSE")

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Checking if sum of multiple rows equals total in another.

    Or ...

    =SUMIFS($D$2:$D$10,$C$2:$C$10,F2)=B2

  4. #4
    Registered User
    Join Date
    09-27-2016
    Location
    Wakefield, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Checking if sum of multiple rows equals total in another.

    Hi

    Just another option on this to add formula in G2:

    =IF(SUMIF(C:C,A2,D:D)=B2,TRUE,FALSE)

    Or if you want to add specific ranges and add absolute references for when you're copying down you could use:

    =IF(SUMIF($C$2:$C$10,A2,$D$2:$D$10)=B2,TRUE,FALSE)

    Both options above work also so this is just another option. Cheers

    Richard

  5. #5
    Registered User
    Join Date
    09-20-2016
    Location
    Ireland
    MS-Off Ver
    2013
    Posts
    9

    Re: Checking if sum of multiple rows equals total in another.

    Thanks for the answers. These work great!!

+ 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] Complex count of min and max matches,checking data against multiple rows
    By sans in forum Excel Formulas & Functions
    Replies: 56
    Last Post: 09-08-2016, 12:31 PM
  2. Something for fun - Possible to play an animated gif if cell equals a total?
    By brent_milne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2015, 06:46 PM
  3. Calculate possible combinations where the total sum equals 30
    By Buksh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2013, 09:45 AM
  4. [SOLVED] Total of (x-character equals certain value) combined?
    By prinssimikko in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-18-2013, 07:12 AM
  5. checking if one cell equals another in another sheet
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 07:44 AM
  6. Replies: 1
    Last Post: 11-16-2011, 09:10 AM
  7. Show #N/A when the total sum equals $0.00
    By avidcat in forum Excel General
    Replies: 3
    Last Post: 10-02-2010, 10:11 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