+ Reply to Thread
Results 1 to 6 of 6

Sum If Question

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Sum If Question

    Hi,

    In the attached file I'm using three sumif equations to select and sum three different numbers in a single column whilst ignoring the other numbers. How can I do this with one formula?

    Cheers,

    Bill
    Attached Files Attached Files

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

    Re: Sum If Question

    A simple way is like this:

    =SUMIF(B$1:B$9,D9,A$1:A$9) + SUMIF(B$1:B$9,E9,A$1:A$9) + SUMIF(B$1:B$9,F9,A$1:A$9)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Re: Sum If Question

    Thanks Pete, that works fine.

    Bill

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Sum If Question

    =sum(index((((b1:b9=d9)+(b1:b9=e9)+(b1:b9=f9))>0)*(a1:a9),0))
    try this

  5. #5
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Sum If Question

    Quote Originally Posted by nflsales View Post
    =sum(index((((b1:b9=d9)+(b1:b9=e9)+(b1:b9=f9))>0)*(a1:a9),0))
    try this
    and freeze the column ranges as you need ..
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Sum If Question

    Try this......

    =SUMPRODUCT((B1:B9=D9:F9)*A1:A9)
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  2. Replies: 3
    Last Post: 06-17-2011, 08:09 AM
  3. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 AM
  4. macro question and count question... thanks!
    By bstaff in forum Excel General
    Replies: 5
    Last Post: 02-07-2007, 10:12 AM
  5. Newbie Question - Subtraction Formula Question
    By admiral_victory@iol.ie in forum Excel General
    Replies: 3
    Last Post: 05-05-2006, 12:55 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