While trying to create monthly subtotals in a spreadsheet with sales data I get this error:
"Inserting into merged ranges not possible."
I guess this normally means that Calc can't insert subtotals because one or more cells have been merged. However, there are no merged cells! Just to check that I'm not mad I got me old notebook out and used the same spreadsheet (saved as an. xls document) in Excel. It worked as expected; all data was sorted by month with subtotals for the various columns I'm interested in.
Any ideas why Calc comes up with this error?
[Solved] Subtotals - inserting into merged ranges possible?
[Solved] Subtotals - inserting into merged ranges possible?
Last edited by TheGurkha on Sun Jul 04, 2010 11:20 pm, edited 1 time in total.
Reason: Tagged Solved, TheGurkha.
Reason: Tagged Solved, TheGurkha.
Re: Subtotals - inserting into merged ranges not possible?
Can you upload an example file here?However, there are no merged cells!
(See "How to attach a document here?": [Forum] How to attach a document here.)
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: Subtotals - inserting into merged ranges not possible?
Thanks for your quick reply... file should be there!
What I'm trying to achieve is this:
1 - Use subtotals based on the 'Month' column
2 - Apply subtotals to the columns named Item A, Item B, Item C, Item D, Item E, Item F, Item G, Item H, Total, Postage, Fee and Profit.
Thanks in advance.
What I'm trying to achieve is this:
1 - Use subtotals based on the 'Month' column
2 - Apply subtotals to the columns named Item A, Item B, Item C, Item D, Item E, Item F, Item G, Item H, Total, Postage, Fee and Profit.
Thanks in advance.
- Charlie Young
- Volunteer
- Posts: 1559
- Joined: Fri May 14, 2010 1:07 am
Re: Subtotals - inserting into merged ranges not possible?
I didn't see any merged cells either, but if I just selected the entire sheet, then clicked Format > Merge Cells, it let me do the subtotals. See Attached
- Attachments
-
- subtotals_example_fixed.ods
- Subtotals Example (unmerged)
- (15.5 KiB) Downloaded 225 times
Apache OpenOffice 4.1.1
Windows XP
Windows XP
Re: Subtotals - inserting into merged ranges not possible?
I found two merged cell-pairs: AB26-AC26 and AB36-AC36
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: Subtotals - inserting into merged ranges not possible?
That must have been the only column I didn't check... it works a treat now. It would nice if there was an easy way of identifying merged cells (I guess you went through the speadsheet cell by cell?) in particular as the original spreadsheet has over 5,000 cells (guess I'll encounter some more merged ones).
Anyway, many thanks for helping me out, much appreciated.
Anyway, many thanks for helping me out, much appreciated.
Re: [Solved] Subtotals - inserting into merged ranges possib
First i checked that:
When I select (highlight) all of cells on a spreadsheet, and the menu item: Format-> Merge cells -> Split cells is not grayed, then THERE ARE merged cells.
Yes, then I went through the speadsheet cell by cell.
I do not know any built-in method for search merged cells.
A workaround tip:
If you fill with color the background of one column, clearly visible on the merged cells (double wide color cells) ((Then you need delete the background color.))
When I select (highlight) all of cells on a spreadsheet, and the menu item: Format-> Merge cells -> Split cells is not grayed, then THERE ARE merged cells.
Yes, then I went through the speadsheet cell by cell.
I do not know any built-in method for search merged cells.
A workaround tip:
If you fill with color the background of one column, clearly visible on the merged cells (double wide color cells) ((Then you need delete the background color.))
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
- MrProgrammer
- Moderator
- Posts: 4908
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: [Solved] Subtotals - inserting into merged ranges possib
Since there are not supposed to be any merged cells in the sheet you can ensure that in Calc by selecting all the cells, opening the Format menu, and clearing the checkmark by Merge Cells if it's present. This would unmerge any merged cells, though it doesn't show you where they are.eopens wrote: ↑Sun Jul 04, 2010 9:13 pm However, there are no merged cells!
If you need to find them, select half of the columns containing your data and look at the Merge Cells setting. Let's say you have 24 columns of data. Select the first half, A-L, and look at Format, Merge Cells. If it's on, a merged cell is in those columns. If it's off, select M-X and check Merged Cells. In either case you have reduced the search from 24 columns to 12. Similarly you can go from 12 to 6, then 6 to 3, etc. Once the guilty columns have been located you can repeat the process on the rows. This process is pretty efficient if there are only a few merged cells in the sheet.
Another way to find merged cells is to save a copy of the spreadsheet as XML with File, Save As, Microsoft Excel 2003 XML. This is really a text format. Close the spreadsheet and with a text editor, open the XML file and look for "ss:Merge" then search backwards to find the "Cell ss:Index" and "Row ss:Index" values that identify where the merged cell is. Or instead of a text editor, rename the file from .XML to .TXT and open it with Writer to look for "ss:Merge".
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).