#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 172
Default Drop Down List

I have a drop down list that I'm using to sum up detail by specific customer.
The detail is kept on a worksheet called "Detail". The summary and drop down
list is on a worksheet called "Summary". When no customer is selected from
the list I want to be able to sum all customers. Then when a customer is
selected I only want it to sum that customer. How do I add this "All"
function to my worksheet? Here is an example of the formula I am using to sum
up detail by a customer and date. The cell "B3" is where my drop down list is.

=SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3))


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Drop Down List

Perhaps....

=IF(Summary!$B$3="All",SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998)),SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3)))



"Secret Squirrel" wrote:

I have a drop down list that I'm using to sum up detail by specific customer.
The detail is kept on a worksheet called "Detail". The summary and drop down
list is on a worksheet called "Summary". When no customer is selected from
the list I want to be able to sum all customers. Then when a customer is
selected I only want it to sum that customer. How do I add this "All"
function to my worksheet? Here is an example of the formula I am using to sum
up detail by a customer and date. The cell "B3" is where my drop down list is.

=SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3))


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 172
Default Drop Down List

That's what I was thinking but how will it know "All" means to sum all the
detail? In my formula it will be looking for a customer called "All", correct?

"Toppers" wrote:

Perhaps....

=IF(Summary!$B$3="All",SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998)),SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3)))



"Secret Squirrel" wrote:

I have a drop down list that I'm using to sum up detail by specific customer.
The detail is kept on a worksheet called "Detail". The summary and drop down
list is on a worksheet called "Summary". When no customer is selected from
the list I want to be able to sum all customers. Then when a customer is
selected I only want it to sum that customer. How do I add this "All"
function to my worksheet? Here is an example of the formula I am using to sum
up detail by a customer and date. The cell "B3" is where my drop down list is.

=SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3))


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Drop Down List

NO! If you check the first SUMPRODUCT, the compare to $B$3 had been removed
so it will sum based on Month and Year only.

This is what you want?

"Secret Squirrel" wrote:

That's what I was thinking but how will it know "All" means to sum all the
detail? In my formula it will be looking for a customer called "All", correct?

"Toppers" wrote:

Perhaps....

=IF(Summary!$B$3="All",SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998)),SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3)))



"Secret Squirrel" wrote:

I have a drop down list that I'm using to sum up detail by specific customer.
The detail is kept on a worksheet called "Detail". The summary and drop down
list is on a worksheet called "Summary". When no customer is selected from
the list I want to be able to sum all customers. Then when a customer is
selected I only want it to sum that customer. How do I add this "All"
function to my worksheet? Here is an example of the formula I am using to sum
up detail by a customer and date. The cell "B3" is where my drop down list is.

=SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3))


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 172
Default Drop Down List

That's what I want. I missed the fact that you removed the first compare.
Thanks!

"Toppers" wrote:

NO! If you check the first SUMPRODUCT, the compare to $B$3 had been removed
so it will sum based on Month and Year only.

This is what you want?

"Secret Squirrel" wrote:

That's what I was thinking but how will it know "All" means to sum all the
detail? In my formula it will be looking for a customer called "All", correct?

"Toppers" wrote:

Perhaps....

=IF(Summary!$B$3="All",SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998)),SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3)))



"Secret Squirrel" wrote:

I have a drop down list that I'm using to sum up detail by specific customer.
The detail is kept on a worksheet called "Detail". The summary and drop down
list is on a worksheet called "Summary". When no customer is selected from
the list I want to be able to sum all customers. Then when a customer is
selected I only want it to sum that customer. How do I add this "All"
function to my worksheet? Here is an example of the formula I am using to sum
up detail by a customer and date. The cell "B3" is where my drop down list is.

=SUMPRODUCT(--(MONTH(Detail!$I$2:$I$43998)=MONTH($A8)),--(YEAR(Detail!$I$2:$I$43998)=YEAR($A8)),--(Detail!$B$2:$B$43998=Summary!$B$3))


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
drop down list dependent on another drop down list. Leisl Excel Discussion (Misc queries) 14 February 12th 07 10:28 PM
Drop Down List choice selecting another drop down list CVD0722 Excel Worksheet Functions 3 October 31st 06 01:02 PM
how do I link a drop down list entry to a new drop down cell? lmunzen Excel Discussion (Misc queries) 1 August 15th 06 04:59 PM
Can I create a drop-down list that will reference other drop-down fdebelo Excel Worksheet Functions 3 January 7th 06 09:34 AM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 03:01 AM.

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"