+ Reply to Thread
Results 1 to 5 of 5

Dynamic calculations for cost when filtering

  1. #1
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Dynamic calculations for cost when filtering

    Hi Guys,

    I have a spreadsheet that I use for adding up various invoices.

    What I wanted to know is when I use the auto filter command for the various invoice numbers.

    What I wanted to know is, when I autofilter my sheet to a particular invoice number can I get the total cost in the 'Cost' field to dynamically change to reflect only the amount for a particular invoice without using a Pivot Table?

    Could I use the OFFSET command?

    I have over a dozen sheets identical for various cost centres so it would be nice if this could be done.

    Thanks in advance.
    Last edited by VBA Noob; 10-04-2007 at 02:24 PM.
    Best Regards.

    Michael
    -----------------------------------
    Windows Vista, Microsoft Office 2007

  2. #2
    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
    Does link help

    http://www.contextures.com/xlFunctions01.html#Filter

    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 !!!

  3. #3
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    Thanks VBA Noob, I shall check out the link.

  4. #4
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    @VBA Noob

    Thank you so much for that link, the SUBTOTAL function is absolutely amazing and is exactly what I needed, I can't believe I have not come across this function in all my time using Excel.

    It worked great so thanks again for your help

  5. #5
    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
    Glad it helped

    VBA Noob

+ 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