ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   extract row number from Pivot Table Result (https://www.excelbanter.com/excel-worksheet-functions/226241-extract-row-number-pivot-table-result.html)

gtslabs

extract row number from Pivot Table Result
 
I have a pivot table that looks up data from the day, time, event.
The pivot table gets the max(event) for each day.
But I want to get the Time for each day that the max(event) occured.
So I figured if Ihave the rownumber I Can get the time stamp.
Can I retrieve this row number in the Pivot Table? This Max may repeat
over different days so a vlookup might not work.

Max

extract row number from Pivot Table Result
 
Indicatively, a multi-criteria index n match on the underlying source data
sheet (for the pivot) could do it directly. Something like this, normal ENTER:
=INDEX(Sheet1!B2:B10,MATCH(1,INDEX((Sheet1!A2:A10= Date)*(Sheet1!C2:C10=MaxEvent)),),0))
where Sheet1 contains the source data,
col A = dates, col B = time, col C = event nums

In the event of any ties in the date/max,
then only the 1st match from col B will be returned
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---
"gtslabs" wrote:
I have a pivot table that looks up data from the day, time, event.
The pivot table gets the max(event) for each day.
But I want to get the Time for each day that the max(event) occured.
So I figured if Ihave the rownumber I Can get the time stamp.
Can I retrieve this row number in the Pivot Table? This Max may repeat
over different days so a vlookup might not work.



All times are GMT +1. The time now is 01:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com