+ Reply to Thread
Results 1 to 2 of 2

Subtotal unique values in autofiltered field

  1. #1
    Forum Contributor
    Join Date
    11-14-2007
    Posts
    142

    Subtotal unique values in autofiltered field

    Sheet1 contains an autofiltered table which includes a column headed "ID" formatted as text. and a column headed "AMOUNT" (number)
    Named ranges Sheet1!ID and Sheet2!AMOUNT embrace the used areas
    Sheet2 contains a table of two columns also headed ID (text) and AMOUNT (number)
    Named ranges Sheet2!ID and Sheet2!AMOUNT embrace the used areas
    In Sheet2, the values contained in column ID are unique.
    In Sheet1, the values contained in column ID are not unique but each entry appears in column ID of Sheet 2.

    (yeah, I know, this is beginning to sound like a problem better handled in Access).

    I should like a formula (or approach) for calculating the total of all values contained in Sheet2!AMOUNT for those cases where the corresponding value in Sheet2!ID matches at least one instance of the filtered values displayed in Sheet1!ID

    If it is any help, the values in Sheet1!AMOUNT are the same values as Sheet2!AMOUNT. However a simple SUBTOTAL(9,Sheet1!AMOUNT) does not work because of duplicated values in Sheet1!ID.

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    If I understand your question correctly you will probably be able to use SUMPRODUCT to get the desired result. However, I can't provide an exact formula or example as I don't know exactly what your data looks like. Can you post a copy or example of your data?

+ 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