简体   繁体   中英

Excel Dynamic OFFSET Function

This formula works OFFSET(RevFull,$B$261:ROWS($C$5,C5):COLUMNS($D$3,D3)) I'm trying to make the "RevFull:$B$261" dynamic with this ="RevFull,"&ADDRESS(MATCH($C$2,RevFull!$B$1:$B$298,0),2) Alone this equation yields "RevFull!$B$261"

When I put the two together ie OFFSET("RevFull,"&ADDRESS(MATCH($C$2:RevFull,$B$1,$B$298,0):2),ROWS($C$5:C5).COLUMNS($D$3:D3)) Excel will not calculate.

I've tried to use the indirect function as well to accomplish this ie

OFFSET(INDIRECT("RevFull,")&ADDRESS(MATCH($C$2:RevFull,$B$1,$B$298,0):2),ROWS($C$5:C5),COLUMNS($D$3:D3))

This also does not calculate.

Use:

=INDEX(RevFull!$B:$ZZ,MATCH($C$2,RevFull!$B$1:$B$298,0)+ROWS($C$5:C5),COLUMNS($D$3:D3))

And avoid the volatile offset, indirect, and address functions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM