[Solved] Summing From 2 Sheets Into A 3rd Sheet

Discuss the spreadsheet application
Post Reply
adventurehouse
Posts: 16
Joined: Thu Jun 23, 2016 4:42 pm

[Solved] Summing From 2 Sheets Into A 3rd Sheet

Post by adventurehouse »

I'm trying to produce an easy Summary of my expenditures for my accountant.

I have a spreadsheet with multiple sheets. Each sheet is an account that I need to sum.

What I'm not sure how to, or if to use SUMPRODUCT, SUMIFS or just SUM, here is what I need to do.

=SUMPRODUCT('Capital One'.E2:E647="G2"; 'Capital One'.F2:F647)

The G2 is how Identify a category that I need to account for. Each sheet has these identifiers to allow me to sum from all of them into a single summary page. So, what I need to do is combine the example from above and add =SUMPRODUCT(BOA.E2:E135="G2"; BOA.D2:D135), so the summary shows both sheets figures into a single calculation.

Thanks for the help.
Last edited by Hagar Delest on Fri Apr 05, 2019 7:49 am, edited 1 time in total.
Reason: tagged solved
OpenOffice 4.1.2 on Mac Os X
FJCC
Moderator
Posts: 9280
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Summing From 2 Sheets Into A 3rd Sheet

Post by FJCC »

In the formula

Code: Select all

=SUMPRODUCT('Capital One'.E2:E647="G2"; 'Capital One'.F2:F647)
is G2 the text that appears in column E of the Capital One sheet or do you mean that to be reference to cell G2 of the sheet containing the formula? If it is a cell reference, do not put it in quotes.

Your final formula would be

Code: Select all

==SUMPRODUCT('Capital One'.E2:E647=G2; 'Capital One'.F2:F647) + SUMPRODUCT(BOA.E2:E135=G2; BOA.D2:D135)
if I am understanding you correctly.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Summing From 2 Sheets Into A 3rd Sheet

Post by Villeroy »

It could be far easier if you would not store equally structured data on separate sheets.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
adventurehouse
Posts: 16
Joined: Thu Jun 23, 2016 4:42 pm

Re: Summing From 2 Sheets Into A 3rd Sheet

Post by adventurehouse »

The different sheets are the data from different accounts and needs to be separated for the accountant to view.

G2 is not a cell, but a sample of the text id that appears within the sheet.

Thanks for the info...it works.
OpenOffice 4.1.2 on Mac Os X
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Summing From 2 Sheets Into A 3rd Sheet

Post by RusselB »

The data could (probably) be stored on a single sheet, then use a Pivot Table (aka Data Pilot) to generate the specific information needed for the accountant when necessary.
While having the information spread out looks good from a human point of view, it can (and often does) make it much more complicated for doing calculations and/or data manipulation.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Summing From 2 Sheets Into A 3rd Sheet

Post by Villeroy »

Everything becaomes easier with single sheets. Of course you keep an additional column with the account names that used to be the sheet names. instead of selecting a distinct sheet, you select an auto-filter entry from a drop-down in order to view a particular account.

Actually, accounting on spreadsheets is a very good reason to be fired. I would never accept this for my own business.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply