excel concate third column based on first two columns - excel

sample Data
Result data
Basically Location+IP is the primary key. Based on primary key i want concatenate the third column user separated by commas.
I am new to excel please help.

Select all data and insert a pivot table to summarize the data.
Insert Pivot table
Summarize your data

sort location,IP using custom sort option.
=IF(CONCATENATE(A2,B2)<>CONCATENATE(A1,B1),C2,D1 & "," &C2).
Use another condition to create blank in unwanted rows - =IF(CONCATENATE(A2,B2)<>CONCATENATE(A3,B3),CONCATENATE(D2,"",),"")
Apply filter and remove blank columns
copy paste and delete unwanted columns

Related

How to convert convert a N columns table to two column table in excel

How to convert a table of multiple columns to a two columns table in excel. As shown in the image the two-column table should be based on the first column of the multiple column table
use these steps
select the data,
get & transform tab on data menu
from table
data will be opened in power query window
select columns 2 to column 5, at once
right click, use unpivot
save and load
see the following screenGIFs
Edit in view of comments below
To add null values to output you can do following workaround
replace null values from any non-existent value say -
then unpivot
see the following GIF

How can I sort a column with associeted tables inside the cells [Excel]

I have an excel table with associated tables inside cells. This is an example:
If you click on "+", you can see the associated table:
I tried to sort the column PSM from highest to lowest. The problem is that excel doesn't respect the associated column and this one is sorted as well.
That is to say, what I would like to have is a sort rows by PSM where each row has its associated table.
One example of this table can be downloaded from here
Thank you in advance

Transpose multiple rows into columns with unique ID

new to all this and I need some help on what I assume is transposing data - multiple rows into unique columns with values against each id
Here's my current data set:
I need to get the data into this format:
Any assistance would be greatly appreciated!
1.Select any cell within your original table.
Go to insert tab and select Pivot table. Make sure that the range is your full table and ideally select the option to create it on a new worksheet.
Enter SKU as your row labels, attribute as the colmn label, and value as the value. It should bring sum of values, but you can change if that is not the case.

Excel: transpose rows to columns and merge

I would like to present some data in Excel in a table. I have a sheet with three columns: date, time_spent and user_id. Every row is a data record. I want a table with a column for every date and every value with time spent below the date.
Using the transpose function under paste special I get this:
However I would like only one column per unique date, so the amount of columns decrease like this:
Does someone know how to do this?\
I have more than 10000 rows, so manually is too much effort...
Using Pivot Tables as Tim Biegeleisen suggested I cannot get what I want either, I'm not an expierenced user of Pivot Tables so probably I'm doing something wrong:
Excel file as shown in above picture
Here is one way of using a Pivot Table as suggested by Tim above in the comments, but you must use it on your original, non-transposed data: (and note which parameters go to which areas.
A disadvantage of the Pivot table is that the column headers are text strings and not dates. If your version of Excel is 2010+, you can use Power Pivot or Get and Transform to do a better job:
Open the Query Editor, change the format of the Date column, and Pivot the column:
Then Save the results:
Advanced filter dates to unique values in a new column
Copy and transpose them to make your column titles
Insert a new column B with the formula =TEXT(A2,"yyyyddmmm")&COUNTIF($A$2:A2,A2) and fill down
Below your new column headers put in the formula =IFERROR(VLOOKUP(TEXT(H$1,"yyyyddmmm")&ROW()-1,$B$2:$C$8,2,FALSE),"") and fill down and across. You will need to fill it down to cover the maximum number of instances of each date.
Adding a sumif to this table and your initial table would be a good way to check you got everything.

Excel Pivot Tables - Use same field as row and column label

Looking to create a pivot table with the same field for row & column labels.
If this isn't possible in Excel, is there a suitable alternative within excel to accomplish the same result?
Plan B.
Two columns in your source data that are identical, one for ROWS one for COLUMNS.

Resources