+ Reply to Thread
Results 1 to 6 of 6

Iferror, index, array...

  1. #1
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Iferror, index, array...

    Hello,

    Please see attached.

    On Sheet 2014, Column K, there are blank cells and non-blank cells.

    On Sheet Driver Summary, Columm B, I would like the date, Column B, of all the non-blank cells found in Column K. Any Blank cells in Column K would be ignored.

    Please let me know if this is unclear as i'm not sure how to write the logic for this but i do know that it's an array, index and iferror formula involved....

    Thank you in advance!

    Jason
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Iferror, index, array...

    Why not wrap a pivot table around all of the data and filter out blanks?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Iferror, index, array...

    I didn't download your file.

    See if you can adapt this to suit your needs.

    Data Range
    A
    B
    C
    D
    1
    Date
    Status
    ------
    Date
    2
    9/30/2008
    Yes
    9/30/2008
    3
    4/11/2002
    4/9/2004
    4
    4/9/2004
    No
    4/7/2010
    5
    4/7/2010
    No
    1/28/2004
    6
    3/12/2004
    4/3/2012
    7
    1/28/2004
    Maybe
    1/15/2012
    8
    4/3/2012
    Maybe
    9
    1/15/2012
    Yes
    10
    3/6/2002


    This array formula** entered in D2:

    =IFERROR(INDEX(A:A,SMALL(IF(B$2:B$10<>"",ROW(B$2:B$10)),ROWS(D$2:D2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format as Date.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: Iferror, index, array...

    You can also use filter...
    1. Just apply the filter on the Required range..
    2. Click the small Cope shape at the right of Column K and Unchek the "blanks" below click ok…
    That should do ..
    Check the attached file...
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  5. #5
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Iferror, index, array...

    Quote Originally Posted by Tony Valko View Post
    I didn't download your file.

    See if you can adapt this to suit your needs.

    Data Range
    A
    B
    C
    D
    1
    Date
    Status
    ------
    Date
    2
    9/30/2008
    Yes
    9/30/2008
    3
    4/11/2002
    4/9/2004
    4
    4/9/2004
    No
    4/7/2010
    5
    4/7/2010
    No
    1/28/2004
    6
    3/12/2004
    4/3/2012
    7
    1/28/2004
    Maybe
    1/15/2012
    8
    4/3/2012
    Maybe
    9
    1/15/2012
    Yes
    10
    3/6/2002


    This array formula** entered in D2:

    =IFERROR(INDEX(A:A,SMALL(IF(B$2:B$10<>"",ROW(B$2:B$10)),ROWS(D$2:D2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format as Date.

    Copy down until you get blanks.

    This is perfect!

    Just one small glitch is that it doesn't show my the first value. I just extended the rage to include the header and works perfect.

    Thanks!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Iferror, index, array...

    Good deal. Thanks for the feedback!

+ 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 & match
    By meh999 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-26-2014, 08:43 AM
  2. VBA - Index formula to be combined using IFERROR
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2014, 06:15 AM
  3. Help with Formula Please!! (IFERROR/INDEX)
    By leowyatt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-29-2013, 04:28 AM
  4. =IFERROR(INDEX - formula not working
    By tcrjmom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2013, 01:29 PM
  5. Looking for better formula of iferror, index and match
    By DavidRoger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2012, 07:50 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