Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Excel formula help!

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

Ant132
World Chat Champion



Joined: 18 Nov 2007
Karma :

PostPosted: 10:24 - 27 Feb 2015    Post subject: Excel formula help! Reply with quote

I'm trying to find the right formula to give me a cumulative number based on a month in a different cell.

E.g.

Jan Feb Mar Apr May

100 50 75 80 110

I want to have 'Mar' typed in a cell, and then a formula in a different cell that tells me the cumulative number from Jan to Mar = 225.

Hope that makes sense, I thought it would be simple but maybe my brain is dead! Laughing
____________________
1980 Suzuki TS50 ~ 1984 Honda CB400N ~ 1992 Triumph Trident ~ 1998 Suzuki Bandit 1200
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Baffler186
World Chat Champion



Joined: 31 May 2013
Karma :

PostPosted: 10:49 - 27 Feb 2015    Post subject: Reply with quote

=IF(A1="MAR", SUM(range of data you want summed), 0)

e.g.

=IF(A1="MAR", SUM(B2:B4), 0)
____________________
Current: 2009 SV650 S, 1990 Kawasaki GT550
Previous: 2009 CBF125, 1998 GSF600, 2004 FZ6 Fazer, 1978 CB400a Hondamatic
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Ant132
World Chat Champion



Joined: 18 Nov 2007
Karma :

PostPosted: 11:09 - 27 Feb 2015    Post subject: Reply with quote

Thanks for that! But if i then change it to Apr or Jun etc. I'll have to re-adjust the formula won't I?

It's not that i'm lazy, i just dont like being defeated by computers Mr. Green
____________________
1980 Suzuki TS50 ~ 1984 Honda CB400N ~ 1992 Triumph Trident ~ 1998 Suzuki Bandit 1200
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Baffler186
World Chat Champion



Joined: 31 May 2013
Karma :

PostPosted: 11:14 - 27 Feb 2015    Post subject: Reply with quote

Yes, or you could do a separate table with each month in, copy the formulas (but change the sum:range) so they'll update themselves. Or if you want it really simple, you can just select the range you want to add up, and look down in the control bar at the bottom and in gives you the sum. As always in Excel, there are few ways you can do it
____________________
Current: 2009 SV650 S, 1990 Kawasaki GT550
Previous: 2009 CBF125, 1998 GSF600, 2004 FZ6 Fazer, 1978 CB400a Hondamatic
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

metalhead41
L Plate Warrior



Joined: 02 May 2014
Karma :

PostPosted: 12:41 - 27 Feb 2015    Post subject: Reply with quote

Try this (for reference A1 to E1 I have Jan to May, A2 - E2 is the values and J1 is where I am entering the value to be looked up)...

Code:

=SUM(A1:INDIRECT(CELL("address",INDEX(A2:E2,MATCH(J1,A1:E1,0)))))
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

el_oso
World Chat Champion



Joined: 17 May 2008
Karma :

PostPosted: 12:51 - 27 Feb 2015    Post subject: Reply with quote

sumif is what you want
____________________
Duke 390
Previous: '05 XR125L | '96 XJ600S Diversion |'05 Suzuki GSXR1000 | '05 Honda CBR125-R | '97 YZF 600R Thundercat | '11 Honda CBR250
Car: Jeep Wrangler 4.0L
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 10 years, 306 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.06 Sec - Server Load: 0.57 - MySQL Queries: 17 - Page Size: 49.45 Kb