+ Reply to Thread
Results 1 to 9 of 9

Comparing two cells to provide lowest number.... but....

  1. #1
    Registered User
    Join Date
    12-26-2016
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    5

    Comparing two cells to provide lowest number.... but....

    Hi,

    I'm new to using Excel (2010) and I'm in the process of summarising a fun little spreadsheet to track Golf stats between my friends and I that I made. I've learnt many things so far to get me what I want but I'm stumped on this problem.

    I have a 'Data' tab to hide everything I want to use, but not display. On that tab I have a table where I keep a numerical value of each of our scores over par (per date) as we play, so say 15, or 20, per player. Column = unique date, row = numerical value. I want to use that table to give me the percentage of beating another player, based on comparing the two scores if we played.

    So far I have figured out how many times each of us has played the other by using:
    Please Login or Register  to view this content.
    35 being my row, and 36 being another player. I counted if my cell was >0 at the same time theirs was >0, on the same day (column).

    What I need to do now is similar, but with another layer. So logically this is what I want to achieve:

    If my row is >0 and their row is >0, count if my score is less than their score on the same day (column).

    If I can find that then I'll have no worries getting a percentage value.

    Thanks for your help!
    Last edited by BMAC86; 12-27-2016 at 01:02 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Comparing two cells to provide lowest number.... but....

    Any chance you could post the workbook and show us your expected outcome?
    Far easier to provide a solution when we can see the file.

    BSB

  3. #3
    Registered User
    Join Date
    12-26-2016
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    5

    Re: Comparing two cells to provide lowest number.... but....

    Also I should add - I have no problem making a new table for these comparisons on the data sheet if I need to compare column by column and summing those values in another tab if that is easier.

  4. #4
    Registered User
    Join Date
    12-26-2016
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    5

    Re: Comparing two cells to provide lowest number.... but....

    Quote Originally Posted by BadlySpelledBuoy View Post
    Any chance you could post the workbook and show us your expected outcome?
    Far easier to provide a solution when we can see the file.

    BSB
    Here is a sample - the values are in the 'Data' tab, the value I want should be in the "Times Beaten" cell of the 'Summary' Tab

    [Refer to amended attached sample further down this thread]
    Last edited by BMAC86; 12-26-2016 at 08:27 PM.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Comparing two cells to provide lowest number.... but....

    Without you providing expected results it's difficult to provide a solution, but perhaps the below formula in H3 and copied down will help:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  6. #6
    Registered User
    Join Date
    12-26-2016
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    5

    Re: Comparing two cells to provide lowest number.... but....

    Unfortunately that doesn't seem to work, however I think you're on the right path. It seemed to work for the top two then reversed the result for the bottom two for some reason.

    EDIT: Having a further play around with =COUNTIFS(3:3, "<" &4:4) and similar variants is providing me with some very weird results, and also the exact same formula seems to give different results depending on what column it's pasted into.

    Anyway, I have updated and attached the sample spreadsheet with the expected results, as requested (sorry I was tired when I uploaded the first spreadsheet and forgot to include these).
    Attached Files Attached Files
    Last edited by BMAC86; 12-26-2016 at 09:03 PM.

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,923

    Re: Comparing two cells to provide lowest number.... but....

    Try this ...

    =SUMPRODUCT(--(Data!$B$3:$AFD$3>0),--(Data!$B4:$AFD4>Data!$B$3:$AFD$3))

  8. #8
    Registered User
    Join Date
    12-26-2016
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    5

    Re: Comparing two cells to provide lowest number.... but....

    Quote Originally Posted by Phuocam View Post
    Try this ...

    =SUMPRODUCT(--(Data!$B$3:$AFD$3>0),--(Data!$B4:$AFD4>Data!$B$3:$AFD$3))
    That works perfectly thank you.

    I'll be interested to learn what you have done there, it makes no sense to me now as I've never used that function before.

    Thanks a lot!

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,923

    Re: Comparing two cells to provide lowest number.... but....

    You're welcome!

+ 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: 7
    Last Post: 08-27-2015, 03:37 PM
  2. [SOLVED] Comparing 2 colums and if match replace or provide value from the other column
    By Dalton333 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-16-2014, 12:05 PM
  3. How do I code to return the lowest 2 number is a list of cells
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2013, 12:53 AM
  4. IF Statement that compares multiple cells and gives me the lowest number
    By williamfrus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-07-2012, 07:37 PM
  5. Replies: 0
    Last Post: 09-06-2012, 10:41 AM
  6. Comparing a List to extract the lowest number
    By Georgefluff in forum Excel General
    Replies: 1
    Last Post: 07-28-2008, 09:02 AM
  7. Selecting lowest number in a row of cells
    By thedaddy in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-08-2008, 02:27 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