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 / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Sum a different number of items

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mr tom - 02 May 2008 17:22 GMT
Hi,

Another knotty one which has been puzzling me.

I've got a list of salesmen by their ID, with various information, including
their targets to the right.

Let's say the monthly targets begin in the 9th column (Jan) and each
additional column is another month (i.e. 10th is Feb etc) there are then more
occupied columns after this.

Their targets are seasonally adjusted, so each month is unique.

I can pick out their current month target by returning the value in column
8+(this month) without any trouble.

I also need to know their year to date targets, so for april, this would be
the value in column (8+4, April) plus the value in (8+3, March), plus the
value in (8+2, Feb), plus the value in (8+1, Jan).  Obviously with each
following month, another column (8+5 for May) gets added to the list.

Anybody got a sensible idea for doing this automatically by formula?

Perhaps something along the lines of SUM(B9:xxx9) where the column letter
for xxx is calculated automatically given 8+the number of the current month.

Any bright ideas?

Cheers,

Tom.
Bob Phillips - 02 May 2008 17:38 GMT
=SUM(I6:INDEX(I6:T6,1,MONTH(TODAY())))

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi,
>
[quoted text clipped - 31 lines]
>
> Tom.
mr tom - 02 May 2008 17:45 GMT
Thanks Bob.

As always, you're a life saver!

> =SUM(I6:INDEX(I6:T6,1,MONTH(TODAY())))
>
[quoted text clipped - 33 lines]
> >
> > Tom.
T. Valko - 02 May 2008 17:41 GMT
*Maybe* something like this...

Assuming you have 12 columns for monthly data. You enter this data starting
in B9 and each month add data to the columns to the right in a contiguous
manner so that at the 12th month the range would be B9:M9.

=SUM(B9:INDEX(B9:M9,COUNT(B9:M9)))

Signature

Biff
Microsoft Excel MVP

> Hi,
>
[quoted text clipped - 31 lines]
>
> Tom.
mr tom - 02 May 2008 18:44 GMT
Yep.

That looks like it would do it too.

Thanks!

> *Maybe* something like this...
>
[quoted text clipped - 39 lines]
> >
> > Tom.
T. Valko - 02 May 2008 19:43 GMT
You're welcome!

Signature

Biff
Microsoft Excel MVP

> Yep.
>
[quoted text clipped - 51 lines]
>> >
>> > Tom.
 
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.