excel formula help ...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] excel formula help please

14 Posts
10 Users
0 Reactions
39 Views
Posts: 7423
Free Member
Topic starter
 

done a basic 'google sheets' spreadsheet to help my wife sort her self employment account out.

shes just filling in her return now, and i realised i hadnt got a formula sorted to add all the different sheets up into one grand total. ive done it manually now, but i thought id put a formula in to automatically do it for future years.
the tabs are called January 2017, February 2017 etc etc for the whole year. i googled how to do this and came up with this formula.....

=SUM(January 2017!C17,February 2017!C18,March 2017!C23,April 2017!C27,May 2017!C18,June 2017!C25,July 2017!C25,August 2017!C25,September 2017!C25,October 2017!C25,November 2017!C25,December 2017!C25)

.....where the cell holding the individual total is C17, C18 on next one etc.

however, the cells come up with an error stating "Formula parse error"

i cant see any obvious mistakes, but can you tell me where im going wrong please?

thanks

EDIT: realised later id be better doing april to april rather than jan to jan but i can amend that if i get this formula business sorted.


 
Posted : 08/05/2017 3:57 pm
Posts: 0
Free Member
 

Why not reduce it to the bare minimum:

=SUM(January 2017!C17)

See if it's correct then just keep adding references until it breaks again.


 
Posted : 08/05/2017 4:00 pm
Posts: 7423
Free Member
Topic starter
 

good thinking. just done that and error at first hurdle 🙂

so...... whats wrong with =SUM(January 2017!C17)

EDIT: considered whether the cell needed formatting to currency, but thats not it either....


 
Posted : 08/05/2017 4:02 pm
Posts: 0
Free Member
 

Don't know about google docs but wiht Excel if you have spaces in sheet names you need to enclose in ''

So =SUM('January 2017'!C17)


 
Posted : 08/05/2017 4:04 pm
Posts: 9539
Free Member
 

Quotes


 
Posted : 08/05/2017 4:05 pm
Posts: 7423
Free Member
Topic starter
 

now reads =SUM("January 2017"!C17) and still error.

EDIT: got it thanks, i used speech marks instead of quotes. thats worked now so ill try the biggie again. thanks a lot 🙂


 
Posted : 08/05/2017 4:06 pm
Posts: 0
Free Member
 

Also why use sum when a basic + would do?


 
Posted : 08/05/2017 4:37 pm
Posts: 71
Free Member
 

^^ this.

='January 2017'!C17+'February 2017'!C17+...

Or, IIRC you can do a formula to add all of them up, try: =sum('January 2017:December 2017'!C17)

Obvs change the date range to be what you want. I think that'll work if they're in the right order. You can also do =sum('*'!C17') I think to sum that cell on every sheet. Maybe.


 
Posted : 08/05/2017 5:09 pm
Posts: 7423
Free Member
Topic starter
 

thanks. problem with that is its not always C17, the cell no changes each page depending on how many lines of work she has.

take the point about the +'s, but maybe much of a muchness, i just went with what google showed me 🙂

all sorted now chaps, thanks a lot.


 
Posted : 08/05/2017 5:30 pm
Posts: 0
Free Member
 

One minor suggestion would be to put the totals at the top of each months sheet, so that extra lines of work don't move that about.
Or leave plenty of room (C50) so if she does loads that month it isn't moved.


 
Posted : 08/05/2017 6:17 pm
Posts: 7423
Free Member
Topic starter
 

good suggestions, ill incorporate one of them (probs the total at the top) when i create mk2 😉

thanks


 
Posted : 08/05/2017 6:47 pm
Posts: 17
Free Member
 

Yep as above or do a summary sheet with each months totals on so it's visible from one place and then sum the summary. Massive rambling formula to do multiple steps are a source of errors. Being able to see each of the components and check them is useful.


 
Posted : 09/05/2017 12:30 am
Posts: 71
Free Member
 

In which case try =sum('January 2017:December 2017'!(max(C:C))

May need a concatenation to assemble that though.


 
Posted : 09/05/2017 1:02 am
Posts: 943
Free Member
 

if you use Excel then you can also name the cells you want to sum, then it's easier to create the summary formula.

=name1 + name2 + name3 ....


 
Posted : 09/05/2017 8:32 am
Posts: 0
Full Member
 

"[i]=sum('January 2017:December 2017'!(max(C:C))[/i]"

Won't work if there's both +ve & -ve values in the column, you'll potentially pick up one item rather than the total.


 
Posted : 09/05/2017 10:16 am

6 DAYS LEFT
We are currently at 95% of our target!