+ Reply to Thread
Results 1 to 3 of 3

I'm filtering a generated list, but the filter gets messed up when a new item is added.

  1. #1
    Registered User
    Join Date
    08-10-2022
    Location
    United States
    MS-Off Ver
    365
    Posts
    1

    I'm filtering a generated list, but the filter gets messed up when a new item is added.

    =IF(ISBLANK(IFERROR(INDEX('Main Schedule'!$N$10:$N500,SMALL(IF('Main Schedule'!$P$10:$Q500=$Q$2,ROW('Main Schedule'!$N$10:$N500)),ROW(1:1))-9,1),"")),"",IFERROR(INDEX('Main Schedule'!$N$10:$N500,SMALL(IF('Main Schedule'!$P$10:$Q500=$Q$2,ROW('Main Schedule'!$N$10:$N500)),ROW(1:1))-9,1),""))

    This is my formula that I'm using to make a list. When I drag the cell down it makes a list based off of the small function which is finding all the numbers in column P-Q that match my number in Q2. It then indexes to another column and tells me the data there, in this case column N. My problem is that I'm trying to filter this generated list based off of a priority and when a new item is added to this list it pushes everything down to be in order because of the small function. My priority number that I put in is then one cell off because it does not move with the data as my other cells do in the list. In the picture you can see a new entry is added to the top and pushes everything else down one cell, meaning the priority numbers are off by one cell. Is there a way I can alter this function to add new entries to the bottom of my list so that my priority numbers stay in line with my data, or possibly another solution?

    Thank you and I'm new to this.
    Attached Images Attached Images

  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,364

    Re: I'm filtering a generated list, but the filter gets messed up when a new item is added

    We do not know anything about your workbook, data, or process. So, it is not easy for us to say how to do something different when we do not know what you do in the first place.

    As you are using Excel 365, I suspect there might be a much simpler formula using the FILTER function.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    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
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: I'm filtering a generated list, but the filter gets messed up when a new item is added

    This is a problem if you extract data from a source, and then add more data to the extracted list of data. You should generate your priority in the original source data, and then extract that using a similar formula, to keep them co-incident.

    Hope this helps.

    Pete

+ 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. Extracting List without blanks and then filtering data without using filter option.
    By thebeastslayer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2020, 07:17 AM
  2. [SOLVED] =Rank is messed up in table when Totals Row is added to the bottom of the table
    By tim.morley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-31-2018, 03:48 AM
  3. FIltering items in a filter list using the IF function
    By NedShneeb in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-11-2016, 04:47 AM
  4. Replies: 2
    Last Post: 02-29-2012, 09:34 PM
  5. Replies: 3
    Last Post: 05-15-2011, 11:46 AM
  6. Replies: 4
    Last Post: 03-14-2010, 09:48 PM
  7. Fill Cell by filtering item from large list
    By dthames in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2005, 12:53 PM

Tags for this Thread

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