+ Reply to Thread
Results 1 to 3 of 3

How can I sum/count a list until I hit a blank cell?

  1. #1
    Registered User
    Join Date
    08-03-2009
    Location
    NY, NY
    MS-Off Ver
    Excel 2003
    Posts
    60

    How can I sum/count a list until I hit a blank cell?

    I have my data laid out this way:

    Job #1
    Day 1
    Day 2
    (blank line)
    Job #2
    Day 1
    Day 2
    Day 3
    Day 4
    (blank line)
    Job #3
    Day 1
    (blank line)


    etc...

    To the right are several columns of data that correspond to the work we did at each job. I also have several totals (both "sum" and "count"/"counta") where I have specified the ranges to add/count, beginning at "Day 1" for each job, and reaching to the blank cell.

    Currently, I hit "autosum", and then drag the range from the first day until the blank line. Is there a way to simply place a formula on top of a column of numbers, and tell it to add/count until it reaches an empty cell? That would sure save a lot of time.

    Thanks a lot.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How can I sum/count a list until I hit a blank cell?

    sorry you want to total what? just job 1 ? i think you should perhaps put your data like this then you can use sum if sumif(a1:a100,"job #1",c1:c100)
    Job #1
    Job #1 Day 1
    Job #1 Day 2

    Job #2
    Job #2 Day 1
    Job #2 Day 2
    Job #2 Day 3
    Job #2 Day 4

    Job #3
    Job #3 Day 1
    Job #3 Day 2
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How can I sum/count a list until I hit a blank cell?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

+ 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