Board 8 > I need Excel help

Topic List
Page List: 1
Moonroof
11/29/18 5:46:35 PM
#1:


I cant find a solution online anywhere.

I have eight teams, each containing different variations of the same 12 people. Some games are 6v6, some are 4v4v4, and some are 3v3v3v3.

I am trying to calculate how many times each player plays on another players team (e.g., John plays with Carl 4 times, Tracy plays with Kim 2 times, etc.).

I color-coded my spreadsheet to indicate which and how many players are on each team, but I cannot figure out a way to translate this into a Pivot Table.

Anyone know?
... Copied to Clipboard!
STElNER
11/29/18 5:50:28 PM
#2:


can you show the data you have now so i can picture how it's set up?
... Copied to Clipboard!
Oxbridge
11/29/18 5:53:35 PM
#3:


If each team is listed in a row or column then just do =COUNTIFS(range, name1, range, name2)

You can extend this to see how many times 3 or more players are on the same team, just add the range and the next player.
---
Congratulations to BKSheikah, the Guru champion for the 2017 Best Year in Gaming contest.
... Copied to Clipboard!
Moonroof
11/29/18 5:54:55 PM
#4:


Its a 13x8 table. The top row is the name of each game. Each column contains the names of the 12 players, color-coded to show whos on whose team. I dont have a pic.
... Copied to Clipboard!
STElNER
11/29/18 5:55:58 PM
#5:


Well for a start, Excel can't count colours without addons, so you'll need to find another way to denote teams
... Copied to Clipboard!
Moonroof
11/29/18 5:56:18 PM
#6:


How do I give the color criterion to indicate whos on whose team?
... Copied to Clipboard!
Moonroof
11/29/18 5:56:43 PM
#7:


Oh. Such as what?
... Copied to Clipboard!
STElNER
11/29/18 5:57:07 PM
#8:


or you could with vba but it seems unnecessarily complicated compared to listing them differently
... Copied to Clipboard!
Moonroof
11/29/18 5:58:51 PM
#9:


I have been doing it manually so far but its rrally hard when I shuffle around players.
... Copied to Clipboard!
STElNER
11/29/18 6:02:46 PM
#10:


okay, i got a solution, one minute
... Copied to Clipboard!
Moonroof
11/29/18 6:11:45 PM
#11:


Thanks friend.
... Copied to Clipboard!
STElNER
11/29/18 6:48:17 PM
#12:


okay, that was actually really difficult and i'm surprised at the amount of time i spent on it.

first, you should set your games up like this:
MHntFvg

then, set up a helper column at the end, which concatenates all 6 potential names
q0E0c6U

you obviously then need to set up this table for your results:
7EQFPbp

then enter this formula in the first cell and fill across and down:
=COUNTIFS($H:$H,"*"&$M2&"*",$H:$H,"*"&N$1&"*")

where H is the helper column, and your results table starts in column M (the names)
... Copied to Clipboard!
STElNER
11/29/18 6:53:22 PM
#13:


there's probably more elegant ways thinking about it now - the big breakthrough that helped me figure it all out was concatenating the names. i think if you can get the names all into one string a lot of solutions could present themselves.
... Copied to Clipboard!
tyder21
11/29/18 6:59:51 PM
#14:


That's a very clever solution. I probably would've turned immediately to VBA.
---
... Copied to Clipboard!
Moonroof
11/29/18 7:00:44 PM
#15:


Whoaaaaa. Okay, awesome! I will test it out improve when I can get back to my computer. Ill probably have questions.

Thanks, friend.
... Copied to Clipboard!
Moonroof
11/29/18 7:05:16 PM
#16:


So what does concatenating do?
... Copied to Clipboard!
STElNER
11/29/18 7:10:51 PM
#17:


concatenate just puts a bunch of text strings together - so the cell is "MoonroofSTELNEROxbridgeSBAllen " in that first example. then the formula searches each of those cells for both names.
... Copied to Clipboard!
STElNER
11/29/18 7:12:34 PM
#18:


and as you can see by the formula in the screenshot, i used & instead of the CONCATENATE function - i think CONCATENATE functions weird when you select a range. so the formula there is just =B2&C2&D2&E2&F2&G2
... Copied to Clipboard!
Moonroof
11/29/18 7:12:39 PM
#19:


Ingenious! I knew I could rely on you.
... Copied to Clipboard!
Moonroof
11/29/18 7:13:32 PM
#20:


So do I change the formula at all as I proceed downward?
... Copied to Clipboard!
STElNER
11/29/18 7:14:57 PM
#21:


the formula that I posted will work when filled down and across as long as you enter it in cell N2
... Copied to Clipboard!
tyder21
11/29/18 7:16:15 PM
#22:


Hopefully no one has a name that's a subset of someone else's, haha. Would need some separating character then.
---
... Copied to Clipboard!
Moonroof
11/29/18 7:16:30 PM
#23:


Sorry. So I put it in the first cell or N2 then? Do I put it in every single blank cell within the last screen shot? I cant see which is N2 in your pic.
... Copied to Clipboard!
STElNER
11/29/18 7:18:00 PM
#24:


yeah, that is the first blank cell (where SBAllen meets SBAllen). and yeah tyder, i thought about that. hope that's not the case cause i worked far longer on this than i should have already!
... Copied to Clipboard!
STElNER
11/29/18 7:18:38 PM
#25:


and if you put it in the first cell and fill across and down, the way the formula is set up it will adjust relative cell references as you go
... Copied to Clipboard!
STElNER
11/29/18 7:19:11 PM
#26:


if i'm not the best excel user on the board i have nothing
... Copied to Clipboard!
Moonroof
11/29/18 7:21:34 PM
#27:


So I just copy and paste the same formula in each and every cell?
... Copied to Clipboard!
Ringworm
11/29/18 7:23:38 PM
#28:


Highlight the whole table area and press ctrl-r and ctrl-d to fill the formula right and down.
---
~ Ringworm ~
Congrats to BKSheikah - Guru champion - Best Year in Gaming
... Copied to Clipboard!
Moonroof
11/29/18 7:27:50 PM
#29:


Niiiiice.
... Copied to Clipboard!
STElNER
11/29/18 7:31:31 PM
#30:


ah yeah sorry - you can also drag the handle at the bottom right of a cell to fill

yoatBt1
... Copied to Clipboard!
Moonroof
11/29/18 7:33:01 PM
#31:


I cant wait to test this out tomorrow.
... Copied to Clipboard!
Moonroof
11/30/18 9:27:22 AM
#32:


I did it :)

Thanks again, friend!
... Copied to Clipboard!
STElNER
11/30/18 10:02:24 AM
#33:


glad i helped!
... Copied to Clipboard!
SeabassDebeste
11/30/18 10:07:03 AM
#34:


i love this topic so much. only thing i don't love is that the solution is already present so i don't get to solve it myself!
---
yet all sailors of all sorts are more or less capricious and unreliable - they live in the varying outer weather, and they inhale its fickleness
... Copied to Clipboard!
Moonroof
11/30/18 10:16:57 AM
#35:


The neat thing too is that as I continue to add more games, all I have to do is swap some names around and the formula automatically updates the count for me.

I created a Cell Highlight rule to show me when people played with other people 0 times or greater than 5 times. I want the teams to be even, but I also want everyone to play with each other at least once (but not too many times either!). So its tricky, hence the need for this chart.
... Copied to Clipboard!
Cavedweller2000
11/30/18 10:32:35 AM
#36:


SeabassDebeste posted...
i love this topic so much. only thing i don't love is that the solution is already present so i don't get to solve it myself!

Same. Would definitely gone down the concatenate route like Steiner
---
This is my signature.
... Copied to Clipboard!
STElNER
11/30/18 10:40:42 AM
#37:


Moonroof posted...
The neat thing too is that as I continue to add more games, all I have to do is swap some names around and the formula automatically updates the count for me.


i've always found robustness the most important thing in creating an excel solution!
... Copied to Clipboard!
SuperNiceDog
11/30/18 10:41:15 AM
#38:


did it work?
---
GJ BK_Sheikah
... Copied to Clipboard!
NFUN
11/30/18 10:44:55 AM
#39:


SuperNiceDog posted...
did it work?

Moonroof posted...
I did it :)

Thanks again, friend!

christ
---
Life before death. Strength before weakness. Journey before destination.
... Copied to Clipboard!
STElNER
11/30/18 10:46:18 AM
#40:


come on man you can't expect people to read posts
... Copied to Clipboard!
HanOfTheNekos
11/30/18 12:39:49 PM
#41:


Did Stelner and Moonroof just become best friends?
---
"Bordate is a pretty shady place, what with the gangs, casinos, evil corporations and water park." - FAHtastic
... Copied to Clipboard!
Shaduln
11/30/18 12:40:23 PM
#42:


They already were.
---
Emperor of Board 8
Posted using GameFlux
... Copied to Clipboard!
Topic List
Page List: 1