Hallo everyone.
I have a Calc document consisting of dozens of sheets. Each sheet has several rows (the number varies) and 4 columns of text strings. Now I need to combine all these text into one single sheet. Every next sheet (group of records) must be added bellow the previous one. Not only that, but I have to add an extra column with the reference to the name of the sheet that each record (text string) originally comes from. How can I achieve that? I would appreciate any help. Best regards,
gordom
Gordom,
You can use the following formula to reference the data in another
sheet:
If the final sheet is named output and the data is in a sheet named
data_2012, in any cell in output enter =data_2012.<cellreference>. The
cellreference is A1, B3 etc.
W dniu 2013-11-04 18:53, Jay Lozier pisze:
Hallo everyone.
I have a Calc document consisting of dozens of sheets. Each sheet has
several rows (the number varies) and 4 columns of text strings. Now I
need to combine all these text into one single sheet. Every next sheet
(group of records) must be added bellow the previous one. Not only that,
but I have to add an extra column with the reference to the name of the
sheet that each record (text string) originally comes from. How can I
achieve that? I would appreciate any help. Best regards,
gordomGordom,
You can use the following formula to reference the data in another
sheet:
If the final sheet is named output and the data is in a sheet named
data_2012, in any cell in output enter =data_2012.<cellreference>. The
cellreference is A1, B3 etc.
It seems I didn't express myself clearly enough. What I want to achieve is one single sheet consisting of all text strings (that are originally located in different sheets) together with the name of the sheet where each string was originally located.
Cut and pasting will work with page delete, if a bit tedious.
Otherwise a macro that automates the cut and pasting with empty page delete.
I think you are expecting to get Calc somehow to look through whatever sheets there are and discover their names - without your having to quote these in your single sheet. I don't know that this is possible. Here's a suggestion:
o List the other sheet names on your single sheet.
o Now you can construct references to each other sheet using this list of names. Once you have concatenated whatever other details you need to each sheet name, you will almost certainly need to use the INDIRECT() function to convert the resulting string to a reference to the remote sheet.
o There are two ways forward from that. Either use appropriate formulae - possibly including something such as VLOOKUP() - to retrieve and copy the data from the other sheets to the single one, or else simply construct your calculations on that single sheet differently, referring directly to the data on the other sheets without copying it. (The second method may well be more reliable.)
Depending on whether you anticipate adding more sheets later, it may even be quicker just to copy all your material to a single sheet manually, of course.
I trust this helps.
Brian Barker