+ Reply to Thread
Results 1 to 7 of 7

Search an array for a value, and once it's found, concatenate other data from the row

Hybrid View

  1. #1
    Registered User
    Join Date
    10-29-2014
    Location
    Alabama
    MS-Off Ver
    2010
    Posts
    5

    Search an array for a value, and once it's found, concatenate other data from the row

    General question that I should absolutely be able to solve, but am having a very difficult time. Basically, I have a numerical list of months 1 - 60 on Sheet 1. I would also like to have in a cell directly above the numerical month, the Text of the month, what fiscal quarter it corresponds to, and the fiscal year. I've manually input the FY data on a seperate sheet along with the numerical value that will be the common key, but am trying to come up with a formula that I can search the array on my data sheet to find "1", then be able to concatenate the other colums to display " January, Q2 FY 15"

    For my data sheet Column A is the Month, B is the numerical month value, C is the Quarter, and D is the Fiscal Year, so on my display sheet, I have cells in row 2 containing 1-60, and want row 1 to index to column B in the data sheet, and concatenate A, C, and D.

    I hope this is descriptive enough; any help would certainly be most appreciated. Happy New Year everyone!

    para

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Search an array for a value, and once it's found, concatenate other data from the row

    I'm sure it can be done, but it's difficult to visualize your setup.

    Can you post a sample book?
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Search an array for a value, and once it's found, concatenate other data from the row

    Is this something you have to do frequently that you require a formula? If not then just create the concatenated date you want in Column E and do a copy, paste | value | transpose into the area you want the headings.
    Another alternative is to have Column A as the numbers 1 through 60, moving everything over by 1 column and then doing a vlookup. I'd still have the concatenated date in the data sheet
    If this helped, please click (*) Add Reputation

  4. #4
    Registered User
    Join Date
    10-29-2014
    Location
    Alabama
    MS-Off Ver
    2010
    Posts
    5

    Re: Search an array for a value, and once it's found, concatenate other data from the row

    It will need to be continually updated, so that's why I'm trying to develop some semblance of autonomy in the workbook. For example, if the next document implements in April, April will be month 1 as opposed to March in this document. I can just renumber the data tab to reflect April as the implementation month, and the display sheet will recalculate.

    I've attached a document, and the highlighted area represents what I am trying to have excel do automatically. Thank you both for your help!

    -paradime
    Attached Files Attached Files

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Search an array for a value, and once it's found, concatenate other data from the row

    It would be easiest if you do the concatenation on the Data Page.
    In E2 on the Data page and filled down
    =A2&" "&C2&" "&D2

    Then in A1 on the Display page and filled right
    =INDEX(Data!$E:$E,A2+1)

    EFParadime.xlsx

  6. #6
    Registered User
    Join Date
    10-29-2014
    Location
    Alabama
    MS-Off Ver
    2010
    Posts
    5

    Re: Search an array for a value, and once it's found, concatenate other data from the row

    Many thanks Jonmo, as typical, I was making it harder than it actually should have been.

    I hope you have a great New Years.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Search an array for a value, and once it's found, concatenate other data from the row

    You're welcome.

+ 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: 3
    Last Post: 10-05-2014, 11:48 AM
  2. Search Data from Multiple Sheets and copy found data to new workbook
    By xenith1988 in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 06-26-2012, 12:58 PM
  3. Replies: 0
    Last Post: 01-14-2012, 02:13 AM
  4. Search vba array if value found then do something
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-09-2010, 01:14 AM
  5. [SOLVED] when I search for data in Excel, the found cell cannot be seen
    By Howard in GR in forum Excel General
    Replies: 3
    Last Post: 07-21-2006, 04:55 PM

Tags for this Thread

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