How to Aggregate Strings Using Google Sheets Pivot Table Calculated Field - excel-formula

I have a Google spreadsheet in which I recorded text evaluations of various teams made by individuals. The sheet, named Data, looks like this
Col A Col B Col C
Rater | Team | Feedback
-------------------------
r1 Jim | A | Great
r2 Jane | A | Sucks
r3 Kate | A | Fabulous
r4 Jim | B | Mhm
r5 Jane | B | Wow
r6 Kate | B | Lousy
I am using the pivot table "Calculated field" option to generate a new table with an aggregation of the feedback for each team like this
Team | Feedback
A | Great, Sucks, Fabulous
B | Mhm, Wow, Lousy
I choose Column B as the option for Rows and for values I use a "calculated field" with the custom the formula CONCATENATE=('Data'!C:C). In Column Feedback I get all the entries for column C for all the teams, like this
Team | Feedback
A | Great, Sucks, Fabulous, Mhm, Wow, Lousy
B | Great, Sucks, Fabulous, Mhm, Wow, Lousy
How do I modify the Calculated Field formula to separate that feedback by team?

Related

Excel Pivot values as column labels

I am trying to create a Dependent drop-down list in excel using data from a pivot table.
The source data looks like this:
+--------+---------+
| Name | Country |
+--------+---------+
| John | USA |
| Albery | USA |
| Mary | Canada |
| Bob | Canada |
| Alice | Mexico |
+--------+---------+
Using Pivot I am able to fetch the data dynamical in a similar setup. However, in order to create a dependent drop-down lists for an Entire Column like like in this tutorial. I need the pivot to dynamically display data like this:
+--------+--------+--------+
| Canada | Mexico | USA |
+--------+--------+--------+
| Bob | Alice | Albery |
| Mary | | John |
+--------+--------+--------+
Is this even possible using pivot, or is there any other way to achieve this?
Attached Excel file
If you have Excel for Office 365 (or Excel 2021) with the FILTER function, you can use the following:
Note that I used a table with structured references for the data source. This has advantages in editing the table in the future
For "pivot" header:
=TRANSPOSE(SORT(UNIQUE(Table1[Country])))
For the columns:
F2: =FILTER(Table1[[Name]:[Name]],Table1[[Country]:[Country]]=F$1)
and fill across. The results in Columns F:H will SPILL down.
If you don't have those functions, you can pivot text using Power Query, available in Windows Excel 2010+ and Microsoft 365

Creating Summary table using countif and lookup

I've had a bit of a mind blank with this so out of desperation I'm asking for your help.
I have the following set of data in Excel:
DE | COMPLETE
FR | NOT STARTED
UK/INT | NOT STARTED
DE | COMPLETE
FR | NOT STARTED
UK/INT | NOT STARTED
DE | FAIL
FR | NOT STARTED
UK/INT | NOT STARTED
The statuses will change depending on my project progress so I want to create an automated summary to count the statuses in the following table:
Territory | Fail | Not Started | Complete
France | 0 | 3 | 0
Germany | 1 | 0 | 2
UK / Int | 0 | 3 | 0
I know that it would be easier if I sort the table and create ranges for France, Germany and UK/INT then do a countif but i need to keep the format as it is.
How do I combine the lookup of the country with the count of the statuses?
Cheers!
I would recommend using a pivot table. Here's the official link on how to create one.
Place your territories in D2 through D4 and your statuses in E1 through G1. Then in E2 enter:
=SUMPRODUCT(--($A$1:$A$9=$D2)*($B$1:$B$9=E$1))
and copy both down and across:

Repeat formula until next occurrence in another cell

I'm having troubles creating an Excel formula to repeat the same copy down a column until I come to a new "person". The reason I'm doing this is to Index(Match) later to grab all this data. If I am totally off, and there's an easier way to grab this data than run a formula down 15k rows, I'm all ears. The main problem is that my categorical data (Person) is stacked on top of the data that I want to match it with (Work Positions).
The data looks like this:
Description | Status
Bob | C
Sales |
Marketing |
Management |
John | C
Sales |
Management |
Tony | C
Management |
Ideally, I'd like the data to look like this after running the formula down ColA:
Person | Description | Status
Bob | Bob | C
Bob | Sales |
Bob | Marketing |
Bob | Management |
John | John | C
John | Sales |
John | Management |
Tony | Tony | C
Tony | Management
I've tried writing an If() statement to target the "C" in ColC, as it is always there to discern a change in "Person". However, I can't figure out how to do this as of yet. Is there a way to write a formula that says keep pasting the same value until you hit the next "C", then change your paste value? Thanks for any and all help and please, don't hesitate to ask any clarifying questions!
=IF(C:C="C",B:B,A1)
Put this in A2 and clear "Person" then drag down the list.

Find Top Summed Subvalue by Name and State in Excel

I have an Excel table with states, names, and counts. I am trying to find the top name by sum of the count for each state. So, for example, with the following:
State | Name | Count
IA | Joe | 10
IA | John | 10
IA | Joe | 5
NE | Joe | 5
NE | John | 10
NE | John | 15
NE | Joe | 10
NE | Amy | 30
OH | Joe | 10
OH | John | 10
OH | Amy | 5
OH | Joe | 5
The expected results would be:
IA | Joe (15)
NE | Amy (30)
OH | Joe (15)
Any ideas on how to do this? Maybe something with pivot tables?
Couple of approaches stand out
1) use 2 pivots one that has row labels of name and states as column labels and sums the values. Second pivot is based on first pivot uses lists names as row labels and max of state as values, then use conditional formatting to high light those with the same grand total.
2nd option is similar to first but instead of using second pivot have seperate values for each state that have the formula (=max) of the state in the pivot then base the conditional formatting on that.
3rd option would be define it as a table and then use embedded SQL with the form to write a query to give you the sum and max by state Don't have an example of that one yet.

excel merge rows based on column values

So I've been searching for the information I need and have not really been able to find a simple solution, though it seems like there should be one. Basically, I have the following
John | Doe | 123 Wallaby Ln | 00123 | | |
John | Doe | | 00123 | xxx | yy |
Jane | Doe | | 01234 | | zz |
Jane | Doe | bleep blop ln | | xx | |
And I need
John | Doe | 123 Wallaby Ln | 00123 | xxx| yy |
Jane | Doe | bleep blop ln | 01234 | xx | zz |
Basically pretty simple, I need to merge cells with the same Column 1 & Column 2 data to get as comprehensive and concise a list of data. You'd think this would be readily available through google as a simple formula but I have only found VBA solutions (I have never used VBA before, or macros for that matter so I'm not sure how to use them or fix errors in them). Any help is greatly appreciated.
Thanks in advance!
The easiest option is to merge the content of A & B in one column ( insert a new column in C)
C1 =A1&" "&B1
Roll down the formula
Sort per column C
Make sure you have descriptive name on row 1 to describe your column.
Select the complete table
Create a pivot table, drop the C column in the row section to obtain the list of unique name.
Copy the list of unique names in a new sheet
and then look at vlookupall describe here excel vlookup with multiple results to create your own function.

Resources