calculated result based on cell data? Pretty complicated...

Natenator

New Member
Joined
Dec 14, 2017
Messages
3
Hi all,

Long time lurker and first time poster. I regret to make my introduction one where I ask (beg) for help but am at a loss achievable results.

I'm compiling some football stats (not soccer). For anyone not familiar with football you have 4 downs to get a min. of 10 yards to achieve a first down. You could be 1st down and 10 yards to go, get 12 yards and you have a first down. Or you could be 3rd down and 12 yards to go, get 15 yards and achieve a first down. Or you could be 2nd down with 2 yards to go, get 3 yards and have a first down.

I am trying to populate a table with whether or not a first down was achieved (converted) based on the down, distance to go, and yardage gained on that play information is already in the table. I am praying someone here may be able to help?

Here's an example of some data in my file:

DN DIST GAIN CONVERTED
1 10 14 YES
1 10 3 NO
2 7 8 YES
1 10 5 NO
2 5 14 YES
1 10 3 NO
2 7 21 YES
2 22 0 NO
1 10 17 YES
1 10 0 NO
2 10 14 YES
1 10 9 NO
2 1 5 YES
1 10 75 YES
1 10 1 NO
2 9 8 NO
3 1 3 YES
1 10 6 NO
2 4 16 YES
1 10 0 NO

I manually wrote in whether the down was converted or not but ideally I am looking for a formula to help achieve that but I am pretty lost on how to achieve that :( ANY help would be appreciated.

This one file has 10K rows which is why I only entered a sample of the data so you can see what I am working with.

Thank you!!

Regards,
Nate
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I cannot edit my posts it seems or I would have cleaned up the look of the sample table. Sorry for it looking so bad.
 
Upvote 0
Excel 2010[TABLE="class: grid, width: 400"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]DN[/TD]
[TD]Dist[/TD]
[TD]Gain[/TD]
[TD]CONVERTED[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]14[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]3[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]8[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]5[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]14[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]3[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]21[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]0[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]17[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]0[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]14[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]9[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]5[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]75[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]8[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]6[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]16[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]0[/TD]
[TD]NO[/TD]
[/TR]
</tbody>[/TABLE]
Sheet5

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]=IF(C2>=B2,"YES","NO")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Copy the formula down.
 
Upvote 0
Excel 2010[TABLE="class: grid, width: 400"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]DN[/TD]
[TD]Dist[/TD]
[TD]Gain[/TD]
[TD]CONVERTED[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]14[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]3[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]8[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]5[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]14[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]3[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]21[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]0[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]17[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]0[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]14[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]9[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]5[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]75[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]8[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]3[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]6[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]16[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]0[/TD]
[TD]NO[/TD]
[/TR]
</tbody>[/TABLE]
Sheet5

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="width: 10"]D2[/TH]
[TD="align: left"]=IF(C2>=B2,"YES","NO")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Copy the formula down.

Oh my god. I cannot believe I didn't think of that myself. Forest from the trees issue of looking at things for too long :(

Thank you and apologies for wasting your time with something so trivial.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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