+ Reply to Thread
Results 1 to 4 of 4

Plz help.. When a prodhiernr changes i want to sum the costs for this product.

  1. #1
    Registered User
    Join Date
    02-15-2006
    Posts
    7

    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

  2. #2
    wAyne
    Guest

    RE: 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. #3
    Bob Umlas
    Guest

    Re: Plz help.. When a prodhiernr changes i want to sum the costs for this product.

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


    "JackSchilder" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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. #4
    Tom Ogilvy
    Guest

    Re: 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" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1