IFS

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
694
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Regarding AA25.
IF Z25 and Z26 are 0, then ""

thank you

NBA.xlsm
ZAA
214 
226SAC
235Tie
245 
250Tie
260 
270Tie
280 
Favs
Cell Formulas
RangeFormula
Z21,Z27,Z25,Z23Z21=COUNTIF(N21,">"&N22)+COUNTIF(O21,">"&O22)+COUNTIF(P21,">"&P22)+COUNTIF(Q21,">"&Q22)+COUNTIF(R21,">"&R22)+COUNTIF(S21,">"&S22)+COUNTIF(T21,">"&T22)+COUNTIF(U21,">"&U22)+COUNTIF(V21,"<"&V22)+COUNTIF(W21,">"&W22)
AA21,AA27,AA23AA21=IFERROR(IF(Z21>Z22,A21,IF(Z21=Z22,"Tie","")),"")
Z22,Z28,Z26,Z24Z22=COUNTIF(N22,">"&N21)+COUNTIF(O22,">"&O21)+COUNTIF(P22,">"&P21)+COUNTIF(Q22,">"&Q21)+COUNTIF(R22,">"&R21)+COUNTIF(S22,">"&S21)+COUNTIF(T22,">"&T21)+COUNTIF(U22,">"&U21)+COUNTIF(V22,"<"&V21)+COUNTIF(W22,">"&W21)
AA22,AA28,AA26,AA24AA22=IFERROR(IF(Z22>Z21,A22,""),"")
AA25AA25=IFS(Z25>Z26,A25,Z25=Z26,"Tie",Z25=0,"")
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
How about
Excel Formula:
=IFS(Z25>Z26,A25,AND(Z25=0,Z26=0),"",Z25=Z26,"Tie")
but what should happen if Z26>Z25?
 
Upvote 0
Solution
How about
Excel Formula:
=IFS(Z25>Z26,A25,AND(Z25=0,Z26=0),"",Z25=Z26,"Tie")
but what should happen if Z26>Z25?
I had 2 different formulas for AA21 & AA22 (in pairs). So with your formula, I've combined the 2.
IFS($Z25>$Z26,$A25,$Z25<$Z26,"",AND($Z25=0,$Z26=0),"",$Z25=$Z26,"Tie")
thank you

Here is the outcome:
NBA.xlsm
ZAA
4PickTeams
51 
69LAC
77BRK
83 
97ORL
103 
119SAN
121 
133 
147CLE
158MIL
162 
171 
189IND
192 
207CHI
214 
226SAC
235Tie
245Tie
250 
260 
270 
280 
290 
300 
Favs
Cell Formulas
RangeFormula
Z5,Z29,Z27,Z25,Z23,Z21,Z19,Z17,Z15,Z13,Z11,Z9,Z7Z5=COUNTIF(N5,">"&N6)+COUNTIF(O5,">"&O6)+COUNTIF(P5,">"&P6)+COUNTIF(Q5,">"&Q6)+COUNTIF(R5,">"&R6)+COUNTIF(S5,">"&S6)+COUNTIF(T5,">"&T6)+COUNTIF(U5,">"&U6)+COUNTIF(V5,"<"&V6)+COUNTIF(W5,">"&W6)
AA5,AA29,AA27,AA25,AA23,AA21,AA19,AA17,AA15,AA13,AA11,AA9,AA7AA5=IFS($Z5>$Z6,$A5,$Z5<$Z6,"",AND($Z5=0,$Z6=0),"",$Z5=$Z6,"Tie")
Z6,Z30,Z28,Z26,Z24,Z22,Z20,Z18,Z16,Z14,Z12,Z10,Z8Z6=COUNTIF(N6,">"&N5)+COUNTIF(O6,">"&O5)+COUNTIF(P6,">"&P5)+COUNTIF(Q6,">"&Q5)+COUNTIF(R6,">"&R5)+COUNTIF(S6,">"&S5)+COUNTIF(T6,">"&T5)+COUNTIF(U6,">"&U5)+COUNTIF(V6,"<"&V5)+COUNTIF(W6,">"&W5)
AA6,AA30,AA28,AA26,AA24,AA22,AA20,AA18,AA16,AA14,AA12,AA10,AA8AA6=IFS($Z6>$Z5,$A6,$Z6<$Z5,"",AND($Z6=0,$Z5=0),"",$Z6=$Z5,"Tie")
 
Last edited:
Upvote 0
In that case you can combine them like
Excel Formula:
=IFS(Z25>Z26,A25,OR(Z25<Z26,AND(Z25=0,Z26=0)),"",Z25=Z26,"Tie")
 
Upvote 0
In that case you can combine them like
Excel Formula:
=IFS(Z25>Z26,A25,OR(Z25<Z26,AND(Z25=0,Z26=0)),"",Z25=Z26,"Tie")
I combined them for:
IFS($Z5>$Z6,$A5,$Z5<$Z6,"",AND($Z5=0,$Z6=0),"",$Z5=$Z6,"Tie")

I noticed you used OR, but they seem to do the same?? as I've tested both of them. Is there any difference?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,621
Messages
6,179,937
Members
452,949
Latest member
beartooth91

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