Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toto
 
Posts: n/a
Default Trying to find sales figures of certain products€¦

I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default Trying to find sales figures of certain products.

Nel post
*Toto* ha scritto:

I need a formula to find how many productA(f.ex. apples) have I sold
at the same time as i have sold productB (f.ex bananas) (with
identical invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00


You can use Autofilter, filtering on the column with invoice number


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toto
 
Posts: n/a
Default Trying to find sales figures of certain products€¦

Thanks for your help. I am sorry, but may be I haven't raised my question
clear.
Some invoices have both product A and product B, some have only product A or
B.
I am looking for the salesamount for product A only when it is sold together
with product B (there are 15.000 lines...). Perhaps I can extend my chart
with a column with a function that return the amount if the criteria in the
function is right..? But how ??

Toto :-)

Toto skrev:

I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Franz Verga
 
Posts: n/a
Default Trying to find sales figures of certain products.

Nel post
*Toto* ha scritto:

Thanks for your help. I am sorry, but may be I haven't raised my
question clear.
Some invoices have both product A and product B, some have only
product A or B.
I am looking for the salesamount for product A only when it is sold
together with product B (there are 15.000 lines...). Perhaps I can
extend my chart with a column with a function that return the amount
if the criteria in the function is right..? But how ??

Toto :-)

Toto skrev:

I need a formula to find how many productA(f.ex. apples) have I sold
at the same time as i have sold productB (f.ex bananas) (with
identical invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00


Maybe you can try to use a Pivot Table. It's a very good way to summarize
informations.


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
 
Posts: n/a
Default Trying to find sales figures of certain products.

=SUMPRODUCT((J1:J9=50)*(K1:K9={"apples","bananas"} )*L1:L9)

--
Don Guillett
SalesAid Software

"Toto" wrote in message
...
I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default Trying to find sales figures of certain products€¦

Try this as an array formula (enter with Ctrl+Shift+Enter)

=IF(COUNTIF($A$2:$A$10,50)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10="apples")*($A$2:$A$10=50),0)),"")

Looking for "apples" in Invoice 50 by checking invoice count. If it is 1,
returns blank.

You could change hold the parameters (invoivce number and product in a cell
(e.g. X1 & X2).

=IF(COUNTIF($A$2:$A$10,X1)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10=X2)*($A$2:$A$10=X1),0)),"")

HTH

"Toto" wrote:

I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toto
 
Posts: n/a
Default Trying to find sales figures of certain products€¦

Thank you for the formula, but there is a problem; it returns also the amount
of the bananas if there are more than one occurrence of the invoicenumber.
At the end of the formula you wrote ,0)),"") . When I try to use this
formula, it changes to *0)),""). What does this mean?? Could this be the
reason ?

I would appreciate your answer...
Toto




Toppers skrev:

Try this as an array formula (enter with Ctrl+Shift+Enter)

=IF(COUNTIF($A$2:$A$10,50)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10="apples")*($A$2:$A$10=50),0)),"")

Looking for "apples" in Invoice 50 by checking invoice count. If it is 1,
returns blank.

You could change hold the parameters (invoivce number and product in a cell
(e.g. X1 & X2).

=IF(COUNTIF($A$2:$A$10,X1)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10=X2)*($A$2:$A$10=X1),0)),"")

HTH

"Toto" wrote:

I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default Trying to find sales figures of certain products€¦

I got the following results in the 'formula 'column using:

=IF(AND(COUNTIF($A$2:$A$10,$A2)1,$B2="apples"),IN DEX($C$2:$C$10,MATCH(1,($B$2:$B$10="apples")*($A$2 :$A$10=$A2),0)),"")

entered as an array formula.

invoice product kg formula
50 apples 7 7
50 bananas 2
51 apples 1
52 apples 1
53 apples 4 4
53 bananas 2
54 bananas 2
55 apples 3 3
55 bananas 2


You should not get the *0 in the formula.


hth


"Toto" wrote:

Thank you for the formula, but there is a problem; it returns also the amount
of the bananas if there are more than one occurrence of the invoicenumber.
At the end of the formula you wrote ,0)),"") . When I try to use this
formula, it changes to *0)),""). What does this mean?? Could this be the
reason ?

I would appreciate your answer...
Toto




Toppers skrev:

Try this as an array formula (enter with Ctrl+Shift+Enter)

=IF(COUNTIF($A$2:$A$10,50)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10="apples")*($A$2:$A$10=50),0)),"")

Looking for "apples" in Invoice 50 by checking invoice count. If it is 1,
returns blank.

You could change hold the parameters (invoivce number and product in a cell
(e.g. X1 & X2).

=IF(COUNTIF($A$2:$A$10,X1)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10=X2)*($A$2:$A$10=X1),0)),"")

HTH

"Toto" wrote:

I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default Trying to find sales figures of certain products€¦

simpler formula ...

=IF(AND(COUNTIF($A$2:$A$10,$A2)1,$B2="apples"),IN DEX($C$2:$C$10,MATCH($A2,$A$2:$A$10,0)),"")

Entered with Ctrl+Shift+Enter

"Toppers" wrote:

I got the following results in the 'formula 'column using:

=IF(AND(COUNTIF($A$2:$A$10,$A2)1,$B2="apples"),IN DEX($C$2:$C$10,MATCH(1,($B$2:$B$10="apples")*($A$2 :$A$10=$A2),0)),"")

entered as an array formula.

invoice product kg formula
50 apples 7 7
50 bananas 2
51 apples 1
52 apples 1
53 apples 4 4
53 bananas 2
54 bananas 2
55 apples 3 3
55 bananas 2


You should not get the *0 in the formula.


hth


"Toto" wrote:

Thank you for the formula, but there is a problem; it returns also the amount
of the bananas if there are more than one occurrence of the invoicenumber.
At the end of the formula you wrote ,0)),"") . When I try to use this
formula, it changes to *0)),""). What does this mean?? Could this be the
reason ?

I would appreciate your answer...
Toto




Toppers skrev:

Try this as an array formula (enter with Ctrl+Shift+Enter)

=IF(COUNTIF($A$2:$A$10,50)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10="apples")*($A$2:$A$10=50),0)),"")

Looking for "apples" in Invoice 50 by checking invoice count. If it is 1,
returns blank.

You could change hold the parameters (invoivce number and product in a cell
(e.g. X1 & X2).

=IF(COUNTIF($A$2:$A$10,X1)1,INDEX($C$2:$C$10,MATC H(1,($B$2:$B$10=X2)*($A$2:$A$10=X1),0)),"")

HTH

"Toto" wrote:

I need a formula to find how many productA(f.ex. apples) have I sold at the
same time as i have sold productB (f.ex bananas) (with identical
invoicenumber), f.ex.:
invoiceno. product kg
50 apples 1,00
50 bananas 2,00
51 apples 1,00
52 apples 1,00
53 apples 1,00
53 bananas 2,00
54 bananas 2,00
55 apples 1,00
55 bananas 2,00

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
Help with vehicle sales forecasting with Excel annuarj Excel Worksheet Functions 0 February 16th 06 02:42 AM
Pivot table for reporting sales performance Ram Excel Discussion (Misc queries) 2 February 6th 06 10:06 AM
backing sales tax out of a total including sales tax trent Excel Worksheet Functions 2 August 24th 05 07:06 AM
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
Help with sales chart kim Charts and Charting in Excel 1 January 20th 05 02:38 PM


All times are GMT +1. The time now is 12:42 PM.

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"