Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-26-2008, 10:05 PM
gatarossi@ig.com.br
 
Posts: n/a
How Accumulate the Values?

Dear all,

In my sales worksheet, in the last column I need to put a formula in
order to sum the values for each month, I mean, sometime I need the
accumulated value from jan to june or jan to may for example.

Then I need to put this formula (in case of line 2, but I have many
lines...)

If I have this situation, I need to put this formula:

Situation Formula
1~1 Accum B2
1~2 Accum B2+D2
1~3 Accum B2+D2+F2
1~4 Accum B2+D2+F2+H2
1~5 Accum B2+D2+F2+H2+J2
1~6 Accum B2+D2+F2+H2+J2+L2
...
...
...

How can I do this? I put a validation in the first cell of this column
in order I can choose what accumulated values I'm looking for at the
moment...

Thanks in advance!!!

André.



Reply With Quote
  #2 (permalink)  
Old 05-26-2008, 11:10 PM
Ragdyer
 
Posts: n/a
Re: How Accumulate the Values?

If I understand what you're looking for, you have monthly data in every
second column, starting with January in Column B.
So, with data going from B to X (Jan. to Dec.), enter this formula in Y2:

=SUMPRODUCT((MOD(COLUMN(B:X),2)=0)*B2:X2)

And copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
<gatarossi@ig.com.br> wrote in message
news:7a224fa2-47fc-47f6-8def-8822b9ad1400@26g2000hsk.googlegroups.com...
Dear all,

In my sales worksheet, in the last column I need to put a formula in
order to sum the values for each month, I mean, sometime I need the
accumulated value from jan to june or jan to may for example.

Then I need to put this formula (in case of line 2, but I have many
lines...)

If I have this situation, I need to put this formula:

Situation Formula
1~1 Accum B2
1~2 Accum B2+D2
1~3 Accum B2+D2+F2
1~4 Accum B2+D2+F2+H2
1~5 Accum B2+D2+F2+H2+J2
1~6 Accum B2+D2+F2+H2+J2+L2
....
....
....

How can I do this? I put a validation in the first cell of this column
in order I can choose what accumulated values I'm looking for at the
moment...

Thanks in advance!!!

André.



Reply With Quote
  #3 (permalink)  
Old 05-26-2008, 11:26 PM
Jim Cone
 
Posts: n/a
Re: How Accumulate the Values?


Or this one in Y2 (filled down) and the desired month name entered in Z1...
=SUM(B2:OFFSET($A$1,ROW()-1,MATCH($Z$1,$A$1:$X$1,0)-1,1,1))
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



<gatarossi@ig.com.br>
wrote in message
Dear all,
In my sales worksheet, in the last column I need to put a formula in
order to sum the values for each month, I mean, sometime I need the
accumulated value from jan to june or jan to may for example.
Then I need to put this formula (in case of line 2, but I have many
lines...)
If I have this situation, I need to put this formula:

Situation Formula
1~1 Accum B2
1~2 Accum B2+D2
1~3 Accum B2+D2+F2
1~4 Accum B2+D2+F2+H2
1~5 Accum B2+D2+F2+H2+J2
1~6 Accum B2+D2+F2+H2+J2+L2
....
....
How can I do this? I put a validation in the first cell of this column
in order I can choose what accumulated values I'm looking for at the
moment...
Thanks in advance!!!
André.



Reply With Quote
  #4 (permalink)  
Old 05-27-2008, 11:43 AM
gatarossi@ig.com.br
 
Posts: n/a
Re: How Accumulate the Values?

Dear Jim,

This function works, but in my sales worksheet I'm having a little
problem: this is my worksheet layout:

A B C
D E
Product January
February
Last Year Actual Year Last Year Actual
Year
TV 100 120
70 80

So this formula sum the last year and the actual year (togheter). This
formula is in the right way, but I need to sum only the columns with
last year figures and other that sum only actual year figures.

Dear Ragdyer

I need to choose until what month I need to do the sum, so I didn't
understand this function well.

Thanks in advance for all!!!!
Reply With Quote
  #5 (permalink)  
Old 05-27-2008, 02:13 PM
gatarossi@ig.com.br
 
Posts: n/a
Re: How Accumulate the Values?

Dear all

I solve this problem with this formula:

=SUMIF(OFFSET(R1C1,1,MATCH(R1C26,R1C1:R1C25,0)-1,1,1):OFFSET(R1C1,1,MATCH(R1C27,R1C1:R1C25,0)-1,1,1),""PY"",OFFSET(R1C1,ROW()-1,MATCH(R1C26,R1C1:R1C25,0)-1,1,1):OFFSET(R1C1,ROW()-1,MATCH(R1C27,R1C1:R1C25,0)-1,1,1))

Thanks in advance!!!

André
Reply With Quote
  #6 (permalink)  
Old 05-27-2008, 02:56 PM
Jim Cone
 
Posts: n/a
Re: How Accumulate the Values?


Your data layout was very muddled up.
This formula seems to work, but explaining it or maintaining it will be difficult.
It sums the even numbered columns up to the month name entered in Z1.
To sum the odd numbered columns change "=0" to "<>0"

=SUMPRODUCT((MOD(COLUMN($B2:OFFSET($A$1,ROW()-1,MATCH($Z$1,$B$1:$X$1,0),1,1)),2)=0)*($B2:OFFSET( $A$1,ROW()-1,MATCH($Z$1,$B$1:$X$1,0),1,1)))

A Vba function would be my preference.
--
Jim Cone
Portland, Oregon USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



<gatarossi@ig.com.br>
wrote in message
Dear Jim,
This function works, but in my sales worksheet I'm having a little
problem: this is my worksheet layout:

A B C
D E
Product January
February
Last Year Actual Year Last Year Actual
Year
TV 100 120
70 80

So this formula sum the last year and the actual year (togheter). This
formula is in the right way, but I need to sum only the columns with
last year figures and other that sum only actual year figures.

Dear Ragdyer

I need to choose until what month I need to do the sum, so I didn't
understand this function well.

Thanks in advance for all!!!!

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:06 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Personal Loans | MPAA | Mortgages | Project cars for sale | McDonalds



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114