Share via

GETPIVOTDATA reference an other sheet

Anonymous
2022-09-24T19:30:07+00:00

Hello,

Since several months I struggle to figure out how to reference other sheet in the GETPIVOTDATA function.

I have many sheets with a number in the name.
I want to extend the GETPIVOTDATA to modify the number in the sheet name.

If I write the reference structure on the pivot_table field it works 
GETPIVOTDATA('SHEET01'!$A$1 ,A3) 

But if I want to extend the function I need to modify the function like this
GETPIVOTDATA("'SHEET" & A1 & "'!$A$1" ,A3) 
OR
GETPIVOTDATA(ADDRESS(1,1,,,"SHEET" & A1) ,A3) 

Where A1 start at 01 and end at A4 with 04

But this approach didnt work

Thanks for you support.
Alex

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Hecatonchire 53,780 Reputation points Volunteer Moderator
    2022-09-25T00:04:38+00:00

    Bonjour, hello

    =GETPIVOTDATA(INDIRECT("'SHEET" & A1 & "'!$A$1"),A3)

    Was this answer helpful?

    0 comments No comments