+ Reply to Thread
Results 1 to 3 of 3

Add multiple sets of numbers between blank cells

  1. #1
    Registered User
    Join Date
    12-15-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    9

    Add multiple sets of numbers between blank cells

    My spreadsheet is multiple rows and columns of sales data with two blank rows between salespeople. Ex:

    $100 ABC Inc. John #101
    $150 XYZ Inc. John #101


    $200 Golf Inc. Sue #102
    $150 BBall Inc. Sue #102

    What I need is this:

    $100 ABC Inc. John #101
    $150 XYZ Inc. John #101
    $250

    $200 Golf Inc. Sue #102
    $150 BBall Inc. Sue #102
    $350

    Where the sum of each salesperson's sales figures is shown and formatted. I've been doing this manually. I'm having difficulty figuring out how to do this using VBA. I can do the formatting, and conceptually I see what needs to be done, I don't have enough experience/knowledge of VBA to make it happen.
    Last edited by on top; 12-16-2009 at 05:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Add multiple sets of numbers between blank cells

    Have you tried the Subtotal function found in the DATA menu? It allows you to insert sums, counts, etc at change in any field you want....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-15-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Add multiple sets of numbers between blank cells

    Excellent! Thank you! I didn't know about the Subtotal function, thank you for suggesting it. It worked just fine.

    I was able to use "Record Macro" and the function to get the proper vba code and incorporated that into my macro. A little moving and fiddling around to get the formatting right and mission accomplished.

+ 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