Solved

Pivot table with text

Posted on 2014-04-18
2
198 Views
Last Modified: 2014-04-18
Folks,
In my data set the third column is Explanation where some text can be entered. The first column is a data. Is it possible to show the text that a person entered for any given date on the same line?
0
Comment
Question by:Frank Freese
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 40009764
You can certainly use a formula outside the PivotTable to return the desired information. And you can record a macro to clear the formula and insert a new one when the PivotTable is refreshed.

In the sample workbook, columns H:J use an array-entered formula what is somewhat slow to recalculate, but which can return a second and third explanation for a given date. Copy the formula to the right if you need to return more possible explanations.
=IFERROR(INDEX(Table1[Explanation],SMALL(IF(Table1[Date]=$F2,ROW(Table1[Date])-ROW(Table1[#Headers]),""),COLUMNS($H2:H2))),"")

Column K uses an INDEX & MATCH formula that is fast, but only returns the first explanation for each date.
=INDEX(Table1[Explanation],MATCH(F2,Table1[Date],0))
PivotTableExplanationsQ28415800.xlsx
0
 

Author Closing Comment

by:Frank Freese
ID: 40009924
appreciate it! thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel VBA - Returning results from batch file 9 67
consolidate from multiple folders 5 39
FormulaArray VBA Issue 6 17
Mac Excel column treating text as date 2 31
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now