#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Tricky Formula

Hello,

I am not sure if this can be done or not, but I am looking to find a formula
or something to sum values of a list, but only sum if there is more than one
product.
Here is the example: I want to add 60971, 60975, 60982 dollar amounts to
get a grand total, but I don't want to include 61097 or 60972 or 09710
because there is only 1 item each. I tried to use a pivot table but got
stuck on excluding the 61097 and 60972 and 09710 amounts.

Item Number Amount Base Number
61097-9Z $7.00 61097
60971-115Z $14.00 60971
60971-115A $2.00 60971
09710-85A $14.00 09710
60971-8Z $5.00 60971
60972-BRN $2.00 60972
60975-75A $3.00 60975
60975-85A $3.00 60975
609753-9A $16.00 60975
60982-3032 $9.75 60982
60982-3230 $9.75 60982
60982-3232 $7.00 60982

Any help you can give is great!

Thanks,

Steph

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Tricky Formula

Try something like this:

With your data list in A1:C13

F1: =SUMPRODUCT(SUMIF(C1:C13,{60971,60975,60982},B1:B1 3))

OR
If you enter 60971, 60975, and 60982 in cells E1:E3
F1: =SUMPRODUCT(SUMIF(C1:C13,E1:E3,B1:B13))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"steph44haf" wrote:

Hello,

I am not sure if this can be done or not, but I am looking to find a formula
or something to sum values of a list, but only sum if there is more than one
product.
Here is the example: I want to add 60971, 60975, 60982 dollar amounts to
get a grand total, but I don't want to include 61097 or 60972 or 09710
because there is only 1 item each. I tried to use a pivot table but got
stuck on excluding the 61097 and 60972 and 09710 amounts.

Item Number Amount Base Number
61097-9Z $7.00 61097
60971-115Z $14.00 60971
60971-115A $2.00 60971
09710-85A $14.00 09710
60971-8Z $5.00 60971
60972-BRN $2.00 60972
60975-75A $3.00 60975
60975-85A $3.00 60975
609753-9A $16.00 60975
60982-3032 $9.75 60982
60982-3230 $9.75 60982
60982-3232 $7.00 60982

Any help you can give is great!

Thanks,

Steph

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Tricky Formula

Ron,

That is a good formula, but the data set is actually a lot larger than what
I provided and I would not have the time to type in the different number. I
was hoping the formula could identify those that have more than 1 item listed
and then from there sum the amounts.

"Ron Coderre" wrote:

Try something like this:

With your data list in A1:C13

F1: =SUMPRODUCT(SUMIF(C1:C13,{60971,60975,60982},B1:B1 3))

OR
If you enter 60971, 60975, and 60982 in cells E1:E3
F1: =SUMPRODUCT(SUMIF(C1:C13,E1:E3,B1:B13))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"steph44haf" wrote:

Hello,

I am not sure if this can be done or not, but I am looking to find a formula
or something to sum values of a list, but only sum if there is more than one
product.
Here is the example: I want to add 60971, 60975, 60982 dollar amounts to
get a grand total, but I don't want to include 61097 or 60972 or 09710
because there is only 1 item each. I tried to use a pivot table but got
stuck on excluding the 61097 and 60972 and 09710 amounts.

Item Number Amount Base Number
61097-9Z $7.00 61097
60971-115Z $14.00 60971
60971-115A $2.00 60971
09710-85A $14.00 09710
60971-8Z $5.00 60971
60972-BRN $2.00 60972
60975-75A $3.00 60975
60975-85A $3.00 60975
609753-9A $16.00 60975
60982-3032 $9.75 60982
60982-3230 $9.75 60982
60982-3232 $7.00 60982

Any help you can give is great!

Thanks,

Steph

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Tricky Formula

Then....how about this:
=SUMPRODUCT((COUNTIF(C2:C13,C2:C13)1)*B2:B13)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"steph44haf" wrote:

Ron,

That is a good formula, but the data set is actually a lot larger than what
I provided and I would not have the time to type in the different number. I
was hoping the formula could identify those that have more than 1 item listed
and then from there sum the amounts.

"Ron Coderre" wrote:

Try something like this:

With your data list in A1:C13

F1: =SUMPRODUCT(SUMIF(C1:C13,{60971,60975,60982},B1:B1 3))

OR
If you enter 60971, 60975, and 60982 in cells E1:E3
F1: =SUMPRODUCT(SUMIF(C1:C13,E1:E3,B1:B13))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"steph44haf" wrote:

Hello,

I am not sure if this can be done or not, but I am looking to find a formula
or something to sum values of a list, but only sum if there is more than one
product.
Here is the example: I want to add 60971, 60975, 60982 dollar amounts to
get a grand total, but I don't want to include 61097 or 60972 or 09710
because there is only 1 item each. I tried to use a pivot table but got
stuck on excluding the 61097 and 60972 and 09710 amounts.

Item Number Amount Base Number
61097-9Z $7.00 61097
60971-115Z $14.00 60971
60971-115A $2.00 60971
09710-85A $14.00 09710
60971-8Z $5.00 60971
60972-BRN $2.00 60972
60975-75A $3.00 60975
60975-85A $3.00 60975
609753-9A $16.00 60975
60982-3032 $9.75 60982
60982-3230 $9.75 60982
60982-3232 $7.00 60982

Any help you can give is great!

Thanks,

Steph

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Tricky Formula

Yes, this is exactly what I needed. Thank you! Thank you!

"Ron Coderre" wrote:

Then....how about this:
=SUMPRODUCT((COUNTIF(C2:C13,C2:C13)1)*B2:B13)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"steph44haf" wrote:

Ron,

That is a good formula, but the data set is actually a lot larger than what
I provided and I would not have the time to type in the different number. I
was hoping the formula could identify those that have more than 1 item listed
and then from there sum the amounts.

"Ron Coderre" wrote:

Try something like this:

With your data list in A1:C13

F1: =SUMPRODUCT(SUMIF(C1:C13,{60971,60975,60982},B1:B1 3))

OR
If you enter 60971, 60975, and 60982 in cells E1:E3
F1: =SUMPRODUCT(SUMIF(C1:C13,E1:E3,B1:B13))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"steph44haf" wrote:

Hello,

I am not sure if this can be done or not, but I am looking to find a formula
or something to sum values of a list, but only sum if there is more than one
product.
Here is the example: I want to add 60971, 60975, 60982 dollar amounts to
get a grand total, but I don't want to include 61097 or 60972 or 09710
because there is only 1 item each. I tried to use a pivot table but got
stuck on excluding the 61097 and 60972 and 09710 amounts.

Item Number Amount Base Number
61097-9Z $7.00 61097
60971-115Z $14.00 60971
60971-115A $2.00 60971
09710-85A $14.00 09710
60971-8Z $5.00 60971
60972-BRN $2.00 60972
60975-75A $3.00 60975
60975-85A $3.00 60975
609753-9A $16.00 60975
60982-3032 $9.75 60982
60982-3230 $9.75 60982
60982-3232 $7.00 60982

Any help you can give is great!

Thanks,

Steph

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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Formula to show zero if reference cell is zero? tricky! Simon Lloyd Excel Worksheet Functions 3 June 13th 06 11:31 PM
Help with a tricky formula...... nevi Excel Discussion (Misc queries) 1 May 31st 06 10:39 PM
Tricky formula Steve Excel Discussion (Misc queries) 3 April 17th 06 05:06 PM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM


All times are GMT +1. The time now is 04:42 AM.

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

About Us

"It's about Microsoft Excel"