+ Reply to Thread
Results 1 to 2 of 2

counting in a data set if adjacent cells are equal

  1. #1
    Registered User
    Join Date
    02-25-2018
    Location
    UAE
    MS-Off Ver
    2010
    Posts
    1

    counting in a data set if adjacent cells are equal

    I have used a randbetween code and if code to generate 10000 trials of a 2 coin toss.
    Capture 2.PNG

    I want to be able to count the adjacent cells that have the same value. i.e. when heads is in A1 and Heads in in B1, for the 10000 trials.

    Is there a code for this?

    Thank you

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    41,978

    Re: counting in a data set if adjacent cells are equal

    Try this:

    =COUNTIFS(range_coin_1,range_coin_2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ 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. Replies: 1
    Last Post: 12-19-2017, 01:44 PM
  2. Replies: 2
    Last Post: 09-11-2017, 03:42 PM
  3. [SOLVED] Find Word And Set Cells To Equal Adjacent Cell Value if Criteria Is Met
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 03:48 AM
  4. [SOLVED] SUM cells with equal values in an adjacent column.
    By angelopc in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-13-2013, 09:55 AM
  5. Counting Cells with data in adjacent Cells
    By Alvin Hunter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2013, 03:38 PM
  6. Counting adjacent cells(text) to equal one value
    By Calithea in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-29-2012, 04:08 AM
  7. ►[SOLVED] by Richard Buttrey - Message Box Error when Adjacent Cells Equal
    By xsoldoutx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2012, 08:07 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