+ Reply to Thread
Results 1 to 9 of 9

Array Help

  1. #1
    Registered User
    Join Date
    04-29-2019
    Location
    Mishawaka, IN
    MS-Off Ver
    10
    Posts
    41

    Array Help

    Hello Excel Community,

    I am trying to write a formula to covert text from one database that is in one Column R in Excel Spreadsheet 1 to match the formatting rules for Spreadsheet 2 from a completely different database.

    The data in Spreadsheet 1 would be:

    Col A Col B
    Employee A PLAN Planning Manager
    Employee B PLAN Planning Associate
    Employee C IT IT Manager
    Employee D IT IT Tech
    Employee E HR HR Manager
    Employee F HR Associate

    I need the data converted so that it only has the section they work in:

    Range A:

    HR
    IT
    PLAN

    If the data in Column B contains the search string from Range A, Return only the value of Range A form each employee.

    All I have so far is: {=IF(ISNUMBER(SEARCH($V$2:$V$43,$R$2:$R$138)),$V$2:$V$43,"Test")}

    This only returns the first value from Range A

    Where the V column is my "Range A" from above, and the R column is the range of employees job title from Spreadsheet 1 above.

    Any help you can provide would be appreciated.

    Dan
    Attached Files Attached Files
    Last edited by dslaugh; 04-29-2019 at 01:56 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Array Help

    It would be helpful if you could upload a sample workbook (with sensitive data replaced / removed). It's far easier to work with actual data. You can upload a workbook by clicking Go Advanced (below the Quick Reply box), then Manage Attachments. Click Browse to find your file, then click Open, then click Upload. Click Close this window, and your file will be attached with your reply.
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  3. #3
    Registered User
    Join Date
    04-29-2019
    Location
    Mishawaka, IN
    MS-Off Ver
    10
    Posts
    41

    Re: Array Help

    Thank you, I have added the attachment to the original post.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Array Help

    Hi & welcome to the board.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Array Help

    Try this in C2:

    =IFERROR(INDEX(E:E,AGGREGATE(15,6,ROW(E$2:E$4)/ISNUMBER(SEARCH(E$2:E$4,B2)),1)),"No Match")

  6. #6
    Registered User
    Join Date
    04-29-2019
    Location
    Mishawaka, IN
    MS-Off Ver
    10
    Posts
    41

    Re: Array Help

    Love it. Just curious what the -1 does? It returns everything before the space?

  7. #7
    Registered User
    Join Date
    04-29-2019
    Location
    Mishawaka, IN
    MS-Off Ver
    10
    Posts
    41

    Re: Array Help

    This works beautifully. I haven't quite deciphered it yet, but trust me, I will do my best. Thank you both.

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Array Help

    Quote Originally Posted by dslaugh View Post
    This works beautifully. I haven't quite deciphered it yet, but trust me, I will do my best. Thank you both.
    Happy to help. Thanks for the rep!

    You can use Evaluate Formula to help understand what is going on.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Array Help

    Quote Originally Posted by dslaugh View Post
    Love it. Just curious what the -1 does? It returns everything before the space?
    You're welcome & thanks for the feedback.

    The Find will find the space so for "IT IT Tech" it will return 3 & the -1 is there to just get the first 2 characters

+ 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. Replies: 5
    Last Post: 02-22-2018, 01:47 AM
  2. Replies: 1
    Last Post: 01-04-2018, 01:07 PM
  3. [SOLVED] Array formulae with different sized array, e.g. array-if() or somproduct-if()?
    By hlhans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2016, 03:59 PM
  4. [SOLVED] Populate one array from another array and print new array as a range
    By Kaden265 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2014, 07:52 AM
  5. [SOLVED] Quick Array question - Copy array to another array then resize?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-02-2013, 01:17 AM
  6. [SOLVED] Populate Listbox with all rows of a dynamic array where elements of a single array match.
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-07-2012, 04:54 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