+ Reply to Thread
Results 1 to 4 of 4

Using IFERROR(INDEX(SMALL(ROW to search for and return a value while ignoring blanks

  1. #1
    Registered User
    Join Date
    06-28-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Using IFERROR(INDEX(SMALL(ROW to search for and return a value while ignoring blanks

    Hi everyone,

    I am trying to create a page which automatically updates based on information entered elsewhere. The page searches a different sheet for a specific value in Column A (*), and when it finds the value in Column A, it returns Column B as the result. I have a few issues. First is that the character i'm looking for is a *. Second, only a few rows contain the * in an entire search parameters and I can't have blanks in my sheet so I'm trying to make it so it ignores rows without the *.

    What I am trying to use right now is something along the lines of this:

    =IFERROR(INDEX(Estimate!$A$1:$B$500,SMALL(IF(Estimate!$A$1:$A$500<>"",ROW(Estimate!$A$1:$A$500)-ROW(Estimate!$A$1)+1),ROW(1:1)),2),"")

    NOTE: This function doesn't work as intended (returns a blank) and is intended to give an example of what I was thinking.

    In the example attached, the goal is, in the "Hyperlinks" sheet, to return the values 100.01,100.1 and 127.1 which are on the "Sheet1" with an * in the column next to them.

    I'm not sure if it will be any help but a few weeks back I asked a somewhat similar question which can be found by clicking on my username and going to "Find latest started threads". I would link but I don't have the privileges.

    Thanks for your help,
    LearningByError
    Attached Files Attached Files
    Last edited by LearningByError; 07-11-2018 at 10:31 AM.

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

    Re: Using IFERROR(INDEX(SMALL(ROW to search for and return a value while ignoring blanks

    One way:

    =IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$1:$A$7)/($A$1:$A$7="*"),ROWS($1:1))),"")

    and

    =IF(E2<>"","*","")

    see sheet.
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-28-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Re: Using IFERROR(INDEX(SMALL(ROW to search for and return a value while ignoring blanks

    Thanks Glenn, your solution works! Would you mind running me through how it works if you have time?

    Much appreciated,
    LearningByError.

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

    Re: Using IFERROR(INDEX(SMALL(ROW to search for and return a value while ignoring blanks

    One way is to run through the formula using Formulas/Evaluate formula, to see each step. It's a bit of a pain as the dialogue box is not re-sizable.

    =IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$1:$A$7)/($A$1:$A$7="*"),ROWS($1:1))),"")

    Blue. Return the values from column B
    Red. In ascending row order
    Orange. Return the row numbers
    Cyan. Where the value in column A is an asterisk.
    Green, return the smallest, then the next smallest row number (it's simply a counter...)
    Black. Otherwise return a blank

+ 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] iferror index small row
    By R0CKY in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2018, 02:45 AM
  2. [SOLVED] Index Match Small Rows - Trying to return w/out blanks
    By tryingtoexcelatexcel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-22-2017, 05:31 AM
  3. [SOLVED] Using multiple context in one formula (Iferror/Index/Small/IF/Row)
    By gilpin004 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2017, 01:32 PM
  4. [SOLVED] Perplexed by IFERROR, INDEX, SMALL, ROW, MIN OH MY! My brain hurts.
    By petelozzi in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 12-09-2016, 04:36 PM
  5. Index/Match ignoring Blanks/Zeros for each instance
    By corhrtz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2015, 11:04 AM
  6. Excel Formula: IFERROR, INDEX, SMALL, MATCH
    By Jenn12788 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2014, 10:03 PM
  7. [SOLVED] Formula to search range for either or both values, ignoring blanks
    By TC1980 in forum Excel General
    Replies: 6
    Last Post: 06-28-2013, 09:53 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