Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Lookup Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Learn - 09 Dec 2007 09:49 GMT
Hi

I am finding a solution (formula) to automatically sum (3 or 12) cells
on the right after encountering first right cell greater than 0.

Currently, this is done manually. (eg. 3.9 is the sum of 2.9 (Aug) +
0.5 (Sep) + 0.4 (Oct).)

Question is there a way to do this automatically because there are
thousands of rows..and this will drive me crasy in maintaining this
worksheet effectively. Thanks.

First    First
3M           12M    Jul     Aug     Sep     Oct     Nov     Dec ....................
-------------------------------------------------------------------------------------------------------------------------------------------
3.9     5.4     0.0     2.9     0.5     0.4     0.3     0.2 ....................
1.0     2.2     0.0     0.9     0.0     0.2     0.0     0.4 ....................
0.0    0.0    0.0     0.0     0.0     0.0     0.0     0.0 ....................
3.2     5.2     0.0     0.0     0.0     1.9     1.3     0.9 ....................
3.1     5.1     0.0     0.0     0.0     0.5     1.7     0.9 ....................
2.6     3.9     0.0     0.0     0.0     0.4     1.1     1.1 ....................
.......................
.......................

Ivan
Roger Govier - 09 Dec 2007 10:13 GMT
see the responses you had in excel.worksheetfunctions yesterday.
Did they not work?
If so, respond within that thread so others can se what has already been
offered to you as a solution.

Signature

Regards
Roger Govier

> Hi
>
[quoted text clipped - 21 lines]
>
> Ivan
Learn - 09 Dec 2007 15:56 GMT
Hi

I am finding a solution (formula) to automatically sum (3 or 12)
cells
on the right after encountering first right cell greater than 0.

Currently, this is done manually. (eg. 3.9 is the sum of 2.9 (Aug) +
0.5 (Sep) + 0.4 (Oct).)

Question is there a way to do this automatically because there are
thousands of rows..and this will drive me crasy in maintaining this
worksheet effectively. Thanks.

First   First
3M    12M    Jul     Aug   Sep    Oct    Nov
Dec ....................
--------------------------------------------------------------------------------------------------------------------------------------------
3.9     5.4     0.0     2.9     0.5     0.4     0.3
0.2 ....................
1.0     2.2     0.0     0.9     0.0     0.2     0.0
0.4 ....................
0.0     0.0     0.0     0.0     0.0     0.0     0.0
0.0 ....................
3.2     5.2     0.0     0.0     0.0     1.9     1.3
0.9 ....................
3.1     5.1     0.0     0.0     0.0     0.5     1.7
0.9 ....................
2.6     3.9     0.0     0.0     0.0     0.4     1.1
1.1 ....................
.......................
.......................

Ivan

==================================================

The solution to this issue was provided by Roger Govier and Domenic as
follows:
{=SUM(OFFSET(INDEX(2:2,MATCH(TRUE,2:2>0,2:2)),0,0,1,3))} = using CTRL
+ SHIFT + ENTER

It works perfectly. Thank you very much. Cheers!

Ivan
==================================================
Roger Govier - 09 Dec 2007 22:38 GMT
Again, I ask, did you not find the solution I posted worked for you?
It worked fine for me.

In case you didn't see it, I repeat it below slightly modified
One way would be with the array entered formula
{=SUM(OFFSET(INDEX(C2:Z2,MATCH(TRUE,C2:Z2>0,C2:Z2)),0,0,1,3))}

To enter, or amend, an array formula use Control+Shift+Enter (CSE) not just
Enter
When you use CSE, Excel will insert the curly braces  {  } around the
formula. Do not type them yourself.

The 3 at the end of the formula is for 3 months.
Change this value for any other number of months required
Change the range C2:Z2 to suit
Enter the formula in A2 and copy the formula down the page as far as you
require

Signature

Regards
Roger Govier

> Hi
>
[quoted text clipped - 41 lines]
> Ivan
> ==================================================

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.