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]