+ Reply to Thread
Results 1 to 7 of 7

V Stack Filter with condition

  1. #1
    Forum Contributor
    Join Date
    10-08-2014
    Location
    Bengaluru, India
    MS-Off Ver
    O 365
    Posts
    156

    Red face V Stack Filter with condition

    I have a list of work order numbers, what i want to achoeve is in my new sheet, get the list of all the unique work orders which are only starting with number "7".
    How do i achieve this
    one more thing is when i use this in a fresh sheet the vstack function is working but when used in a sheet with some data it is showing #SPILL error,

    I know this might be a simple question, but since Vstack and Hstack are new function which are introduced recently , Chatgpt doesnt have answer because these are included after Sep-2021

    can any has answer?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,350

    Re: V Stack Filter with condition

    Why ChatGPT? It makes a lot of moistakes.

    Try this:

    =LET(l,IFERROR(--LEFT(Sheet1!A:A,1),0),SORT(UNIQUE(FILTER(Sheet1!A:A,(ISNUMBER(l))*(l=7)))))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-08-2014
    Location
    Bengaluru, India
    MS-Off Ver
    O 365
    Posts
    156

    Re: V Stack Filter with condition

    Hi Ali, thank you so much, it's working perfectly. And yes, you are right; I can definitely say that ChatGPT is not as accurate as our forum

    If you can spare one more minute, could you please show me how to get this done using Vstack filter formula? I am just learning about this function and would like to use it for my future assignments. Thanks in advance!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,350

    Re: V Stack Filter with condition

    You don’t need VSTACK for this - you only have one array, so it would be superfluous to requirement.

  5. #5
    Forum Contributor
    Join Date
    10-08-2014
    Location
    Bengaluru, India
    MS-Off Ver
    O 365
    Posts
    156

    Re: V Stack Filter with condition

    oh, ok, thank you

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: V Stack Filter with condition

    Shorter, calling fewer functions:

    =LET(A,Sheet1!A1:A250,SORT(UNIQUE(FILTER(A,LEFT(A,1)="7"))))

    note that using A:A will be SLOW as Ali's formula will calculate 1,000,000+++ rows, multiple times. Use something sensible but future-proof.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Forum Contributor
    Join Date
    10-08-2014
    Location
    Bengaluru, India
    MS-Off Ver
    O 365
    Posts
    156

    Re: V Stack Filter with condition

    Thank you Glenn

+ 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. [SOLVED] Filter - one condition
    By ionelz in forum Excel General
    Replies: 3
    Last Post: 11-04-2022, 06:43 PM
  2. [SOLVED] Filter unique condition
    By minhys1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2020, 04:17 AM
  3. Help with DAX Filter condition
    By excelguylondon in forum Excel General
    Replies: 0
    Last Post: 03-14-2017, 01:56 AM
  4. [SOLVED] Variable as the filter condition
    By Sgligori in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-08-2016, 02:01 PM
  5. How to filter data according to condition.
    By airbatucampur92 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2014, 12:02 AM
  6. Pivot Table: OR condition filter on Multi Date/Sum Filter
    By ddalt10 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-09-2013, 12:49 PM
  7. Filter Condition
    By shugg24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2010, 10:16 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