Using 3 cell choices resulting in 1 overall choice

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
660
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Looking for a correct value involving 4 different cell values.
Here is the worksheet.
A423 wants the correct answer, based on G424:G427 cell results.
If any cell in range (G424:G427) = a "L", then A423 is "L".
If any cell in range (G424:G427) = is "" or "W", then "pending".
If ALL cells in range (G424:G427) = "W", then "W".
Currently if any cell in range (G424:G427) is blank or not filled, its "pending".
Solution = only include in the range populated cells from H424:H427. 4 cells will always be the range, whether there blank of not.
I just want it to include cells being used, not necessarily the entire range.
The current formula works when the entire range is filled.
Thank you.

Wager Practice Macro.xlsm
ABCDEFGHIJK
423PendingNFLParlay$ 5.00$ 6.56
424ParlayWDENJAX*
425ParlayWLARCIN*
426Parlay0   
427Parlay0   
428$ 13.65
NFL
Cell Formulas
RangeFormula
A423A423=IF(COUNTIF($G424:$G427,"L")>0,"L",IF(COUNTIF($G424:$G427,0)>0,"Pending","W"))
K423K423=IFERROR(IF($A423=0,$F423*-1,IF($A423="W",$G423,IF($A423="L",$F423*-1,""))),"")
G424:G427G424=IFNA(INDEX('[NFL.xlsm]Weekly Picks'!$D$4:$D$35,MATCH($H424,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),0)
H424:H427H424=IFERROR(LOOKUP(2, 1/((COUNTIF($H$423:$H423,'[NFL.xlsm]Weekly Picks'!$H$4:$H$35)=0)*('[NFL.xlsm]Weekly Picks'!$H$4:$H$35<>"")*('[NFL.xlsm]Weekly Picks'!$F$4:$F$35="*")),'[NFL.xlsm]Weekly Picks'!$H$4:$H$35),"")
I424:I427I424=IFERROR(IF(1=MOD(MATCH($H424,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH($H424,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH($H424,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1)),"")
J424:J427J424=IFERROR(INDEX('[NFL.xlsm]Weekly Picks'!$F$4:$F$35,MATCH($H424,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),"")
K428K428=SUM(K418:K427)
 
Perfect. Thank you.
Hello,
Using your formula, is there a way to show blank in A174 if nothing is listed in $H175:H$178? Currently its showing "W".
Wagers.xlsm
ABCDEFGHIJ
174WNFLParlay$ 5.00$ 6.56 
175Parlay0   
176Parlay0   
177Parlay0   
178Parlay0   
NFL
Cell Formulas
RangeFormula
A174A174=IF(COUNTIF($G175:$G178,"L"),"L",IF(COUNTIF($G175:$G178,"W")=COUNTIF($H175:$H178,"?*"),"W","Pending"))
H174H174=IFERROR(LOOKUP(2, 1/((COUNTIF($H$169:$H173, '[NFL.xlsm]Weekly Picks'!$H$4:$H$35)=0)*( '[NFL.xlsm]Weekly Picks'!$H$4:$H$35<>"")*('[NFL.xlsm]Weekly Picks'!$F$4:$F$35<>"p")), '[NFL.xlsm]Weekly Picks'!$H$4:$H$35),"")
G175G175=IFERROR(IFNA(INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),0),"")
H175:H178H175=IFERROR(LOOKUP(2, 1/((COUNTIF($H$174:$H174,'[NFL.xlsm]Weekly Picks'!$H$4:$H$35)=0)*('[NFL.xlsm]Weekly Picks'!$H$4:$H$35<>"")*('[NFL.xlsm]Weekly Picks'!$F$4:$F$35="p")),'[NFL.xlsm]Weekly Picks'!$H$4:$H$35),"")
I175:I178I175=IFERROR(IF(1=MOD(MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1)),"")
J175:J178J175=IFERROR(INDEX('[NFL.xlsm]Weekly Picks'!$I$4:$I$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),"")
G176:G178G176=IFNA(INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H176,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),0)


This is good.
Wagers.xlsm
ABCDEFGHIJ
174PendingNFLParlay$ 5.00$ 6.56 
175Parlay0NEMIA-
176Parlay0PHIDET-
177Parlay0   
178Parlay0   
NFL
Cell Formulas
RangeFormula
A174A174=IF(COUNTIF($G175:$G178,"L"),"L",IF(COUNTIF($G175:$G178,"W")=COUNTIF($H175:$H178,"?*"),"W","Pending"))
H174H174=IFERROR(LOOKUP(2, 1/((COUNTIF($H$169:$H173, '[NFL.xlsm]Weekly Picks'!$H$4:$H$35)=0)*( '[NFL.xlsm]Weekly Picks'!$H$4:$H$35<>"")*('[NFL.xlsm]Weekly Picks'!$F$4:$F$35<>"p")), '[NFL.xlsm]Weekly Picks'!$H$4:$H$35),"")
G175G175=IFERROR(IFNA(INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),0),"")
H175:H178H175=IFERROR(LOOKUP(2, 1/((COUNTIF($H$174:$H174,'[NFL.xlsm]Weekly Picks'!$H$4:$H$35)=0)*('[NFL.xlsm]Weekly Picks'!$H$4:$H$35<>"")*('[NFL.xlsm]Weekly Picks'!$F$4:$F$35="p")),'[NFL.xlsm]Weekly Picks'!$H$4:$H$35),"")
I175:I178I175=IFERROR(IF(1=MOD(MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0),2),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)+1),INDEX('[NFL.xlsm]Weekly Picks'!$A$4:$A$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,0)-1)),"")
J175:J178J175=IFERROR(INDEX('[NFL.xlsm]Weekly Picks'!$I$4:$I$35,MATCH($H175,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),"")
G176:G178G176=IFNA(INDEX('[NFL.xlsm]Weekly Picks'!$E$4:$E$35,MATCH($H176,'[NFL.xlsm]Weekly Picks'!$A$4:$A$35,FALSE)),0)
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about
Excel Formula:
=IF(COUNTIF($H175:$H178,"?*")=0,"",IF(COUNTIF($G175:$G178,"L"),"L",IF(COUNTIF($G175:$G178,"W")=COUNTIF($H175:$H178,"?*"),"W","Pending")))
 
Upvote 0
How about
Excel Formula:
=IF(COUNTIF($H175:$H178,"?*")=0,"",IF(COUNTIF($G175:$G178,"L"),"L",IF(COUNTIF($G175:$G178,"W")=COUNTIF($H175:$H178,"?*"),"W","Pending")))
Perfect. Thank you.
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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