In the file I have identified the wins and losses at home for a team. I am having problem getting them to sum properly. I want to show a running total for wins at home.
Jim O
In the file I have identified the wins and losses at home for a team. I am having problem getting them to sum properly. I want to show a running total for wins at home.
Jim O
Last edited by JO505; 02-12-2015 at 03:50 PM.
Calculates max "home win" win streak:
Confirm with CSE.![]()
=MAX(FREQUENCY(IF($K$2:K55="Home Win",ROW($K$2:K55)),IF($K$2:K55<>"Home Win",ROW($K$2:K55))))
Spread the love, add to the Rep
"None of us are as smart as all of us."
Hi Jim,
See if Column L and M give you what you want. They are running totals of Wins and then Wins at home. If not what you want, keep bumping this question. AND give us what the correct answer is. BTW - you may need the 2010 version of Excel to do a CountIFS() function as 2000 may not have had it yet.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Another way:
Row\Col K L M 1Home Win Streak Results 2home loss 0L2: =CHOOSE(MATCH(K2, {"away","home loss","home win"}, 0), N(L1), 0, N(L1)+1) 3away 0 4away 0 5away 0 6away 0 7home win 1 8away 1 9home win 2 10home loss 0 11home loss 0 12away 0 13home loss 0 14home win 1 15home win 2 16home win 3 17home win 4 18away 4 19away 4 20away 4 21home win 5 22away 5 23away 5 24home win 6 25home loss 0
Entia non sunt multiplicanda sine necessitate
L2=IF(K2<>"home win","",SUM(INDEX(((K$2:K2="home win")*ROW(K$2:K2)>=MAX((K$2:K2="home loss")*ROW(K$2:K2)))*1,0)))
TRY THIS AND COPY TOWARDS DOWN
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
Conditional formatting can suppress display ...
Row\Col K L M 1Home Win Streak Results 2home loss 0L2: =CHOOSE(MATCH(K2, {"away","home loss","home win"}, 0), N(L1), 0, N(L1)+1) 3away 0 4away 0 5away 0 6away 0 7home win 1 8away 1 9home win 2 10home loss 0 11home loss 0 12away 0 13home loss 0 14home win 1 15home win 2 16home win 3 17home win 4 18away 4 19away 4 20away 4 21home win 5 22away 5 23away 5 24home win 6 25home loss 0
Thank you all for your input.
I like Sivas solution because it is very clean and only displays the wins once and shows all other results as "".
Again thank much to all.
Jim O
You are welcome and thanks for your feedback
I applied the formulas to another data set and I have run into an issue I can't find out what is wrong. For some reason in this set the sequence is counting the data from "away" games, see columns "S" & "T".
Jim O
Row\Col R S T 3Home Rec Home Streak 4home win 1S4: =CHOOSE(MATCH(R4, {"away","home loss","home win"}, 0), N(S3), 0, N(S3)+1) 5home win 2 6home win 3 7home win 4 8home win 5 9home win 6 10home win 7 11home win 8 12away 8 13home win 9 14away 9 15home win 10 16home win 11 17home win 12 18away 12 19home win 13 20away 13 21away 13 22home win 14 23away 14 24home win 15 25home win 16
SHG,
Still having an issue, see attached.
Jim O
I don't see the problem - the shg column is correct:
Row\Col R S T 3Home Rec Home Streak SHG 4home win 1 1 5home win 2 2 6home win 3 3 7home win 4 4 8home win 5 5 9home win 6 6 10home win 7 7 11home win 8 8 12away 8 13home win 10 9 14away 9 15home win 12 10 16home win 13 11 17home win 14 12 18away 12
As I said, you can use conditional formatting to suppress display of the numbers you don't want to see.
Last edited by shg; 02-12-2015 at 08:03 PM.
Whats is the best way to not show duplicate values in any single series, i.e. 7,8,8,9,9,10,11,12,12. Every time I try to add something like, IF something then "", the formula does not work. Any conditional format or something to display 7,8,9,10 etc?
Its not that big of a deal but I am just curious.
Jim O
Cell "S7" is not returning the correct value. Any ideas as to thr problem?
Jim O
If column R <> "home win", format column T as ;;;
You are a stubborn guy
Row\Col R S T 3Home Rec SHG 4home win 1S4: =CHOOSE(MATCH(R4, {"away","home loss","home win"}, 0), N(S3), 0, N(S3)+1) 5home win 2 6away 2 7home win 3should be 3 8home loss 0 9away 0 10away 0 11home win 1 12home win 2 13away 2 14home loss 0 15away 0 16home loss 0
Did you look at my last attachment?
Jim O
Here is my file snip.
Jim O
=IF(R4<>"home win","",COUNTIF(R4:INDEX(R:R,MAX(INDEX((R$4:R4="home loss")*ROW(R$4:R4),0),1)),R4))
Try this formula and copy towards down
i hope it will solve your problem
It is working now. Thank you shg and all for your time and patience with this problem and me. I apologize if I came off as too stubborn, the formula was not giving me the correct data and I had no idea why. I was as frustrated with myself for not understanding why as I was with the formula itself for not working.
Again thanks for your help
Jim O
You're welcome.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks