Hi,
Long time user, but new to posting.
My workbook is used to perform scenario modelling, and contains a number of worksheets, named 'Base', 'Adj1', Adj2', 'Adj3'........'Total', where Total is the sum of all preceding worksheets.
However, to complicate matters, I want the ability to 'turn-off' tabs from the sum, and so I have a front sheet with a list of the tabs (col. A), and a Yes/No option in col. B. I want to be able to change the tabs I am summing, so in one instance I will sum Base and Adj1, but another instance sum Base, Adj3 and Adj4.
Do you know of a function to add into the Total tab, which will sum only those tabs with a 'Yes' against their name?
Two additions, which I have tried to use:
- a simply If function in each tab, which returns a 1 or 0, dependant upon whether a Yes or No is selected in the front sheet.
- the following formula [[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IFERROR(INDEX(Adj,SMALL(IF(Adj[Include in Total?]="Yes",ROW(Adj)-2),ROW(1:1)),2),"")], which returns a list of only those tabs with a Yes against their name, i.e. being the tabs I need to sum.
To complicate matters further, there is no limit to how many Adj tabs there could be, i.e I want the user to be able to add further Adj tabs, without the function breaking. If this proves to be an issue, this can be limited.
Any help in greatly appreciated![/FONT]
Long time user, but new to posting.
My workbook is used to perform scenario modelling, and contains a number of worksheets, named 'Base', 'Adj1', Adj2', 'Adj3'........'Total', where Total is the sum of all preceding worksheets.
However, to complicate matters, I want the ability to 'turn-off' tabs from the sum, and so I have a front sheet with a list of the tabs (col. A), and a Yes/No option in col. B. I want to be able to change the tabs I am summing, so in one instance I will sum Base and Adj1, but another instance sum Base, Adj3 and Adj4.
Do you know of a function to add into the Total tab, which will sum only those tabs with a 'Yes' against their name?
Two additions, which I have tried to use:
- a simply If function in each tab, which returns a 1 or 0, dependant upon whether a Yes or No is selected in the front sheet.
- the following formula [[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IFERROR(INDEX(Adj,SMALL(IF(Adj[Include in Total?]="Yes",ROW(Adj)-2),ROW(1:1)),2),"")], which returns a list of only those tabs with a Yes against their name, i.e. being the tabs I need to sum.
To complicate matters further, there is no limit to how many Adj tabs there could be, i.e I want the user to be able to add further Adj tabs, without the function breaking. If this proves to be an issue, this can be limited.
Any help in greatly appreciated![/FONT]