Replace 'sheet' reference in a formula (not copy data, but get averages)
Solved/Closed
cmigoya
Posts
3
Registration date
Friday 12 July 2019
Status
Member
Last seen
13 July 2019
-
12 Jul 2019 à 21:07
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 13 Jul 2019 à 20:08
vcoolio Posts 1411 Registration date Thursday 24 July 2014 Status Contributor Last seen 6 September 2024 - 13 Jul 2019 à 20:08
Related:
- Replace sheet
- Replace abbreviation - Guide
- Little alchemy cheat sheet - Guide
- How to copy data from one excel sheet to another - Guide
- Google sheet download - Download - Spreadsheets
- How to replace motherboard battery - Guide
3 responses
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
13 Jul 2019 à 09:19
13 Jul 2019 à 09:19
Hello Cmigoya,
I'm assuming that you would like to reference the different sheets from a "Master" sheet.
In the "Master" sheet, place all your sheet names in one cell (e.g. cell X1) using data validation. Make sure that they are spelled exactly the same as the sheet names.
You can then use the INDIRECT function wrapped in the AVERAGE function to reference each sheet as follows:-
Select a sheet name from the data validation drop down list in X1 and you'll then notice that the formula will make calculations for that sheet.
The cell reference X1 has to be absolute so make sure that you use the $ symbols as shown in the formula above.
I hope that this helps.
Cheerio,
vcoolio.
I'm assuming that you would like to reference the different sheets from a "Master" sheet.
In the "Master" sheet, place all your sheet names in one cell (e.g. cell X1) using data validation. Make sure that they are spelled exactly the same as the sheet names.
You can then use the INDIRECT function wrapped in the AVERAGE function to reference each sheet as follows:-
=AVERAGE(INDIRECT("'"&$X$1&"'!P:P"))
Select a sheet name from the data validation drop down list in X1 and you'll then notice that the formula will make calculations for that sheet.
The cell reference X1 has to be absolute so make sure that you use the $ symbols as shown in the formula above.
I hope that this helps.
Cheerio,
vcoolio.
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
13 Jul 2019 à 12:22
13 Jul 2019 à 12:22
Hello Cmigoya,
Select the cell in which you wish to place the drop down. In the ribbon at the top of the sheet, select "Data" then, in the "Data Tools" group select "Data Validation".
In the dialogue box that then appears, select "List" from the "Allow" drop down. Ensure that both the "Ignore blank" and the "In-cell drop down" boxes are ticked. Next, in the Source box that appears, type in your sheet names like this:-
Sheet1,Sheet2,Sheet3 (use your actual sheet names here).
with commas as shown but no spaces. Don't place a comma after the last sheet name. Click OK.
Your list of sheet names should now appear in the selected cell.
As I don't know the set out of your workbook, I can't answer your question. You'll have to try the function and see for yourself if the correct result appears. However, based on the formula that you supplied, as far as I can tell, it will average whatever numerical data you have in your selected range (Column P) for the selected year sheet.
Cheerio,
vcoolio.
Select the cell in which you wish to place the drop down. In the ribbon at the top of the sheet, select "Data" then, in the "Data Tools" group select "Data Validation".
In the dialogue box that then appears, select "List" from the "Allow" drop down. Ensure that both the "Ignore blank" and the "In-cell drop down" boxes are ticked. Next, in the Source box that appears, type in your sheet names like this:-
Sheet1,Sheet2,Sheet3 (use your actual sheet names here).
with commas as shown but no spaces. Don't place a comma after the last sheet name. Click OK.
Your list of sheet names should now appear in the selected cell.
Most importantly: will the outcome of that wrapped function be an average for EACH year (n= 20) or an average of all years? I'm looking for the first.
As I don't know the set out of your workbook, I can't answer your question. You'll have to try the function and see for yourself if the correct result appears. However, based on the formula that you supplied, as far as I can tell, it will average whatever numerical data you have in your selected range (Column P) for the selected year sheet.
Cheerio,
vcoolio.
cmigoya
Posts
3
Registration date
Friday 12 July 2019
Status
Member
Last seen
13 July 2019
13 Jul 2019 à 12:44
13 Jul 2019 à 12:44
Perfect!!!! Thanks for breaking it down
vcoolio
Posts
1411
Registration date
Thursday 24 July 2014
Status
Contributor
Last seen
6 September 2024
262
13 Jul 2019 à 20:08
13 Jul 2019 à 20:08
You're welcome Cmigoya. I'm glad to have been able to assist.
Cheerio,
vcoolio.
Cheerio,
vcoolio.
13 Jul 2019 à 11:08
When I place all the sheet names in one cell, should I place comas? should I enter them just with a space in between?
Most importantly: will the outcome of that wrapped function be an average for EACH year (n= 20) or an average of all years? I'm looking for the first.
Thanks!!!!!