Can anyone help me how to sum same cell between chosen worksheets? let say i have 32 sheets in a workbook, named output, 1,2,3,4,5,6,7,8,......,31. On the "output" sheet, the result of the sum i want to have it on A2 cell. A1 and B1 are the cells where can i type which sheets to be calculated. let say if i enter 3 on A1 and 8 on B1, the result on cell A2 is the sum of a cell between sheet 3 to sheet 8. Thanx for the help.![]()
Welcome to the forum, this as an array may help. Note that it only works if the sheets are sorted in order (1,2,3,4... and not 1,3,2,4...). If they are not in order then you need to do a bit of more work.
Confirm with Ctrl + Shift + Enter=SUM(N(INDIRECT(ROW(INDIRECT(A1&":"&B1))&"!A1")))
Note: INDIRECT does not seem to support 3D formulas, hence the above.
Ron
Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad
Kindly
[1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
[2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
[3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated
If I understand what you are trying to do, sum all the A1 cells in 31 sheets.
Try: =SUM(Sheet1:Sheet31!A1)
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
I guessing he wants a dynamic 3D formula, which forces you to use INDIRECT. But this formula will give you an #REF if you write it like this:
You will need an array similar to mines if you want to accomplish what he wants. Sum from the sheet number he inputs in A1 to the sheet number he enters in B2.=SUM(INDIRECT("'"&A1&":"&B1&"'!A1"))
Ron
Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad
Kindly
[1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
[2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
[3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated
Thanx a lot Ron2k. what a fast reply. i have tried your formula n it seems, it doesn't calculated all. it only calculate the first sheet only. when i enter 1 on A1 and 2 on B1, the result is only the number on sheet "1" only. no matter what number i enter on B1, it shows the same result.
Please help me on this.![]()
It is an array formula which means that you just can't press Enter when entering the formula. Do this:
1. Copy the formula I gave you
2. Go to excel, Cell A2, and click on the formula bar, and paste there
3. Press and hold Ctrl and Shift, and while holding those press Enter.
Ron
Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad
Kindly
[1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
[2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
[3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated
Thankx ron2k. thanks a lot. you really make my life easier. it solved work well. really thank you to you.![]()
how to mark this thread as solved? i dont know how. hahaha. really happy beacuse your help, ron2k.
To mark your thread solved do the following: - Go to the first post - Click edit - Click Advance - Just below the word "Title:" you will see a dropdown with the word No prefix. - Change to Solve - Click Save
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks