Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JackSchilder
 
Posts: n/a
Default Plz help.. When a prodhiernr changes i want to sum the costs for this product.


I also posted this on excel programming :) im desperate for a reply.

Hi there,

so i have for example :

prodhiernr artnr cost
1110050 123456 50
1110050 123544 60
1110050 234343 70
1110051 534222 90
1110051 353533 100
1110051 124643 80

When de prodhiernr changes to 1110051 i want to sum the total cost for
prodhiernr 1110050 and later on for the other products also (the list
is very long).. Does anyone have a clue how to do this?

Thanks in advance


--
JackSchilder
------------------------------------------------------------------------
JackSchilder's Profile: http://www.excelforum.com/member.php...o&userid=31577
View this thread: http://www.excelforum.com/showthread...hreadid=512705

  #2   Report Post  
Posted to microsoft.public.excel.misc
Gizmo63
 
Posts: n/a
Default Plz help.. When a prodhiernr changes i want to sum the costs for t

If this is just a data dump then the easiest way is to use the sub total
function.

Highlight the data including the headers, select Data Subtotals

At each change in : prodhiernr
Use function: Sum
Add subtotal to: [check the cost box]

Click OK

If you want a formula to run in a column next to your data then post up and
we'll try to resolve it.

hth
Giz

"JackSchilder" wrote:


I also posted this on excel programming :) im desperate for a reply.

Hi there,

so i have for example :

prodhiernr artnr cost
1110050 123456 50
1110050 123544 60
1110050 234343 70
1110051 534222 90
1110051 353533 100
1110051 124643 80

When de prodhiernr changes to 1110051 i want to sum the total cost for
prodhiernr 1110050 and later on for the other products also (the list
is very long).. Does anyone have a clue how to do this?

Thanks in advance


--
JackSchilder
------------------------------------------------------------------------
JackSchilder's Profile: http://www.excelforum.com/member.php...o&userid=31577
View this thread: http://www.excelforum.com/showthread...hreadid=512705


  #3   Report Post  
Posted to microsoft.public.excel.misc
JackSchilder
 
Posts: n/a
Default Plz help.. When a prodhiernr changes i want to sum the costs for this product.


Thanks for the quick reply.

I actually was looking for a formula to run in a column next to it.

Gizmo63 Wrote:
If this is just a data dump then the easiest way is to use the sub
total
function.

Highlight the data including the headers, select Data Subtotals

At each change in : prodhiernr
Use function: Sum
Add subtotal to: [check the cost box]

Click OK

If you want a formula to run in a column next to your data then post up
and
we'll try to resolve it.

hth
Giz

"
[/color]


--
JackSchilder
------------------------------------------------------------------------
JackSchilder's Profile: http://www.excelforum.com/member.php...o&userid=31577
View this thread: http://www.excelforum.com/showthread...hreadid=512705

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gizmo63
 
Posts: n/a
Default Plz help.. When a prodhiernr changes i want to sum the costs f

Here you go Jack,

Assume your data table in cols A-B-C, new subtotals in col D and headers in
row 1.
Put the following in D" and drag down:

=IF(B2=B3,"",SUMPRODUCT(--($B$1:$B$10000=B2),$D$1:$D$10000))

Unfortunately in a sumproduct you cannot simply specify a column you have to
define a set of cells, so just need to make sure it's big enough.

hth

Giz


"JackSchilder" wrote:


Thanks for the quick reply.

I actually was looking for a formula to run in a column next to it.

Gizmo63 Wrote:
If this is just a data dump then the easiest way is to use the sub
total
function.

Highlight the data including the headers, select Data Subtotals

At each change in : prodhiernr
Use function: Sum
Add subtotal to: [check the cost box]

Click OK

If you want a formula to run in a column next to your data then post up
and
we'll try to resolve it.

hth
Giz

"



--
JackSchilder
------------------------------------------------------------------------
JackSchilder's Profile: http://www.excelforum.com/member.php...o&userid=31577
View this thread: http://www.excelforum.com/showthread...hreadid=512705

[/color]
  #5   Report Post  
Posted to microsoft.public.excel.misc
JackSchilder
 
Posts: n/a
Default Plz help.. When a prodhiernr changes i want to sum the costs for this product.


Thanks a lot for your reply.

Ill give it a try :)

To bad excel doesnt auto calculate the amount of rows!

Im using Jetreports to get the data out of a database, nice program but
a bit hard to handle at start when you dont much of excel ;)


--
JackSchilder
------------------------------------------------------------------------
JackSchilder's Profile: http://www.excelforum.com/member.php...o&userid=31577
View this thread: http://www.excelforum.com/showthread...hreadid=512705



  #6   Report Post  
Posted to microsoft.public.excel.misc
Gizmo63
 
Posts: n/a
Default Plz help.. When a prodhiernr changes i want to sum the costs f

Here's a thought, if the data is already sorted then use
=IF(B2=B3,"",SUMPRODUCT(--($B$2:$B2=B2),$D$2:$D2))

The headers are in row 1, the starting point is in row 2 and the range end
(initially $b2) will grow as you drag it down the rows. Now it only looks at
the rows above the formula instead of the whole column.

Should have thought of it in the first place :-(

Giz

"JackSchilder" wrote:


Thanks a lot for your reply.

Ill give it a try :)

To bad excel doesnt auto calculate the amount of rows!

Im using Jetreports to get the data out of a database, nice program but
a bit hard to handle at start when you dont much of excel ;)


--
JackSchilder
------------------------------------------------------------------------
JackSchilder's Profile: http://www.excelforum.com/member.php...o&userid=31577
View this thread: http://www.excelforum.com/showthread...hreadid=512705


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
Formulations? rlphelp Excel Discussion (Misc queries) 3 November 10th 05 04:40 PM
Counting Rows/Columns for Copying Formulas SamDev Excel Discussion (Misc queries) 0 June 24th 05 04:13 AM
Percentages Darryl Charts and Charting in Excel 2 May 21st 05 04:31 PM
How to set a formula to count the product appear how manytime AMY Excel Worksheet Functions 3 March 21st 05 09:49 AM
Which function(s)? LB Excel Worksheet Functions 3 January 5th 05 06:19 PM


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