Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Conditional Sum problem

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Conditional Sum problem

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Conditional Sum problem

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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Conditional Sum problem

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Conditional Sum problem

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with conditional formatting WLMPilot Excel Discussion (Misc queries) 1 April 20th 08 05:34 PM
Conditional Problem Solving Andrew Excel Worksheet Functions 0 July 14th 06 05:38 AM
Conditional Sum problem Joel Excel Worksheet Functions 0 February 2nd 06 08:13 PM
Conditional Sum Problem Andrew Mackenzie Excel Discussion (Misc queries) 4 December 15th 05 03:01 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"