+ Reply to Thread
Results 1 to 6 of 6

Sum column with multiple conditions

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Sum column with multiple conditions

    I wish to sum a column with a condition in that column and a condition of another column.

    Presently, I have the below formula in RESULTS D16 of the attached spreadsheet.

    Please Login or Register  to view this content.
    The problem with this... It's counting both columns L & J. I only want to count Column L. Any thoughts?
    Attached Files Attached Files
    Last edited by cableghost; 05-12-2021 at 02:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Sum column with multiple conditions

    Hi - so I can understand what you're trying to do, what do you expect the result to be by only counting Column L?

  3. #3
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Sum column with multiple conditions

    Quote Originally Posted by mikeava View Post
    Hi - so I can understand what you're trying to do, what do you expect the result to be by only counting Column L?
    Thanks for the response... At this point, the result would be 46%

    Number of positive BO in Col L (6) / Number of total positive numbers in Col J (13)

  4. #4
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Sum column with multiple conditions

    Try this and please let me know:
    =COUNTIFS(DATA!L:L,"BO",DATA!J:J,">0")/COUNTIF(DATA!J:J,">0")

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

    Re: Sum column with multiple conditions

    Edit: My bad. Forgot to refresh before posting. Apologies.

    You do not need to subtract 1. (=SUM(COUNTIFS(DATA!L:L,"BO",DATA!J:J,">0")/(COUNTIF(DATA!J:J,">0")-1))

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It yields 46% at my end.
    Last edited by FlameRetired; 05-11-2021 at 07:19 PM.
    Dave

  6. #6
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Sum column with multiple conditions

    Quote Originally Posted by mikeava View Post
    =COUNTIFS(DATA!L:L,"BO",DATA!J:J,">0")/COUNTIF(DATA!J:J,">0")
    This works, thanks!

    Quote Originally Posted by FlameRetired View Post
    You do not need to subtract 1
    Typically, yes. However, I'm looking for I believe an integer >0

+ 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. Replies: 3
    Last Post: 05-17-2019, 02:27 PM
  2. [SOLVED] Countif multiple column conditions
    By _MANNY_ in forum Excel General
    Replies: 3
    Last Post: 08-31-2018, 06:07 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. Multiple Conditions add value to column
    By vcollins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2015, 01:51 PM
  5. Search column with multiple conditions
    By ansridhar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2014, 02:22 AM
  6. sum column using multiple conditions
    By losthero1990 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2013, 11:57 PM
  7. Multiple conditions in one column for sumproduct.
    By einarai in forum Excel General
    Replies: 4
    Last Post: 08-07-2011, 04:01 AM

Tags for this Thread

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