+ Reply to Thread
Results 1 to 5 of 5

Counting rows WITHOUT double counting the values in individual columns.

  1. #1
    Registered User
    Join Date
    07-12-2017
    Location
    Singapore
    MS-Off Ver
    Excel
    Posts
    1

    Exclamation Counting rows WITHOUT double counting the values in individual columns.

    All right, so I've got data consisting of approximately 1000 rows, with 3 columns. Really simple stuff, but I can't for the life of me figure out how to just purely count the rows that have at least 1 value in 1 column.

    I have attached a screenshot and the xls file.

    Counting 101.jpg

    Thanks in advance! Cheers!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Counting rows WITHOUT double counting the values in individual columns.

    I would put this in D4, then copy down.
    =IF(OR(ISNUMBER(SEARCH("Consider",F4&G4&H4)),ISNUMBER(SEARCH("Yes",F4&G4&H4))), 1, "")

    Then just sum column D.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Counting rows WITHOUT double counting the values in individual columns.

    You may try this in column D (start at row 4 and copy down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Notice the brackets surrounding the formula meaning it's an array formula. Close with [Ctrl]+[Shift]+[Enter]
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Counting rows WITHOUT double counting the values in individual columns.

    (NO EXTRA COLUMNS!)
    Hi all- this ARRAY FORMULA* does the calculation in a single cell :

    =SUM(--(FREQUENCY(IF((F4:H17="Yes")+(F4:H17="Consider"),ROW(F4:H17)),ROW(F4:H17))>0))

    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.


    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 07-13-2017 at 05:36 AM.

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

    Re: Counting rows WITHOUT double counting the values in individual columns.

    2 more ways.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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] counting cells with individual duplicate values
    By bawlmer in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-14-2017, 10:59 AM
  2. Formula for counting values in different columns/rows
    By Emirates in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-20-2016, 05:04 AM
  3. Counting occurrences not values.. Counting blocks of words in columns
    By Flydd in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-01-2016, 06:42 PM
  4. [SOLVED] Excel 2007 : Counting with a pivot table (groups not individual rows)
    By benoj2005 in forum Excel General
    Replies: 12
    Last Post: 04-30-2012, 03:24 AM
  5. Avoid counting rows/columns with formula but no values
    By magnuc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2006, 06:30 AM
  6. [SOLVED] Counting rows, then counting values.
    By Michael via OfficeKB.com in forum Excel General
    Replies: 7
    Last Post: 08-04-2005, 06:05 PM
  7. Counting Rows Then Counting Values in Columns
    By Michael via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2005, 12:05 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