+ Reply to Thread
Results 1 to 5 of 5

Search for specific value in a row, then return content og adjacent cell

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2003
    Posts
    11

    Search for specific value in a row, then return content og adjacent cell

    Hi everyone, I have a spreadsheet with company names and contact info. The only problem is the layout. Slightly simplified, it looks like this:

    A B C D E
    1 Acme Industries Email [email protected] Address Fantasy street 5
    2 Europe Industries Adress Somestreet 3 Fax 12345678


    So you see, one row contains all info about a certain company, and the order is not the same for every row. What I would like to achieve is to add a formula in for example F1, that searches for "Email" on row 1, and then returns the value of the cell one step to the right of where "Email" is found, in this case the email address [email protected].

    Is this possible to do with a formula? I'm hoping to avoid any vba... :/

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Search for specific value in a row, then return content og adjacent cell

    This could probably be done with a series of nested if statements. What is the maximum number of columns that your spreadsheet has this data in. Perhaps a copy of your spreadsheet uploaded with enough samples to different presentations of data to ensure we capture all scenarios.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Search for specific value in a row, then return content og adjacent cell

    Ok, sample attached.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Search for specific value in a row, then return content og adjacent cell

    See attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-28-2009
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Search for specific value in a row, then return content og adjacent cell

    Quote Originally Posted by alansidman View Post
    See attached.
    Perfect! Thank you! :-D

+ 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