+ Reply to Thread
Results 1 to 6 of 6

count equal numbers on two columns for given number

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    count equal numbers on two columns for given number

    hi


    I need a formula to count like in atached file
    please see it.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: count equal numbers on two columns for given number

    Some results in your file dont make sense to me. Why does Cell C6 = 1? You want to count the number of times "3" (from A6) shows up in the range A2 to B5. The answer to that is 2 (once in A2 and once in B2).

    Also, why does c13 = 1, when there are 3 instances of "7" in the range A2 to B12?

  3. #3
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: count equal numbers on two columns for given number

    the problem is to count equality of two nombers on same row on two specified columns. this pair of numbers must also be equal with the given number.
    in this case the given number is on column A. At cell A6 is number 3 so the formula must count the theuntil a row above three pairs. the result is 1 at C6 becose is only one pair of three on the two columns A and B from row 2 to row 5.

    the same answer is for C13 there is ony one pair of seven on row 5 and the count is until row 12.

    so i don't want to count numburs but pair of numbers. the formula must look at number on column A to see if there are pairs of numbers identical with number on column A.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: count equal numbers on two columns for given number

    Ok, I think I understand now....does this work
    Please Login or Register  to view this content.
    when placed in C6 and copied down?

  5. #5
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: count equal numbers on two columns for given number

    yes this is the formula.

    thank you

    how can I make formula to expand automatically when I type data in columns a and b?

  6. #6
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: count equal numbers on two columns for given number

    Not sure I understand, but this formula is anchored to column 2, so as you copy it down, the ranges that it is looking at will always start with column 2 and end with column above the cell the formula is in.

+ 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. Rounding numbers to whole number need equal original
    By Papeters111 in forum Excel General
    Replies: 6
    Last Post: 11-19-2014, 06:12 PM
  2. Sum of equal numbers in two columns (affinity index)
    By Broeckie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-01-2014, 11:18 AM
  3. [SOLVED] Count number of consecutive rows of equal value?
    By Johnington in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-27-2013, 02:40 AM
  4. Replies: 2
    Last Post: 01-14-2009, 04:01 AM
  5. Finding what numbers equal another number
    By all2sober in forum Excel General
    Replies: 1
    Last Post: 06-26-2008, 01:54 PM
  6. Count number of values equal to MAX of a column
    By dauclair in forum Excel General
    Replies: 1
    Last Post: 05-30-2006, 09:30 AM
  7. Count equal numbers in beginning of a column
    By FiddlerOnTheRoof in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-25-2006, 03:10 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