Forum Discussion

suthandira's avatar
suthandira
Copper Contributor
May 17, 2019
Solved

Fetch specific cell value which matches the RowName and ColumnName

Is it possible to create a "Excel formula" where it returns the value of the cell (or) row number and column number when it matches with the specific row name and column name.

 

For example:I need value 918 or row number and column number of the cell where the row name is "AMS" and column name is "MRO4".

 

I can't able to fetch the value using row and column number because each time new column and row  is added and table structure is changing so does the row and column number values.

 

  • suthandira , for such sample

    it'll be

    =GETPIVOTDATA("[Measures].[Sum of C]",$F$5,"[Table1].[A]","[Table1].[A].&[MRO2]","[Table1].[B]","[Table1].[B].&[AMS]")

    The easiest way to generate the formula - type "=" in any empty cell and click on proper cell within your PivotTable. After that you may play with adjustments.

5 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    suthandira , for such sample

    it'll be

    =GETPIVOTDATA("[Measures].[Sum of C]",$F$5,"[Table1].[A]","[Table1].[A].&[MRO2]","[Table1].[B]","[Table1].[B].&[AMS]")

    The easiest way to generate the formula - type "=" in any empty cell and click on proper cell within your PivotTable. After that you may play with adjustments.

    • suthandira's avatar
      suthandira
      Copper Contributor
      Thank you soo much it works for pivot table but how can we fetch value if the table is not a pivot table(Normal Table).Is it possible to get the value?

Resources