Have "L"oss override "W"in or 0

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I've added a formula for the W/L (G92 & 93) for each team and it shows 0 when there is no W or L. How can I get it to say "A Blank" (A91) when it shows 0 (G92, G93)?
The A91 formula works when there is no formula in G92 & G93.
Here is the data:

Wagers.xlsm
ABCDEFGHI
91WNFLParlay$ 5.00$ 4.00
920KCCLE
930LARCHI
NFL
Cell Formulas
RangeFormula
A91A91=IF(COUNTIF($G92:$G93,"L")>0, "L",IF(COUNTIF($G92:$G93,"")>0,"a blank","W"))
G92:G93G92=INDEX('C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H92,'C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0))
I92:I93I92=IF(1=MOD(MATCH(H92,'C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'C:\Users\gtd52\Documents\Sports-Wagering\[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1))
 
In that case just swap the two countifs round.
Done.

This should be "L". "L" overrides ALL.
Wagers.xlsm
ABCDEFGHI
91a blankNFLParlay$ 5.00$ 4.00
92LKCCLE
930LARCHI
NFL
Cell Formulas
RangeFormula
A91A91=IF(COUNTIF($G92:$G93,0)>0,"a blank",IF(COUNTIF($G92:$G93,"L")>0,"L","W"))
G92:G93G92=INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0))
I92:I93I92=IF(1=MOD(MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1))


This is Good.
Wagers.xlsm
ABCDEFGHI
91a blankNFLParlay$ 5.00$ 4.00
92WKCCLE
930LARCHI
NFL
Cell Formulas
RangeFormula
A91A91=IF(COUNTIF($G92:$G93,0)>0,"a blank",IF(COUNTIF($G92:$G93,"L")>0,"L","W"))
G92:G93G92=INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0))
I92:I93I92=IF(1=MOD(MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1))


This is Good.
Wagers.xlsm
ABCDEFGHI
91a blankNFLParlay$ 5.00$ 4.00
920KCCLE
930LARCHI
NFL
Cell Formulas
RangeFormula
A91A91=IF(COUNTIF($G92:$G93,0)>0,"a blank",IF(COUNTIF($G92:$G93,"L")>0,"L","W"))
G92:G93G92=INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0))
I92:I93I92=IF(1=MOD(MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1))


This is Good.
Wagers.xlsm
ABCDEFGHI
91WNFLParlay$ 5.00$ 4.00
92WKCCLE
93WLARCHI
NFL
Cell Formulas
RangeFormula
A91A91=IF(COUNTIF($G92:$G93,0)>0,"a blank",IF(COUNTIF($G92:$G93,"L")>0,"L","W"))
G92:G93G92=INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0))
I92:I93I92=IF(1=MOD(MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH(H92,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1))
 
Upvote 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.
You haven't changed the formula.
 
Upvote 0
You just need to swap the countifs like
Excel Formula:
=IF(COUNTIF($G92:$G93,"L")>0,"L",IF(COUNTIF($G92:$G93,"0")>0,"a blank","W"))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0
=LOOKUP(9,FIND({"W","L",0},G92&G93),{"W","L","a blank"})

or
=LOOKUP(2,1/COUNTIFS(G92:G93,{"W","L",0}),{"W","L","a blank"})
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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