+ Reply to Thread
Results 1 to 11 of 11

Filter using a formula to return results on different worksheet

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Filter using a formula to return results on different worksheet

    On the attached, I want to filter the data! worksheet to only return values that have no information in the "Reason" column C.

    I want the results to return on a separate tab/worksheet (as shown).

    I assume this is some kind of SUMPRODUCT formula?

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filter using a formula to return results on different worksheet

    Try this in A2:

    =IFERROR(INDEX(data!A:A,SMALL(IF(data!$C$2:$C$100="",ROW(data!$C$2:$C$100)),ROWS($1:1))),"") Ctrl Shift Enter

    Drag to the right and down.

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Filter using a formula to return results on different worksheet

    Quote Originally Posted by 63falcondude View Post
    Try this in A2:

    =IFERROR(INDEX(data!A:A,SMALL(IF(data!$C$2:$C$100="",ROW(data!$C$2:$C$100)),ROWS($1:1))),"") Ctrl Shift Enter

    Drag to the right and down.
    Perfect - much obliged.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filter using a formula to return results on different worksheet

    Happy to help.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Filter using a formula to return results on different worksheet

    To make easy work of this, use a pivot table...

    Rows >> Customer
    Vaules >> Sum of Charge
    Filters >> Reason (Filter for blank)
    HTH
    Regards, Jeff

  6. #6
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Filter using a formula to return results on different worksheet

    Actually, I'd like to add a little more to this.

    I want to return the rows where there is a value in the Charge column B BUT no value in the Reason column C

    I'm manipulated the example again to show the results I'm trying for.

    Thanks again.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Filter using a formula to return results on different worksheet

    And sorry - I can't use a pivot table for this.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Filter using a formula to return results on different worksheet

    =IFERROR(INDEX(data!A:A,SMALL(IF(data!$C$2:$C$100="",IF(data!$B$2:$B$100<>"",ROW(data!$C$2:$C$100))),ROWS($1:1))),"") >> CSE

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filter using a formula to return results on different worksheet

    Change made in purple:

    =IFERROR(INDEX(data!A:A,SMALL(IF((data!$B$2:$B$100<>"")*(data!$C$2:$C$100=""),ROW(data!$C$2:$C$100)),ROWS($1:1))),"") Ctrl Shift Enter

  10. #10
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Filter using a formula to return results on different worksheet

    Many thanks - one last thing, can I ignore 0 values?

    New example attached that should illustrate where I don't want to see 0 values.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Filter using a formula to return results on different worksheet

    As you were already using 63falcondude's array entered formula*, modify it to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Copy/Filter Results That Are Not Blank/Zero From One Worksheet to Another
    By davis909 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2017, 02:46 AM
  2. Replies: 3
    Last Post: 04-27-2017, 05:25 PM
  3. Hyperlink to filter results in another worksheet
    By seanblanton in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2013, 11:16 AM
  4. Filter results on a different worksheet.
    By jleyenhorst in forum Excel General
    Replies: 5
    Last Post: 10-19-2011, 02:11 AM
  5. Using VBA to Filter then copy results to another worksheet
    By Chris_J in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 02:46 PM
  6. auto filter very slow to return results
    By martindwilson in forum Excel General
    Replies: 3
    Last Post: 02-16-2009, 09:08 AM

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