+ Reply to Thread
Results 1 to 4 of 4

Take data from array, insert into string, search for string in another array

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Central Texas
    MS-Off Ver
    Excel 2010
    Posts
    55

    Question Take data from array, insert into string, search for string in another array

    Hey ya'll,
    I'm looking for a single-cell formula for a simple / efficient way to take data from one array, put it in between two other sets of data and do a search in a second array for that completed string.
    Basically, I'm trying to take numbers from a list (one at a time), place them between a pre-designated Month-number and year to create a date. Then make a search in a second array for that date. The search needs to be performed for every date created from the first array.
    All I can come up with is an IF / CONCATENATE conglomeration that would take days to enter all the dates I need to search for. Also, that IF / CONCATENATE conglomeration keeps coming up a(n) #VALUE! error . Apparently, SEARCH does not like dates, or something. That code is as follows (it only has two dates for the example, but there's many more):
    Please Login or Register  to view this content.
    There is some instruction on the included example sheet, if anything is unclear. I have a desired result (K7) for the complete formula. Array 1 takes A1:A7, array 2 takes D1:D12.
    What the formula is to do is in G1 (long drawn-out process), with the result below it in K7.

    Any help or a Point-in-the-right-direction would be greatly appreciated.

    Please & Thank ya'll!
    Attached Files Attached Files
    Oh! I get it. I need rep--->҉

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Take data from array, insert into string, search for string in another array

    withdrawn.. didn't understand req's
    Last edited by protonLeah; 06-12-2015 at 02:41 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    Central Texas
    MS-Off Ver
    Excel 2010
    Posts
    55

    Arrow Re: Take data from array, insert into string, search for string in another array

    Is this a drag-down formula or did I not explain it well enough? I need a single-cell formula (something that only takes up the one cell it's placed in).
    I think this would work, if it can be adapted to check for A1, then check for A2, then A3, etc. Maybe I'm not understanding the result?
    I'm sorry for any confusion and thank you for giving a stab at it, I figured this would be a complicated formula.

    Edit: I noticed that if you "Evaluate Formula", the date inside the match evaluates as some 5-digit number instead of the date [422##]. Is that supposed to happen? Because as you progress evaluating the rest of the formula, that number gives off a #N/A error and messes everything up. Perhaps I'm adapting it wrong, but I'm literally just redefining the array locations, I haven't changed anything up.
    Last edited by Old4xford; 06-12-2015 at 09:08 AM. Reason: New Discovery

  4. #4
    Registered User
    Join Date
    03-12-2014
    Location
    Central Texas
    MS-Off Ver
    Excel 2010
    Posts
    55

    Lightbulb Re: Take data from array, insert into string, search for string in another array

    My apologies. I thought I was explaining it poorly.

    Although the presented problem wasn't solved, the problem here became a non-issue when an alternate route was taken to achieve a similar (but not exact) result. (i.e. I did it another way and got "close enough").

    So if the problem wasn't solved, and it's no longer being looked into, should I still mark this thread as "Solved"? Or should there be an "Unsolved Mysteries" option under thread tools?
    Last edited by Old4xford; 06-15-2015 at 12:48 PM. Reason: Additional Information

+ 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. Search for a string of numbers within an array
    By Chubster in forum Excel General
    Replies: 2
    Last Post: 09-06-2014, 09:22 PM
  2. VBA Find Partial String in String Array and Output the Found String Array Value
    By scherich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 11:20 AM
  3. Replies: 4
    Last Post: 12-23-2013, 08:43 AM
  4. [SOLVED] Return matching string in array if cell contains string contained in the array
    By AaronsZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-03-2013, 01:55 PM
  5. search for a part of string within an array of strings from another array list
    By jdonohue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2011, 01:32 PM

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