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


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=512702

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Plz help.. When a prodhiernr changes i want to sum the costs for t

Jack,

You could use the Subtotal function -- under the Data menu,.....

wAyne_

"JackSchilder" wrote:


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=512702


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default Plz help.. When a prodhiernr changes i want to sum the costs for this product.

Builtin to Excel - look at Data/Subtotals...


"JackSchilder"
wrote in message
news:JackSchilder.23a020_1140015609.2319@excelforu m-nospam.com...

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=512702



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Plz help.. When a prodhiernr changes i want to sum the costs for this product.

Sub abc()
Dim i As Long
Dim startrw As Long
i = 3
startrw = 2
Do While Cells(i - 1, 1) < ""
If Cells(i - 1, 1).Value < Cells(i, 1).Value Then
Cells(i, 1).Resize(2, 1).EntireRow.Insert
Cells(i, 3).Formula = "=Sum(C" & startrw & _
":C" & i - 1 & ")"
i = i + 2
startrw = i
End If
i = i + 1
Loop
End Sub

--
Regards,
Tom Ogilvy



"JackSchilder"
wrote in message
news:JackSchilder.23a020_1140015609.2319@excelforu m-nospam.com...

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=512702



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
Product Code and Product Description setup Nastyashman Excel Worksheet Functions 4 July 6th 09 05:48 PM
I need a product key for my Trail product, 2007 Microsoft Office s sltchsyi Setting up and Configuration of Excel 0 May 4th 09 01:32 AM
COMPARE CURRENT MORTAGAGE COSTS TO NEW MORTAGAGE COSTS NEW2TECHBZ Excel Discussion (Misc queries) 1 April 5th 06 08:47 AM
COMPARE CURRENT MORTAGAGE COSTS TO NEW MORTAGAGE COSTS NEW2TECHBZ Excel Discussion (Misc queries) 0 April 5th 06 08:28 AM
Plz help.. When a prodhiernr changes i want to sum the costs for this product. JackSchilder Excel Discussion (Misc queries) 5 February 16th 06 10:30 AM


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