Closed Thread
Results 1 to 6 of 6

Add sub totals

  1. #1
    Registered User
    Join Date
    04-18-2007
    Posts
    5

    Question Add sub totals

    I am putting together a list like this;
    Client Location Product Cost Sub-total
    ABD Here Slurry $125.
    ABE There Mud $525. $650.

    Where I want to enter the cost and have Excel do the sub-total automatically.
    Is there an easy way to do this? The spread sheet is already 147 entries long and will only grow and I don't want to have to figure out the sub-totals each time.

    Thank you ahead of time because you have all been a great help in the past.
    Sindy

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    is there any criteria to the subtotal, or is it simply the total of all entried in column D?

    if so, in cell e2 and copied down as far as you want

    =if(isblank(d2,"",sum(d$1:d2))
    not a professional, just trying to assist.....

  3. #3
    Registered User
    Join Date
    04-18-2007
    Posts
    5
    Job # Job Name Location Treatment Cost YR Totals

    2001-07 Western Rock Office Patch 126.00
    2002-07 Rich Electric Patch 100.00
    2003-07 Heritage Park HOA Slurry 410.00


    This is what I am trying to do.
    Job # in A then Job Name in B then Location in C then Treatment in D then Cost in E and then have a running sub-total in F.
    Also to enter a function would I just highlight F and paste?

    I am soooo lost. LOL I would upload the file but I can not upload an .xls file here.
    Last edited by sindy1232; 05-26-2007 at 11:43 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    try this entered in cell f2 and then copy down column f for as many rows as you may ultimately need.

    =if(isblank(e2,"",sum(e$1:e2))

    this will sum all entries in column e down to current row

  5. #5
    Registered User
    Join Date
    04-18-2007
    Posts
    5
    Thanks a ton.
    This is what I found out and it worked.

    In cell F4, put 0. In cell F5 put this formula:

    =IF(E5="",F4,F4+E5)

    Then fill down from F5 (see Fill Down With Fill Handle) to where you need subtotals.

    Because your cost column contains blanks, I can't test for blanks and hide the totals after your last cost entry.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read forum rules below. Thread locked for cross posting

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed 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