Returning Value Based on Various Criteria

kanemitchell99

New Member
Joined
Jul 24, 2018
Messages
7
Office Version
  1. 2021
Platform
  1. Windows
Hi,

Wasn't too sure what to name the title so apologies if it is not correct.

I need to analyse the frequency that a particular promo for a betting agency pays out on Australian Rules Footy. The promo is if your team gets 24 points up at any stage during the game but looses the game, the bet will still pay out.

I have the data of what the scores were for each team at each quarter for the last 7 years. I need to return YES if at any stage a team was winning by 24 points at a quarter break and went on to loose, otherwise NO.

In my head the pseudocode for this would be something like IF(team A=team B - 24pts (at Q1)) OR (team A=Team B - 24pts (at Q2)) OR (team A=team B - 24pts (at Q3)) AND (team A<team B (final score)) return TRUE otherwise FALSE)

I think this is a pretty simple formula to work this out but I am relatively inexperienced with excel hence why I have come here to ask some experts!!

I hope this question makes sense!

Thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the MrExcel board!

Could you show us how the data is laid out by posting a small set of copyable dummy sample data? My signature block below has a link with suggestions for how to do that.
 
Upvote 0
Hi Peter,

I hope the below table is what you were asking for and hopefully it helps!

You can see that in match 4, Port Adelaide were up by more than 24 points in the 2nd quarter and went on to loose so this would be a case where the formula should return YES. The others should all return NO.


[TABLE="class: grid, width: 500"]
<colgroup><col style="width:48pt" width="64" span="2"> <col style="mso-width-source:userset;mso-width-alt:4278;width:88pt" width="117"> <col style="width:48pt" width="64" span="4"> </colgroup><tbody>[TR]
[TD="width: 64"]Round
[/TD]
[TD="width: 64"]Match[/TD]
[TD="width: 117"]Team[/TD]
[TD="width: 64"]Q1 Score[/TD]
[TD="width: 64"]Q2 Score[/TD]
[TD="width: 64"]Q3 Score[/TD]
[TD="width: 64"]Q4 Score[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1
[/TD]
[TD]Carlton[/TD]
[TD]27[/TD]
[TD]46[/TD]
[TD]76[/TD]
[TD]89[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]Richmond[/TD]
[TD]45[/TD]
[TD]83[/TD]
[TD]101[/TD]
[TD]132[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]Collingwood
[/TD]
[TD]11[/TD]
[TD]51[/TD]
[TD]65[/TD]
[TD]86[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]Adelaide
[/TD]
[TD]31[/TD]
[TD]55[/TD]
[TD]90[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]St Kilda[/TD]
[TD]38[/TD]
[TD]50[/TD]
[TD]63[/TD]
[TD]90
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]Melbourne[/TD]
[TD]15[/TD]
[TD]58[/TD]
[TD]97[/TD]
[TD]120[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4[/TD]
[TD]Sydney[/TD]
[TD]27
[/TD]
[TD]32
[/TD]
[TD]79
[/TD]
[TD]110
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4[/TD]
[TD]Port Adelaide[/TD]
[TD]26
[/TD]
[TD]59
[/TD]
[TD]67
[/TD]
[TD]102
[/TD]
[/TR]
</tbody>[/TABLE]


Thanks,
Kane.
 
Upvote 0
I hope the below table is what you were asking for and hopefully it helps!
Yes, exactly what I was after, thanks. :)

Try this formula, copied down.

Excel Workbook
ABCDEFGH
1RoundMatchTeamQ1 ScoreQ2 ScoreQ3 ScoreQ4 Score
211Carlton27467689No
311Richmond4583101132
412Collingwood11516586No
512Adelaide315590100
613St Kilda38506390No
713Melbourne155897120
814Sydney273279110
914Port Adelaide265967102Yes
AFL
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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