So I got this excel file with a lot of data which is why I want to avoid doing all this manually. Basically what I want to do is find all values that is the same in one column and then combine all it's values to one row.
If I have this data in a worksheet.
I would like the output to be like this
I appreciate all the help I can get.
EDIT:
This is what I get from a Pivot Table
When I actually would want it to look like this.
You must use Pivot Table function from (i recommend it) MS Excel.
It lets you to set wich columns becomes rows, what type of values they will contain and much more.
Pivot Tables are what you want.
It saved my career at my previous job :)
Here you got some screenshot of example for making sums for all duplicates in first column:
original table:
Related
So basically, I have been trying to make excel scan one column and print out the row for cells which have specific letters.
For example I have the following data in my sheet.
What is required is to be have excel search for the values which contain T and I, and then print the new rows. Kind of like separate the two into two different tables, because then so that I can do further analysis on them.
So far I have been trying to use the VLOOKUP() function, but the problem with VLOOKUP() is that excel required a proper match and not just a letter in the cell. I had tried with both FALSE and TRUE. Then instead I tried to use the =INDEX($B$4:$K$9;MATCH($A$17;$A$5:$A$9;0);COLUMN(A4)) to make it work. But that also does not work, since it also requires a full match. Also another problem which I didn't realise before is that how can excel recognise each cell, because I will have different number after the letters everytime and then so how can one make excel not repeat the same row twice?
I have used another approach where I copy the data in a separated sheet and then I simply filter out the Ts and then copy/paste the Is into another sheet and vice versa. it is time consuming and so it would be much better if I can simply copy/paste my new data and it would generate the division on its own.
any suggestions or link would be really helpful.
UPDATE
I had a new idea on how to approach this problem. I was thinking that is it somehow possible to have VBA code running for filtering the data. Is there a way to specify in VBA code to filter the data by "Starts With" and Make the results be printed in another cell block?
Looks simple enough. First step is to make sure you have headers over your data and that it is in proper table format similar to my picture. Then select Data set and press CTRL+T. That should turn you data in to table object with stripes. Use the Formula =LEFT(C2,1) to take out the first letter which will be L or T.
Select the table and press ALT+D+P which will generate a pivot table based off original data set.
Drag the column with the formula I suggested over to the FILTERS area of the pivot table ID column to ROWS and all others to VALUES. Simply refresh and as new data is added you will get new pivot tables. Do not put the pivot tables on top of each other as I did that is only for the picture so you can see it. If you have too many filters to apply you can right click the helper column in the pivot table fields area to produce a slicer which is a button that helps you change the report quickly. Any other questions do ask.
I have a .csv with a table that looks like this:
and I would like to merge the values in the rows that are duplicate
based on column A.
The end result to be like this:
I would appreciate a bit of help please as I've tried with PivotTable in Excel but I must be doing something wrong
as it messes up the data.
How important is column B, because that's the only gotcha I see. Otherwise, this setup in a pivot table should give you the totals you seek.
For column B, you can always use a vlookup out to the side, but since you have multiple, it should pull the first value -- somewhat arbitrary:
=VLOOKUP(A4,Sheet1!$A$2:$B$10,2,FALSE)
If someone could help me out that would be fantastic and thank you in advance
I have big excel list with different orders that looks like this example
What I would need to do is to:
Search and match data based on column I and then when it matches it should merge together that rows, and create 1 row like 8th and 9th row here.
But it should do a sum of costs (column H) and for row G seats to create a format like 10-11 here, but if I have multiple rows where there are numbers 10,11,12 it should format 10-12. ANd all this new rows should go in the new sheet/tab in the same excel file.
This should be fairly straight forward using Pivot tables. You can simply use "Order Number" in the column and simply aggregate everything else. If you haven't used pivot tables before the following link should get you started:
https://www.excel-easy.com/data-analysis/pivot-tables.html
There are a couple of options for the concatenation issue. The easiest option is to use Power query for this. The following link highlights a couple of possible ways to do this:
https://superuser.com/questions/453041/grouping-labels-and-concatenating-their-text-values-like-a-pivot-table
I would recommend Power query as it is the easier option.
I have a spreadsheet that I'm trying to convert to a pivot table. My issue is the Data(Value) section is a range of numbers (0-10) and text (intermittent, frequent, often). How can I accommodate both into my table?
sample data set (highlighted column):
http://govega.com/1.png
expected pivot table result:
Pivot tables cannot show text in the values area. Values are always aggregated. Text can be counted, but not displayed as is.
It's a shame you didn't include column headers in the data. What you want to achieve might be possible with a regular table and formulas, but with such vague info about the data structure, it's hard to tell. It looks like you have months across the second screenshot, so there must me some date column in the source data.
Please simplify the data for an example. Leave out columns that are not relevant, but please include data that is needed to arrive at the desired result. A few rows will suffice. What makes up the rows in the second screenshot? Are these people? Is it conceivable that any one cell in the grid will have values from two or more source data rows?
Please edit your question with these details and then I'll tidy up this answer.
Post a comment when you're done.
I have a spreadsheet that has multiple values in it, but I need to create a formula that would pull the names from the columns without any duplicates. Here's an example spreadsheet:
I would like the result to be like:
So to do it manually, I'm using a SUMIF to search the data for "Walked dog" and add the value.
I'm doing this by manually typing the event names, and if there's one added, I have manually add this instead of something automatically adding that new unique value to the spreadsheet. I've tried SUBTOTAL, SUBPRODUCT, and SUMIF, but they don't seem to do what this spreadsheet requires. Any help would be appreciated.
=SUMIF($C:$F,"Walked dog",$D:$F) is the only function I can get to work correctly, but that requires manual input of the names each time a new event is added.
If you are able to get all your data into one column, you could then use a pivot table. Pivot tables would allow your "Time" column to be grouped and summed up by your "Event" column. As I mentioned, you would need all your "EventN" columns copied into a single "Event" column. You will often need to transpose your data around to make your life easier when using spreadsheets.
Here's the first google result for an example: http://www.excel-easy.com/data-analysis/pivot-tables.html