+ Reply to Thread
Results 1 to 6 of 6

Count given values in column if other columns contain data.

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Earth
    MS-Off Ver
    Office 2010
    Posts
    9

    Count given values in column if other columns contain data.

    Hello,

    I've been trying to get a new count to work, ever since I received my last answer on this site.
    The new issue is...

    I am trying to count the number of entries in a given column that begin with a certain text (Eg: cell value "AB" followed by a date, such as "AB 1 Jan 2014"), but only when any of three other columns contain any data at all (the values are generally "OK", "ERR", "CORR", or "1", but could be anything). If two or more of those other three columns contain data, then the whole row should only count once.


    Eg:
    ...A...B...C...D
    1..N...X.........
    2..O.......X.....
    3..N..............
    4..N............X
    5..N...X...X...X
    Count the number of rows where "N" is in column A, and something exists in columns B, C, and/or D. In this case, end result is 3.

    I am able to do this using helper columns. But if possible, I would like to avoid the use of those.
    Last edited by Halfy; 09-15-2014 at 02:08 PM.

  2. #2
    Registered User
    Join Date
    07-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    2010 Pro
    Posts
    25

    Re: Count given values in column if other columns contain data.

    I believe you should be able to achieve this using the "=COUNTIFS" formula. Can you upload a sample workbook?

  3. #3
    Registered User
    Join Date
    09-12-2014
    Location
    Earth
    MS-Off Ver
    Office 2010
    Posts
    9

    Re: Count given values in column if other columns contain data.

    Samplebook.xlsx
    Here is the sample.
    The three columns that may contain data are L, O, and R. Only count rows that have something in at least one of these three columns.

    The data to be counted is column A, for each starting letter combination (one cell will state the total for BH, another cell for MJ, etc.).


    The sample spreadsheet can not be altered. I am referencing it in another spreadsheet to track productivity.
    (For simplicity, I have removed about 3/4 of the columns, and 99% of the rows)

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Count given values in column if other columns contain data.

    How about:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    09-12-2014
    Location
    Earth
    MS-Off Ver
    Office 2010
    Posts
    9

    Re: Count given values in column if other columns contain data.

    Quote Originally Posted by ConneXionLost View Post
    How about:

    Please Login or Register  to view this content.
    Cheers,
    This does not work. This would multiply the four columns logic value, so if a single one is false, the result for the row is negative.
    Last edited by Halfy; 09-18-2014 at 12:47 PM.

  6. #6
    Registered User
    Join Date
    09-12-2014
    Location
    Earth
    MS-Off Ver
    Office 2010
    Posts
    9

    Re: Count given values in column if other columns contain data.

    Finally found it...

    {=SUM(--(LEFT(AG2:AG1000,2)="BH")*(--(LEN(AH2:AH1000&AI2:AI1000&AJ2:AJ1000)>0)))}


    Had to learn about -- and {} to get the solution... but it works.

+ 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. Count Unique values in Column based on values in other columns
    By dmschave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2014, 11:06 AM
  2. [SOLVED] Count values in one column, compared to other columns
    By whatdafudge in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-14-2012, 01:34 AM
  3. Replies: 4
    Last Post: 02-28-2012, 12:47 PM
  4. Replies: 11
    Last Post: 06-09-2011, 03:17 PM
  5. Replies: 5
    Last Post: 04-21-2011, 05:22 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