View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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.