Greater than but not equal to for Google Sheets.

joshparry6

New Member
Joined
Jun 21, 2023
Messages
7
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. MacOS
Hi,

I need help with a formula for when a cell is greater than other cells in a range, but not equal to any of them - a uniquely higher number.

This is for a golf betting game whereby the winner of each hole wins however many yards the hole is in pence.

If no one wins the hole outright the money will carry over to the next hole (I'm comfortable with that).

The formula I have in G3 needs to output '0' or 'blank' as golfer A & B both have the same score - meaning the money will then roll over to the next hole.


Screenshot 2023-06-21 at 18.45.18.png


What would the formula in cell D4 need to be?


Thanks in advance!
 
Last edited by a moderator:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
In future when posting questions for apps other than Excel, you need to post the question in the General Discussion & Other Applications section of the board & make it clear what app you're using.
Thanks
 
Upvote 0
How about
Excel Formula:
=IF(COUNTIFS(C3:F3,MAX(C3:F3))=1,IF(C3=MAX(C3:F3),B3/100,0),0)
 
Upvote 0
How about
Excel Formula:
=IF(OR(G2="N",COUNTIFS(C3:F3,MAX(C3:F3))>1),0,IF(C3=MAX(C3:F3),B3/100,0))
 
Upvote 0
What about the following to take into account any accumulated money?
Formula in G3 and drag across and down.

Book1
ABCDEFGHIJ
1ScoreMoney
2HoleYardageABCNABCN
3130831003.08000
42425021004.2500
5339432203.94000
6412333330000
7532444440000
8656422320010.110
Sheet2
Cell Formulas
RangeFormula
G3:J8G3=IF(AND(COUNTIF($C3:$F3,MAX($C3:$F3))=1,C3=MAX($C3:$F3)),(SUM($B$3:$B3)/100)-SUM($G$2:$J2),0)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
What about the following to take into account any accumulated money?
Formula in G3 and drag across and down.

That's perfect, I was struggling to figure out how to calculate the accumulated money. Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,215,655
Messages
6,126,054
Members
449,283
Latest member
GeisonGDC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top