On Feb 16, 7:21 pm, "Tom Ogilvy" <twogi...@msn.com> wrote:
> Turn on the macro recorder while you do Data=> sort , then do Data=>Subtotal
>
> Turn off the macro recorder and adjust the recorded code if necessary
>
> --
> Regards,
> Tom Ogilvy
>
> "John" <geotra...@yahoo.com> wrote in message
>
> news:(E-Mail Removed)...
>
> > On Feb 15, 2:43 pm, Tom Ogilvy <TomOgi...@discussions.microsoft.com>
> > wrote:
> >> why not insert a row above your headers and use
>
> >> =Sum(C3:C1000)
> >> (as an example - adjust the range to suit).
>
> >> then you should see the total as you enter the data.
>
> >> --
> >> Regards,
> >> Tom Ogilvy
>
> >> "John" wrote:
> >> > Hi.
>
> >> > I have a spreadsheet where I add multiple entries every day.
>
> >> > Here's the layout:
>
> >> > Date cust # sale COMM
>
> >> > For sake of ease, I add about 6 customers straight down the column.
> >> > At the end of the period I'd like to run a simple macro that will show
> >> > the total sales and COMMs for every customer. I've been going the
> >> > long way about this for awhile by selecting the Sumof symbol and
> >> > selecting the fields relevant, but it is becoming very cumbersome as I
> >> > have hundreds of entries every time I run this report.
>
> >> > Thanks for any input.
>
> >> > John
>
> > I apologize for not being more clear. I want to automate the sorting
> > of all cust. # and then the total sum of COMMs for each cust. #.
>
> > Any suggestions?
>
> > Thanks
After playing around with this, this appears to do what I need.
Thanks so much Tom! You're a big help!
|