+ Reply to Thread
Results 1 to 4 of 4

Similarities in 2 columns

  1. #1
    Registered User
    Join Date
    10-01-2008
    Location
    Leiden, Nederland
    Posts
    2

    Similarities in 2 columns

    I have 2 columns in excel:

    COL1 COL2
    1 1
    1 1
    1 0
    3 2
    2 2
    3 3

    How do I get the frequency of 1 = 1?
    (In this case it's 2)

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Counting paired values

    With
    A1: B6 containing your sample data

    This formula counts the instances of paired 1's
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    10-01-2008
    Location
    Leiden, Nederland
    Posts
    2
    Thanks... That helped!

    Another question?
    How do you count if the first variable OR second variable OR both are 0(ZERO)?
    example:

    1 0
    0 1
    0 0
    1 1
    1 1
    2 2

    The result would be:
    [2:2] = 1
    [1:1] = 2
    [0] = 3

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Similarities in 2 columns

    Try something like this:
    Please Login or Register  to view this content.

+ 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. Number of Columns filled ( integer )
    By arora in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2008, 10:04 AM
  2. hiding / showing columns...
    By LSB M in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-07-2008, 05:50 PM
  3. Hide and Unhiding Columns
    By papastyle3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2008, 11:03 AM
  4. Hiding/Unhiding columns based on a dropdown list
    By jim_0068 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2007, 11:57 AM
  5. SUM array with multiple columns
    By carsto in forum Excel General
    Replies: 1
    Last Post: 10-31-2006, 03:13 AM

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