+ Reply to Thread
Results 1 to 5 of 5

Creating a sub-list, based on certain criteria that automatically updates with no spaces

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    4

    Creating a sub-list, based on certain criteria that automatically updates with no spaces

    Hi everyone,

    I am trying to see if there is a way to create a sub-list from a set of data. For example if I have different numbers in cells A1:A10 with certain labels in cells B1:B10 such as "BB", "AB", "FAST", etc. and I want to create a sub-list from that data that only contains the numbers that are labeled "BB" with the ability for the list and sub-list to update daily.

    I want the sub-list to be in D1 and to fill the column with no spaces in between numbers for all numbers in the orignally list that are labeled "BB".

    Ex.

    A1: 12 B1: BB
    A2: 10 B2: AB
    A3: 45 B3: BB
    A4: 60 B4: FAST
    A5: 70 B5: AB
    A6: 72 B6: AB
    A7: 23 B7: BB

    I want column D to fill as follows with no gaps between numbers:

    D1: 12
    D2: 45
    D3: 23

    Any ideas?????

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Creating a sub-list, based on certain criteria that automatically updates with no spac

    hi VacanVW, welcome to the forum. you can try an array formula:
    =IFERROR(INDEX($A$1:$A$7,SMALL(IF($B$1:$B$7="BB",ROW($B$1:$B$7)-ROW($B$1)+1),ROWS(D$1:D1))),"")

    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER. When done correctly, you should see curly brackets surrounding it

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Creating a sub-list, based on certain criteria that automatically updates with no spac

    Wow, that worked, you're a genious. Thanks a lot for the help.

  4. #4
    Registered User
    Join Date
    02-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Creating a sub-list, based on certain criteria that automatically updates with no spac

    So yesterday this worked great, but for some reason today when I try it again and hit control + shift + enter it keeps the same reference for each cell for the last part of the finction: ROWS(D$1:D1). Yesterday it updated as it should putting this in the second cell:ROWS(D$1:D2). Any idea why it won't update?

  5. #5
    Registered User
    Join Date
    02-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Creating a sub-list, based on certain criteria that automatically updates with no spac

    Ok, nevermind, I confused myself. Today I was selecting all cells at once (d1:d7) and then entering in the formula and hitting control + shift + enter, where yesterday I just entered it into the first cell and then dragged and dropped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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