+ Reply to Thread
Results 1 to 5 of 5

Sum total with 2 conditions, but one condition is the same for all

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Sum total with 2 conditions, but one condition is the same for all

    Hello,

    It is hard to tell what the conditions are. I have attached a file here. What I have is I have few companies that use the same number format and same invoice number. I need to sum the total by each company with their invoice. Since some of the invoice numbers will be the same. I need help on this. I do not know what formula that need to be used. Any help will be greatly appreciated.


    Thanks

    Jackson
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Sum total with 2 conditions, but one condition is the same for all

    Try with "E2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Sum total with 2 conditions, but one condition is the same for all

    Try this formula in E2 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Sum total with 2 conditions, but one condition is the same for all

    AVK,

    Thanks for the reply. I used your formula, but the result turns out all of them with a value of E2.

    Thanks again for the help.

    Jackson

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Sum total with 2 conditions, but one condition is the same for all

    Try

    in E2 and copy down

    =SUMIFS($C$2:$C$9,$A$2:$A$9,$A2,$B$2:$B$9,$B2)

    This will total on every line.

    If data is sorted as shown, then you could test for 1st occurrence of each Category/Invoice

    =IF(COUNTIFS($A$2:$A2,$A2,$B$2:$B2,$B2)=1,SUMIFS($C$2:$C$9,$A$2:$A$9,$A2,$B$2:$B$9,$B2),"")

+ 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. using If - Then condition for multiple conditions
    By keltobgy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2016, 08:20 PM
  2. [SOLVED] IF formula: IF any of these conditions AND if this condition, THEN.....
    By Phrick in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2014, 01:49 PM
  3. update the IF condition with more conditions
    By arun.sj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2014, 12:34 PM
  4. Count if one condition and one of two other conditions are met
    By jessjo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 05:38 PM
  5. [SOLVED] Complex if condition with 3 conditions
    By janagan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-10-2014, 01:12 AM
  6. [SOLVED] COUNTIF with 2 Conditions met UNTIL 2 Condition met
    By DnDXan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2012, 02:20 PM
  7. If either condition is true (3 Or conditions)
    By Helpinghand in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2008, 12:19 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