# Consolidating in Excel

Hi,

I have 20 worksheets in EXACTLY the same format in one workbook.

There are 200 numeric fields in each sheet.

I want one SINGLE consolidated sheet with each field "summed".

What is the easiest way to consolidate?

I am aware that Excel has a consolidation function but that seems to force me to repeat keying tasks multiple times.  i.e. for each of the 200 numberic fields I would need to repeat the same actions 20 times (i.e. one for each sheet)
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Copy one of your sheets to a new sheet, that you either place before or after your other sheets (not in the middle)

Select all your numeric fields (maybe they're grouped, maybe you'll have to use F5, Special, Constants, Numbers or something like that to select them),

Type your consolidating formula, from the first sheet to the last sheets, e.g. if they're named sheet1 to sheet20, and you're typing in cell B5

=sum(sheet1!B5:sheet20!B5)

validate with Ctrl+Enter to fill all cells

You're done.

Thomas
Author Commented:
Thanks Thomas for suggestion.

It looks great ...but..

I follow the logic ... one step at time... but I am getting #VAlue!

Perhaps you could have a look at the "consol" sheet. Specifically, what is wrong with cell A1.
EEConsolidate.xlsm
Commented:
Mistake on my part, sorry, the formula should be

=sum(sheet1:sheet20!B5)

=sum(sheet1:sheet3!A1)

One way to get that is to type =sum(, then select your first cell of your first sheet, then while holding ctrl, select the last sheet.
Author Commented:
Ok thanks,
One final question what if the sheet names where not the default values? E.g. Sheet 1= Paris, sheet 2= London etc.
Commented:
Same difference, only you'll need single quotes around if you have spaces or other funky characters in the sheet names, as in:

=sum('Paris:Moscow'!A1)

Also, fyi, you should be holding Shift when selecting the sheets, not Ctrl as I said earlier.

Experts Exchange Solution brought to you by