Excel Pivot Table - How to retrieve value of cell in Rows section - excel

I have some raw data as shown below.
I created a Pivot Table for it, mainly just for formatting purposes (the ability to nicely group and expand the sub-items). The Pivot Table is shown below.
I need to display the LastUsageTime for each of the items (UsageName) listed in the Pivot Table. It is simply a lookup of the LastUsageTime column from the Raw Data.
From my research so far, it looks like I have to use Index+Match to do the lookup to match all 3 columns (TPC, TeamProjectName, UsageName). Something like:
{=INDEX('Raw Data'!A2:E2000,MATCH(1,('Raw Data'!A2:A2000=???????)*('Raw Data'!B2:B2000=??????)*('Raw Data'!C2:C2000=A6),0),5)}
However, I don't know what to use to retrieve the TPC and TeamProjectName of each UsageName in the Pivot Table.
I hope this makes sense, and thanks for any help!

For the sake of an answer:
Process your LastUsedTime data into what is recognised by Excel as Date/Time and then add a field to your PivotTable for Σ VALUES Max of LastUsageTime (or Max of ... whatever the column of adjusted LastUsageTime data is labelled).

Related

Convert Excel table based on Column Values using VBA

Have this Table below ,
I would Like to use the Header Column to transform the Table like this
Any Help It will be great, Best regards
Hala
You can easily solve this puzzle with a pivot table. Put the amount field into the values section of the pivot and set to get sums. Put the header field into the columns section of the pivot. And put the rest fields into the rows section of the pivot. Pivot will auto-show the grandtotal and subtotals per rows but you can remove them easily with a right click on it. And finally to get a view like a data table click repeat all item labels in pivot's report layout.

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.

Show Text and number in a Pivot Table Values Area

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.

Preparing Excel Pivot Table

-
I have a tabular data with values as in picture. I created a pivot table in excel 2007 .How can I get count value of each up/Down for date specified. I tried to by making one column row and other as values but it would not work.
The result would be:
A better solution is to use a countif function on a second tab. something like
=COUNTIF(Sheet1!A:A,"UP")
and
=COUNTIF(Sheet1!A:A,"DOWN")
and copy it across the range of dates.
If you can format your data differently to look like this
Then the pivot table becomes easy withthe following settings

Excel 2007 Pivot Tables Custom calculation?

Again I'm wrestling with Excel 2007! I have some data I'm using to generate a Pivot Table and I'd like to divide all of the data by 1000...
I know I could go in and change the original data by hand but I'd much rather have a formula in the Pivot table itself that does this for me.
Any thoughts?
ps: You guys are awesome!
Create your pivot table, then in the Pivot Table options select Formulas/Insert Calculated Field. Assuming your data field is named MonthlySum then the formulat would be =MonthlySum/1000. Change the name of the Calculated Field as desired. The newly named calculated field will now be available to add to the values in your Pivot Table. As a side note you cannot use calculated fields as row labels.

Resources