+ Reply to Thread
Results 1 to 4 of 4

Create an array based off values in another array - exclude blanks

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Create an array based off values in another array - exclude blanks

    I've got a list of employees with corresponding titles in one sheet. I need to transfer the cells that are not blank. I might be over thinking this, but I can't figure it out. I've tried macros and indexing formulas, but it does not update properly if I add another name to the list.

    Using the attached sheet:

    If value in column "B" is not blank then copy corresponding title to column "D," from there I can do a VLOOKUP to pull the employee's name over.
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Create an array based off values in another array - exclude blanks

    Maybe you can work with this
    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Create an array based off values in another array - exclude blanks

    Try this formula in cell D1:

    =IF(ROW(A1)>COUNTIF(B:B,"<>"),"",INDEX(A:A,SMALL(IF($B$1:$B$100<>"",ROW($B$1:$B$100)),ROW(A1))))

    This is an array formula and must be entered with Ctrl-Shift-Enter, not just enter.

  4. #4
    Registered User
    Join Date
    02-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Create an array based off values in another array - exclude blanks

    Macro works great. Thanks a lot.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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