+ Reply to Thread
Results 1 to 8 of 8

Comparing (2) Rows of Data

  1. #1
    Registered User
    Join Date
    07-18-2019
    Location
    Huntsville, AL
    MS-Off Ver
    10
    Posts
    4

    Comparing (2) Rows of Data

    I have (2) rows of data, A1:X1 & A2:X2.

    I want to compare A1 to A2, B1 to B2, and so on. Additionally, I want count the sum each time A1 = (A2 - 1).

    I know I need to implement an array formula, but I cannot get anything to work. I'm hoping this can be done in one formula.

    Any help is greatly appreciated.

  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,485

    Re: Comparing (2) Rows of Data

    Welcome to the forum.

    The words that bother me here are and so on - what exactly do you mean? How many rows of data? What do they look like? What’s the objective of the exercise?

    Please provide some sample data.
    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.

  3. #3
    Registered User
    Join Date
    07-18-2019
    Location
    Huntsville, AL
    MS-Off Ver
    10
    Posts
    4

    Re: Comparing (2) Rows of Data

    Thanks!

    It’s just 2 rows of data.

    Row 1 represents “par” on a golf scorecard, 18 holes.
    Row 2 represents my score on each of the 18 holes.

    I need to count each time my score is 1 less than “par”

    Example:
    For the first 9 holes par is as follows:
    (4,5,4,4,3,5,3,4,4)
    My scores for the first 9 holes:
    (4,4,4,4,3,4,3,4,3)

  4. #4
    Registered User
    Join Date
    07-10-2019
    Location
    Malaysia
    MS-Off Ver
    2016
    Posts
    28

    Re: Comparing (2) Rows of Data

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


    This formula will Deduct the par with your score when par score is greater than your score. Else it will become 0.

  5. #5
    Registered User
    Join Date
    07-18-2019
    Location
    Huntsville, AL
    MS-Off Ver
    10
    Posts
    4

    Re: Comparing (2) Rows of Data

    I’m trying to get only one cell to count all the times I beat par.

    So if I birdied 18 holes, the cell’s output would be 18.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    2007, Office 365
    Posts
    11,615

    Re: Comparing (2) Rows of Data

    With data as in post #3 try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It returns 3.
    Dave

  7. #7
    Registered User
    Join Date
    07-18-2019
    Location
    Huntsville, AL
    MS-Off Ver
    10
    Posts
    4

    Re: Comparing (2) Rows of Data

    That works!! Thank you!

  8. #8
    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,485

    Re: Comparing (2) Rows of Data

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. comparing rows of data
    By MistaMotor in forum Excel General
    Replies: 3
    Last Post: 03-08-2013, 11:41 PM
  2. Comparing two columns data and inserting rows
    By scyllanbay in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-11-2012, 11:56 AM
  3. Comparing data in multiple rows
    By bimalaar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-24-2009, 07:47 PM
  4. Comparing two rows of Data
    By zecro in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2008, 07:20 PM
  5. Comparing several rows of data for 1 record
    By Stewpot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-14-2008, 08:08 PM
  6. Comparing rows of data
    By Stewpot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2008, 08:59 AM
  7. Comparing rows of data - A bit trickier than normal!!
    By leapyleigh in forum Excel General
    Replies: 3
    Last Post: 11-01-2006, 12:29 AM
  8. Comparing data between sheets, and copying rows with data
    By Fleone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2006, 02:00 PM

Tags for this Thread

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