Forum Discussion

markv68's avatar
markv68
Copper Contributor
Feb 16, 2019
Solved

Need a formula that advances sheet name by one month

I have a formula in a cell, ='Apr 2019'!M13 This is for May 2019. When I create June 2019 sheet I need the Apr part of the formula to change to May 2019. Also same thing with this cell formula, =IFER...
  • SergeiBaklan's avatar
    Feb 16, 2019

    Hi,

     

    You may add into each your sheet parameter cell with the name of previous month. Let say it's D1, when in June table in D1 it will be May and straightforward formula is

    =IFERROR((Q81/INDIRECT("'" & $D$1 & " 2019'!Q81"))-1,0)

    However, it doesn't change the address of the cell Q81 when you copy the cell with formula, thus it could be bit expanded as

    =IFERROR((Q81/INDIRECT("'" & $D$1 & " 2019'!" & CELL("address",Q81)))-1,0)

    And 2019 is also better to take as parameter.

Resources