+ Reply to Thread
Results 1 to 17 of 17

Formula to Extract a List Excluding Blanks

  1. #1
    Registered User
    Join Date
    02-12-2015
    Location
    California
    MS-Off Ver
    Microsoft Excel for Mac 2011 V. 14.4.7
    Posts
    5

    Formula to Extract a List Excluding Blanks

    I Need help with understanding how Array's Work. For some reason I can't grab a list and have it populate without the blanks in between.

    I am Trying to use and index and Small, but I am not sure if by pressing Ctrl+Shift+Enter-- or if I am missing something.

    Formula I am trying to use is:

    =IFERROR(INDEX($A$2:$A$10,SMALL(IF(ISTEXT($A$2:$A$10),ROW($A$1:$A$9),""),ROW(A1))),"")


    I don't know what I am doing wrong.

    Thanks for helping!

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to Extract a List Excluding Blanks

    =iferror(index($a:$a,small(index(isblank($a$2:$a$10)*10^10+row($a$2:$a$10),0),row(a1))),"")
    try this non array formula and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to Extract a List Excluding Blanks

    Quote Originally Posted by chotosiete View Post
    I Need help with understanding how Array's Work. For some reason I can't grab a list and have it populate without the blanks in between.

    I am Trying to use and index and Small, but I am not sure if by pressing Ctrl+Shift+Enter-- or if I am missing something.

    Formula I am trying to use is:


    =IFERROR(INDEX($A$2:$A$10,SMALL(IF(ISTEXT($A$2:$A$10),ROW($A$1:$A$9),""),ROW(A1))),"")


    I don't know what I am doing wrong.

    Thanks for helping!
    Your formula is also working well with the cells having text
    it is excluding blank cells as well as numbers having cells
    you used istext formula that's why it was happened make little changes to this like
    =IFERROR(INDEX($A$2:$A$10,SMALL(IF(ISBLANK($A$2:$A$10),"",ROW($A$1:$A$9)),ROW(A1))),"")

  4. #4
    Registered User
    Join Date
    02-12-2015
    Location
    California
    MS-Off Ver
    Microsoft Excel for Mac 2011 V. 14.4.7
    Posts
    5

    Re: Formula to Extract a List Excluding Blanks

    Hi nflsales, thank you for responding; I tried your formula and it still brings the blanks in.

    I have attached the doc now, Please look at column "E" where I tried to input your formula.

    My Goal is to get Column "D" list show up in Column "E" without all the blanks in between. (From Line 15 thru line 41 are blanks)

    Thank you again for your time
    Attached Files Attached Files

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to Extract a List Excluding Blanks

    Hi chotosiete,

    Please see attached file with formula in column G


    or this

    =IFERROR(INDEX($K$2:$K$43,SMALL(IF($J$2:$J$43=$B$2,ROW($J$2:$J$43)-ROW($A$2)+1),ROWS(A$1:A1))),"")

    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER
    Attached Files Attached Files
    Last edited by AlKey; 02-12-2015 at 05:11 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    02-12-2015
    Location
    California
    MS-Off Ver
    Microsoft Excel for Mac 2011 V. 14.4.7
    Posts
    5

    Re: Formula to Extract a List Excluding Blanks

    AlKey,

    Thank you! We are almost there, however, If i Switch the group (List down in column B to the IS300 group), I am off by one row- Take a look at the attached.

    IN Cell B2 I want to switch between groups and then have the list populate in column G.... Your current solution allowed me to get the list for group (IS700), but when I click (IS300), I am off by 1 row; or in other words, it cuts off the first one.

    Can we get it so it works with both groups?

    Thank you!!!
    Attached Files Attached Files

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to Extract a List Excluding Blanks

    Regular formula, no Ctrl+Shift+Enter needed

    =IFERROR(INDEX($K:$K,AGGREGATE(15,6,ROW($J$2:$J$43)/($J$2:$J$43=$B$2),ROWS(K$1:K1))),"")

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to Extract a List Excluding Blanks

    E2=IFERROR(INDEX($D:$D,SMALL(INDEX(($D$2:$D$52="")*10^10+ROW($D$2:$D$52),0),ROW(D1))),"") try this and copy towards down
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to Extract a List Excluding Blanks

    LIST With NO Blanks.xlsm


    take a look at this one....it might help it is a macro that someone on here taught me i made it into a button for ease of use

    erase the data from column E and try it out works like a charm and is quite simple to adjust yourself if needed
    Last edited by daveisalwayshere; 02-13-2015 at 04:27 AM.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to Extract a List Excluding Blanks

    It is also working with the formula
    see the attached file
    Our ultimate goal is getting the result
    it is your choice, whether you want to with macro are with formula
    if you get the solution please mark the thread as solved
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to Extract a List Excluding Blanks

    Quote Originally Posted by nflsales View Post
    It is also working with the formula
    see the attached file
    Our ultimate goal is getting the result
    it is your choice, whether you want to with macro are with formula
    if you get the solution please mark the thread as solved

    I took a look at that and yes that is awesome. i need to learn that formula as that is the first time i've seen the 10^10Row( what does it do?

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to Extract a List Excluding Blanks

    I have poor comunication skills try to understand the below

    IFERROR(INDEX($D:$D,SMALL(INDEX(($D$2:$D$52="")*10^10+ROW($D$2:$D$52),0),ROW(D1))),"")
    for suppose $D$2:$D$52 have 10 Blanks cells
    if the cell is blank the value will be 10000000000+that row number
    if the cell is nonblank the value will be 0+that row number
    for suppose $D$2:$D$52 have 10 Blanks cells
    upto small 41 it will give row number
    after that from small 42 on wards small 42 will give 10000000000+that row number
    the available rows (1048576) in excel is less than that
    then it gives an error, we given iferror function then it will give "" result

  13. #13
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Formula to Extract a List Excluding Blanks

    got it, thanks

  14. #14
    Registered User
    Join Date
    02-12-2015
    Location
    California
    MS-Off Ver
    Microsoft Excel for Mac 2011 V. 14.4.7
    Posts
    5

    Re: Formula to Extract a List Excluding Blanks

    YES! ALL OF YOU GUYS ARE AWESOME IT WORKS!!! Thank you!!

  15. #15
    Registered User
    Join Date
    02-12-2015
    Location
    California
    MS-Off Ver
    Microsoft Excel for Mac 2011 V. 14.4.7
    Posts
    5

    Re: Formula to Extract a List Excluding Blanks

    YES! ALL OF YOU GUYS ARE AWESOME IT WORKS!!! Thank you!!

  16. #16
    Registered User
    Join Date
    11-02-2018
    Location
    SoCal
    MS-Off Ver
    2010
    Posts
    16

    Re: Formula to Extract a List Excluding Blanks

    I'm not sure if this was covered but, what if your range cells have values that were derived with formulas instead of them being typed in to any of the cells in that range.. I'm having difficulty with this formula. The value is in the cell as it shows, but that value came from the formula that is in that cell. Please advise. Thx!

  17. #17
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Formula to Extract a List Excluding Blanks

    Quote Originally Posted by Betta-J View Post
    I'm not sure if this was covered but, what if your range cells have values that were derived with formulas instead of them being typed in to any of the cells in that range.. I'm having difficulty with this formula. The value is in the cell as it shows, but that value came from the formula that is in that cell. Please advise. Thx!
    Hi, welcome to the forum

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Average formula for last 15 days excluding blanks
    By jimbob23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-22-2014, 11:50 AM
  2. [SOLVED] Create a list of uppercase data from a range excluding blanks and errors
    By PAexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-17-2014, 01:32 PM
  3. [SOLVED] Function To Build A List For A Drop Down, Excluding Blanks And Non-Matches.
    By GEANZ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2013, 11:35 PM
  4. Extract data from a horizontal range with blanks and create a vertical list
    By dommcg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 10:41 AM
  5. Linking List While Excluding Blanks
    By hgb in forum Excel General
    Replies: 5
    Last Post: 04-26-2011, 03:11 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