PC Review


Reply
Thread Tools Rate Thread

Conditional Sum problem

 
 
WembleyBear
Guest
Posts: n/a
 
      26th Jun 2008
I have a table on my spreadsheet simplified below as follows:

Sold
January 12
February 22
March 15
April 20

YTD Total

On the spreadsheet there is also a drop-down list where the user can select
the month they want to look at. My question is the best way to get the sum
for YTD total; in my example if the user selects February then the YTD total
would be 34, but if they select March, then it would be 49 etc. Can you
recommend the best solution to do this please?

Martyn

Excel 2000, Windows Server 2003 over Citrix PS4
 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      26th Jun 2008
The drop-down list being in F2 the formula
=SUM(B2:INDEX(A2:A13,MATCH(F2,A2:A13,0)))

Regards,
Stefi

„WembleyBear” ezt *rta:

> I have a table on my spreadsheet simplified below as follows:
>
> Sold
> January 12
> February 22
> March 15
> April 20
>
> YTD Total
>
> On the spreadsheet there is also a drop-down list where the user can select
> the month they want to look at. My question is the best way to get the sum
> for YTD total; in my example if the user selects February then the YTD total
> would be 34, but if they select March, then it would be 49 etc. Can you
> recommend the best solution to do this please?
>
> Martyn
>
> Excel 2000, Windows Server 2003 over Citrix PS4

 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      26th Jun 2008
presume yr drop-down list is in D1

"January" is in A2, 12 is B2

in E1 try:

=SUM(OFFSET($E$1,,-3,MATCH(D1,$A$1:$A$12),1))

HIH
 
Reply With Quote
 
WembleyBear
Guest
Posts: n/a
 
      26th Jun 2008
Thanks very much, that worked perfectly!

Martyn




"Stefi" wrote:

> The drop-down list being in F2 the formula
> =SUM(B2:INDEX(A2:A13,MATCH(F2,A2:A13,0)))
>
> Regards,
> Stefi
>
> „WembleyBear” ezt *rta:
>
> > I have a table on my spreadsheet simplified below as follows:
> >
> > Sold
> > January 12
> > February 22
> > March 15
> > April 20
> >
> > YTD Total
> >
> > On the spreadsheet there is also a drop-down list where the user can select
> > the month they want to look at. My question is the best way to get the sum
> > for YTD total; in my example if the user selects February then the YTD total
> > would be 34, but if they select March, then it would be 49 etc. Can you
> > recommend the best solution to do this please?
> >
> > Martyn
> >
> > Excel 2000, Windows Server 2003 over Citrix PS4

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      26th Jun 2008
You are welcome! Thanks for the feedback!
Stefi

„WembleyBear” ezt *rta:

> Thanks very much, that worked perfectly!
>
> Martyn
>
>
>
>
> "Stefi" wrote:
>
> > The drop-down list being in F2 the formula
> > =SUM(B2:INDEX(A2:A13,MATCH(F2,A2:A13,0)))
> >
> > Regards,
> > Stefi
> >
> > „WembleyBear” ezt *rta:
> >
> > > I have a table on my spreadsheet simplified below as follows:
> > >
> > > Sold
> > > January 12
> > > February 22
> > > March 15
> > > April 20
> > >
> > > YTD Total
> > >
> > > On the spreadsheet there is also a drop-down list where the user can select
> > > the month they want to look at. My question is the best way to get the sum
> > > for YTD total; in my example if the user selects February then the YTD total
> > > would be 34, but if they select March, then it would be 49 etc. Can you
> > > recommend the best solution to do this please?
> > >
> > > Martyn
> > >
> > > Excel 2000, Windows Server 2003 over Citrix PS4

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Sum Problem... killjoy966 Microsoft Access Queries 3 17th Nov 2006 06:36 PM
Conditional Sum problem =?Utf-8?B?Sm9lbA==?= Microsoft Excel Worksheet Functions 0 2nd Feb 2006 08:13 PM
Conditional Sum Problem Andrew Mackenzie Microsoft Excel Misc 4 15th Dec 2005 03:01 PM
Thanks all to my conditional problem Bobby Microsoft Excel Discussion 0 17th Sep 2004 12:05 PM
problem with conditional in if Frank Microsoft Excel Worksheet Functions 1 6th Jan 2004 05:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 PM.