+ Reply to Thread
Results 1 to 7 of 7

Looking for a text string and putting that cell value into a table

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    New Bern North Carolina USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Looking for a text string and putting that cell value into a table

    Hello and thank you for this forum. This site has been a invaluable to me as I have struggled to learn Excel. My problem seems straightforward but I have not been able to find a reliable way to solve my problem. I am trying to search through several columns for a specific text string. When the cell with that particular text is found, I need to take those cell contents and put them in a new table. The problem is that the text I am searching for does not always appear in the same exact location, and sometimes the information that I want to put into my new table is located in a cell adjacent to the cell containing the text string. I have attached an excel file that gives an example of what I am searching for. The cells with red text are the ones that I want to only return the contents to my new table. The cells with blact text are the ones that I need the adjoining cells to the right to be put into the new table. I am searching for the specific text in column G and when I am finished, I want my results to look like the information in column H. Thanks for your help. - Tom
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Looking for a text string and putting that cell value into a table

    some of your data seems inconsistent

    i have done a large amount of this but it seems that some things will fail as they are currently set up:

    (it would be much more simple if you could have the data set up differently


    its really complex also

    Excel Forum Example.xlsx
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    New Bern North Carolina USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Looking for a text string and putting that cell value into a table

    Wow. Thank you so much for your help. I knew that it was going to be a little complicated but I had no idea that it would require such a complex formula. You are right that it would be much more simple to set the data up differently but unfortunately the data source (a multiple listing service) only exports the data as a HTML form in that format. My original thought was that if there was a function that would find the correct text string, I could then put it into another cell then use a True / False argument to ask if "Bank ownedNo" then the "No" to help with the misformatted data. Why did the last two cells in H20 and H21 return a "#REF! and #VALUE! ? Is it because it did not return an exact match for the text string?

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Looking for a text string and putting that cell value into a table

    The ref is due to it not finding a correct match ( I noticed there are multiple places where type is used so that would further complicate it) and the vale is because I have it to remove all text before a : however in that cell there is no :. If you really need I might be blue to fine tune it tommrow but I can't do anything at the moment as I have no access to a pc.

    The problem is matching data across multiple rows and columns, I by pass this using the sum product function to get array results without to much hassle, there may be other ways but at the moment I can't think.

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    New Bern North Carolina USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Looking for a text string and putting that cell value into a table

    Thanks again for your response. Any ideas that you might have would be great.

  6. #6
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Looking for a text string and putting that cell value into a table

    Using two helper columns (I and J, hidden for a cleaner look), i got the following result, see attachment.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-07-2012
    Location
    New Bern North Carolina USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Looking for a text string and putting that cell value into a table

    That is perfect. Thank you very much for your help.

+ 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