Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Matz
 
Posts: n/a
Default Complicated sort function with sort and sum

Hi

I have a dokument with storage figures and i need to sort them.
The problem is that one type of product can be found in several rows under
different numbers and price. The document has SEVERAL 100 OF PRODUKTS.

For exampel:

prod nr
1245 candy 123$
1245 candy 321$
4512 candy 213$

What i need is to sum this 3 rows to 1 row and get the total value of of one
kind of produkt, in this case "candy"

Result: candy ***$

Please advise im lost !!
  #2   Report Post  
Ian
 
Posts: n/a
Default

Have a look at the SUMIF function.

eg =SUMIF(B2:B100,"candy",C2:C100) assuming product type is in column B and
price in column C

--
Ian
--
"Matz" wrote in message
...
Hi

I have a dokument with storage figures and i need to sort them.
The problem is that one type of product can be found in several rows under
different numbers and price. The document has SEVERAL 100 OF PRODUKTS.

For exampel:

prod nr
1245 candy 123$
1245 candy 321$
4512 candy 213$

What i need is to sum this 3 rows to 1 row and get the total value of of
one
kind of produkt, in this case "candy"

Result: candy ***$

Please advise im lost !!



  #3   Report Post  
Morten
 
Posts: n/a
Default

If you want to make it very simple you can make the sum formula like this :

=SUBTOTAL(9,D5:D14)

Excel will automatically make this formula in case you filter a column and
in the cell right beneath the last line in the table where you want to sum
you press the sum icon (Sigma shaped). The formula breakdown is quite simple
in the sample above here the "9" is a sum function - read more if you want in
the help file. The last part of the formula is the sum range being all the
rows in your table. In this case you should select cell D15 and press the sum
icon to get this result.

Brgds,
Morten

"Ian" wrote:

Have a look at the SUMIF function.

eg =SUMIF(B2:B100,"candy",C2:C100) assuming product type is in column B and
price in column C

--
Ian
--
"Matz" wrote in message
...
Hi

I have a dokument with storage figures and i need to sort them.
The problem is that one type of product can be found in several rows under
different numbers and price. The document has SEVERAL 100 OF PRODUKTS.

For exampel:

prod nr
1245 candy 123$
1245 candy 321$
4512 candy 213$

What i need is to sum this 3 rows to 1 row and get the total value of of
one
kind of produkt, in this case "candy"

Result: candy ***$

Please advise im lost !!




  #4   Report Post  
Ian
 
Posts: n/a
Default

I didn't know about this Excel function, but then I've never needed it.
Certainly an easier option than mine, since Matz has hundrends of products
to deal with.

--
Ian
--
"Morten" wrote in message
...
If you want to make it very simple you can make the sum formula like this
:

=SUBTOTAL(9,D5:D14)

Excel will automatically make this formula in case you filter a column and
in the cell right beneath the last line in the table where you want to sum
you press the sum icon (Sigma shaped). The formula breakdown is quite
simple
in the sample above here the "9" is a sum function - read more if you want
in
the help file. The last part of the formula is the sum range being all the
rows in your table. In this case you should select cell D15 and press the
sum
icon to get this result.

Brgds,
Morten

"Ian" wrote:

Have a look at the SUMIF function.

eg =SUMIF(B2:B100,"candy",C2:C100) assuming product type is in column B
and
price in column C

--
Ian
--
"Matz" wrote in message
...
Hi

I have a dokument with storage figures and i need to sort them.
The problem is that one type of product can be found in several rows
under
different numbers and price. The document has SEVERAL 100 OF PRODUKTS.

For exampel:

prod nr
1245 candy 123$
1245 candy 321$
4512 candy 213$

What i need is to sum this 3 rows to 1 row and get the total value of
of
one
kind of produkt, in this case "candy"

Result: candy ***$

Please advise im lost !!






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



All times are GMT +1. The time now is 08:52 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"