+ Reply to Thread
Results 1 to 5 of 5

Conditional Formula based upon multiple columns

Hybrid View

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Overland Park, KS
    MS-Off Ver
    Excel 2003
    Posts
    8

    Conditional Formula based upon multiple columns

    I am compiling data with thousands of entries. I need an itemized result based upon a person's name and the sum of a subcategory under their name-

    Example:

    A B C D
    Person 1 100 XM CSR
    Person 1 100 CC_Consumer
    Person 1 -50 XM CSR
    Person 1 -25 CC_Consumer
    Total 200 -75

    Turn the preceding data into:
    Person 1 Totals
    XM CSR 50
    CC_Consumer 25

    There are a lot of different people and several categories. I would use =sumif(A:A,A10,B:B)-sumif(A:A,A10,C:C) if I didn't need it also dependent on Column D.

    So I need the formula to subtract the sum of all values in C that match specific names in A and D from the sum of all values of B that match specific values of A and D.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formula based upon multiple columns

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-14-2012
    Location
    Overland Park, KS
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Conditional Formula based upon multiple columns

    Here is a basic example of data and associated summary.
    Attached Files Attached Files

  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: Conditional Formula based upon multiple columns

    use PivotTable

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formula based upon multiple columns

    use this, copied down, change A to B etc for each set...

    =SUMPRODUCT(($A$2:$A$15="A")*($E$2:$E$15=G4)*($C$2:$D$15))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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