Easy Help

VanCleave8

New Member
Joined
Dec 29, 2016
Messages
14
Hey guys first timer here, as you can tell Ive struggled to insert a picture, Ive been trying for an hour. Hopefully, we can get by with this. So im creating a golf stats sheet to share with buddies. I want to create a Stroke Differential column. Here is what Id like to accomplish...I want my formula in M4. I need it to do this...anytime a name in column E matches I4 "BOGEY" then take the difference from Column D and Column F. So the math would look like 99-84=15....77-65=12...15+12=27 and continue that for the rest of the sheet. Then I need to be able to copy that formula down Column M to each golfer. In the actual sheet there is a blank column in H as D-G and I-M are their own tables. Any help I would greatly appreciate, Ive been screwing around trying to make this work for hours and cant seem to get it to work past the first row. Sorry again about not having a screenshot, hopefully this still works.

JVC


DEFGIJKLM
3MY SCOREOPPONENTOPP. SCORERESULTOPPONENTWONLOSSSTREAKSTROKE DIFF
499BOGEY84LBOGEY
574JMACK88WJMACK
677BOGEY65LBG
778CAPTAIN78TCAPTAIN

<tbody>
</tbody>

DISREGARD EVERYTHING BELOW THIS


STROKE DIFF
4 99BOGEY84LBOGEY
WJMACK
65LBG
7 7878TCAPTAIN

<tbody>
</tbody>



<tbody>
</tbody>
 
So you only want a result based on 'BOGEY' ? Not for other names?
Do you want eg 15 and 27 to be as in my previous post but other rows blank?
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Whiz, yes that's correct but I need the formula to run down the entire E column. So that formula needs to run E6 because it says bogey also. Then add that answer to 15 making the new answer 27. That make sense?
It was not a question. The formula you want is in the box where it says Code:
 
Upvote 0
Just in case ...
Excel Workbook
DEFGHIJKLM
3*********????
499Bogey84******15
574Jmack88*******
677Bogey65******27
778Captain78*******
870Bogey80******17
Sheet1


NB forget Ctrl + Shift + Enter for either. Not necessary.
 
Upvote 0
In case somebody does not use all caps in column E.

Code:
=IF(UPPER(E4)="BOGEY",D4-F4,"")

formula would be posted in M4 in this case.
 
Last edited:
Upvote 0
Just in case ...
Sheet1

*DEFGHIJKLM
3*********????
499Bogey84******15
574Jmack88*******
677Bogey65******27
778Captain78*******
870Bogey80******17

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:16px;"><col style="width:16px;"><col style="width:16px;"><col style="width:16px;"><col style="width:16px;"><col style="width:16px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
M4=IF(E4="BOGEY",SUMPRODUCT((E$4:E4=E4)*(D$4:D4-F$4:F4)),"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

NB forget Ctrl + Shift + Enter for either. Not necessary.



Tony,

You got it man THANK YOU!! This is how the formula came out to be exact, but you had it down.

=IF(E4=I4,SUMPRODUCT((E$4:E100=E4)*(D$4:D100-F$4:F100)),"0")
 
Upvote 0
I lied there were still issues when I started changing names and adding different names to the list. Here is a more comprehensive look at the entire tab...

Imagine after the Result column there is a page break and a new table. So M4 would need to return (D4-F4)+(D6-F6)+(D13-F13)+(D14-F14) = 9
M5 would need to return (D5-F5)+(D16-F16) = 4
M6 would return 0 because Ive never played BG.
and so on and so on down the list.

Hopefully, this bigger example makes it a little easier.

A
B
C
D
E
F
G
H
I
J
K
L
M
2
MY RECENT OPPONENTS
VS. OPPONENT ALL TIME
3
DATELOCATIONMY SCOREOPPONENTOPP. SCORERESULTOPPONENTWLSTREAKSTROKE DIFF
4
12.31Sun Willows99BOGEY84LBOGEY22W2
5
12.29Sun Willows74JMACK88WJMACK11L1
6
12.28Sun Willows77BOGEY65LBG



7
12.27Sun Willows78JVC78TCAPTAIN



8
12.25Sun Willows78JVC87WPOSEIDON



9
12.11Sun Willows86ANDY67LJVC10W1
10
11.31Sun Willows88RICKY88TRICKY00

11
11.22Sun Willows78FLUFF87WJIM ROCK



12
11.21Sun Willows97FERGIE94LANDY02L2
13
10.22Sun Willows73BOGEY84WYETI



14
10.11Sun Willows87BOGEY94WFLUFF



15
9.21Sun Willows92ANDY88LFERGIE01

16
9.11Sun Willows97JMACK79LMITCHIE



TOTAL46


<tbody>
</tbody>
 
Upvote 0
Now that helps!

Try...
Excel Workbook
BCDEFGHIJKLM
1MY RECENT OPPONENTS
2VS. OPPONENT ALL TIME
3DATELOCATIONMY SCOREOPPONENTOPP. SCORERESULTOPPONENTWLSTREAKSTROKE DIFF
412.31Sun Willows99BOGEY84LBOGEY22W29
512.29Sun Willows74JMACK88WJMACK11L14
612.28Sun Willows77BOGEY65LBG
712.27Sun Willows78JVC78TCAPTAIN
812.25Sun Willows78JVC87WPOSEIDON
912.11Sun Willows86ANDY67LJVC10W1-9
1011.31Sun Willows88RICKY88TRICKY000
1111.22Sun Willows78FLUFF87WJIM ROCK
1211.21Sun Willows97FERGIE94LANDY02L223
1310.22Sun Willows73BOGEY84WYETI
1410.11Sun Willows87BOGEY94WFLUFF-9
159.21Sun Willows92ANDY88LFERGIE013
169.11Sun Willows97JMACK79LMITCHIE
179.11Augusta68Tiger68TIGER0
Sheet1
 
Upvote 0
PERFECT!! And this time im not lying. Figured it would be easier with a bigger example of what I was trying to achieve.

If your bored, is there any way to get column L to auto populate? Those in the example were entered manually. Columns J and K are good to go with the COUNTIFS function.

Thanks again Tony, and i cant wait to see Tiger in April!!

Jake
 
Upvote 0
What the devil else would I do on new year's eve?

Copy this into L4
Definitely an array formula requiring confirmation with Ctrl + Shift + Enter to add the curly braces.
Then drag down.

Code:
=IF((J4+K4)>0,IF(MAX(($E$4:$E$100=I4)*($G$4:$G$100="L")*ROW($G$4:$G$100))>MAX(($E$4:$E$100=I4)*($G$4:$G$100="W")*(ROW($G$4:$G$100))),"L","W")&MAX(SUMPRODUCT(($E$4:$E$100=I4)*($G$4:$G$100="L")*(ROW($G$4:$G$100)>MAX(($E$4:$E$100=I4)*($G$4:$G$100="W")*(ROW($G$4:$G$100))))),SUMPRODUCT(($E$4:$E$100=I4)*($G$4:$G$100="W")*(ROW($G$4:$G$100)>MAX(($E$4:$E$100=I4)*($G$4:$G$100="L")*ROW($G$4:$G$100))))),"")

Happy New Year !!
 
Last edited:
Upvote 0
Tony,

Happy New Year,

That W/L streak worked great however is was pulling information from the bottom not the top. I intend on adding new data to the top of the list so the most recent match is always at the top. Any chance there is an easy fix for this??

Thanks much,

Jake
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,400
Members
449,156
Latest member
LSchleppi

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