+ Reply to Thread
Results 1 to 9 of 9

Get calculations to spill along with the FILTERed or UNIQUEd data

  1. #1
    Registered User
    Join Date
    11-13-2018
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Get calculations to spill along with the FILTERed or UNIQUEd data

    Hello all

    I have 2 sheets of data out of which I'm trying to create several tables. Problem is, while I can create a source data for tables with FILTER & UNIQUE, I can't seem to get the calculations to spill automatically to match the filtered and uniqued data.

    It could be better visualized in the attached sample. Calculations in B2, D2, F2 and N2 are what I'm trying to spill automatically. Could this even be done?

    PS: The original data is quite large and ever growing, so I'd prefer to stick to column references for range references in the formulas if/whenever possible.


    I don't have to use the functions I did in the manually calculated columns, as a rule. If there are other functions that would get the calculations to spill, or other methods that gives the same results, I'm open to using them.

    Also, while not an extreme necessity, if there is a way to remove the 0 at the bottom of column A that would be great. I understand why it's there, but it's visually really disturbing me But as far as I could tell it's not disrupting the formulas so if it's going to complicate things it's not very important.

    Best regards.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,410

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    A1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-13-2018
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    Dee3.JPG

    Hello TMS

    Thanks for quick response!

    A1 and D2 worked but F2 formula seemed to ignore IF.

    Also, I believe N2 and B2 cannot be spilled the same way?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,410

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also, I believe N2 and B2 cannot be spilled the same way?
    I suspect not, given that you want to work with full columns and the formula in column A starts in cell A1.

    Maybe, if you used Dynamic Named Ranges starting in cell A2, you could make it work. As it is, you can't copy the spilled formula into the formula in column B.

  5. #5
    Registered User
    Join Date
    11-13-2018
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    I'm not familiar with DNR. How would it work? Please note the original data in "Other Sheet" is about 550.000 rows (A2:J553771 to be exact, and will continue to grow), so how well would a DNR perform with such data?

    And how would you recommend me to proceed?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,410

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    The attached updated sample workbook demonstrates using Dynamic Named Ranges and also a Structured Table approach.

    I have been unable to create a formula that spills for column B or column N. However, I have inserted a formula in column B that can be copied down and will return a blank cell if it extends beyond the spilled formula in column A. I can't think of anything for column N.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-13-2018
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    Hello TMS

    Just got to the office and I will try to get it work on the main data. In any case, you've been amazingly helpful!

    Many thanks!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,410

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    You're welcome. Thanks for the rep.

  9. #9
    Registered User
    Join Date
    11-13-2018
    Location
    Istanbul
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Re: Get calculations to spill along with the FILTERed or UNIQUEd data

    Hello TMS

    After trying endless functions, I finally got it to work. (for N column)

    =IFERROR(IFS(FILTER(M:M,ISNUMBER(M:M))=84,"SOLD",FILTER(M:M,ISNUMBER(M:M))=95,"SOLD"),"KEEP")

    I'll be trying something similar for B, I'll let you know if it works!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  2. Running calculations on filtered data
    By outatime21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2018, 03:28 PM
  3. [SOLVED] Calculations on filtered data
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 04-18-2014, 04:17 PM
  4. Replies: 3
    Last Post: 11-09-2013, 11:50 PM
  5. calculations based on filtered data
    By reltihmd in forum Excel General
    Replies: 2
    Last Post: 10-26-2012, 04:31 PM
  6. calculations and filtered data??
    By Barnapkin in forum Excel General
    Replies: 6
    Last Post: 01-30-2009, 11:40 AM
  7. Doing calculations on data that is auto filtered
    By Glenn Mulno in forum Excel General
    Replies: 4
    Last Post: 04-06-2005, 06:06 PM

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