+ Reply to Thread
Results 1 to 3 of 3

How to count number of duplicates in a column and assign it to a variable

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    How to count number of duplicates in a column and assign it to a variable

    Column E has either the word "Yes" or "No" in it. It also has some blank cells.

    How do I make a formula that in a seperate cell would say:

    (Total number of "Yes" cells in column E) / (Total number of "Yes" and "No" cells in column E)


    Thanks!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to count number of duplicates in a column and assign it to a variable

    Perhaps

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: How to count number of duplicates in a column and assign it to a variable

    Try this:

    =COUNTIF(E:E,"Yes") / COUNTA(E:E)

    assuming those blank cells are truly empty.

    Hope this helps.

    Pete

+ 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] Count Duplicates in Column A once as long as there is a number higher than 0 in Column B
    By armbands1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 01:46 AM
  2. Count duplicates and put their number in next column
    By wali in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2011, 05:59 PM
  3. Assign number to variable in VBA?
    By Jalupeno104 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2009, 11:49 AM
  4. How do I assign a text value to a variable number of rows?
    By Jday in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. Count number of unique items in a column that contains duplicates
    By Steembeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2005, 09:06 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