+ Reply to Thread
Results 1 to 4 of 4

Find a text string and return that cells contents plus adjacent cell contents

  1. #1
    Registered User
    Join Date
    07-16-2020
    Location
    Devon England
    MS-Off Ver
    Excel 10
    Posts
    2

    Find a text string and return that cells contents plus adjacent cell contents

    Hi I need to find all the customers I have sold a particular product to over the last 7 years, i have a workbook with a tab for every month which has ros listing every customer and the products they ordered. I need a formula to seach the product coloum for every tab and return both the contents of that cell as well as the customer name, order number and order date from the same row. The cells in question for the first tab (Jan 2013) are G2 - G220 which I need to search for the word Suunto, and if it contains it I need the results to show me results for G1-G220 (Product orders) as well as C2-C220 (Order number), D2-D220 (Customer Name) E2-E220 (Date Ordered)

    I'm happy to drag the formula down for each tab as I can't imagine theres a way to search the whole workbook and return all the info I need?

    Any help appreciated please for the right formula

    Thanks
    Noels

  2. #2
    Registered User
    Join Date
    07-16-2020
    Location
    Austria
    MS-Off Ver
    2016
    Posts
    5

    Re: Find a text string and return that cells contents plus adjacent cell contents

    Hello,

    Please attach an example file showing your problem so that we can understand correctly what you want!

    Regards,
    Ziky

  3. #3
    Registered User
    Join Date
    07-16-2020
    Location
    Devon England
    MS-Off Ver
    Excel 10
    Posts
    2

    Re: Find a text string and return that cells contents plus adjacent cell contents

    For Data protection I've change the customer names to Customer 1 etc so I need to search G and only return details if it contains a Suunto product so in this example I need details from rows G5 and G9 and I need the contents of G as well as C,D and E. this is the tab for Jan 2013 and I have tabs for eveery month up until July 2020 which I need these details for.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: Find a text string and return that cells contents plus adjacent cell contents

    Hello Noels and Welcome to Excel Forum.
    I used two formulas so the computation will use fewer resources.
    For Order Number, which I assume is distinct, use: =IFERROR(INDEX(C$2:C$9,AGGREGATE(15,6,(ROW(C$2:C$9)-ROW(C$1))/(ISNUMBER(SEARCH("suunto",G$2:G$9))),ROWS(A$1:A1))),"")
    For the other three columns use: =IF($I2="","",INDEX(D$2:D$9,MATCH($I2,$C$2:$C$9,0)))
    Note that if you are able to utilize Power Query, a free add-in from Microsoft for Excel 2010, you could produce a cumulative table from which to get the information without too much trouble.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. How to Find Cell, Copy contents in adjacent cells, then paste to new item
    By wakaan808 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2019, 02:01 PM
  2. Check contents of cell against an adjacent cell and return comparison?
    By Nate Westcott in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2015, 01:05 PM
  3. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  4. Return contents of cells that contain a character string.
    By Bhodi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-16-2015, 02:06 PM
  5. [SOLVED] IF range of cells contains string of text, return contents of cell where string is found
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2013, 09:56 AM
  6. [SOLVED] Combine Cell Contents to with a [return] or [fill with spaces] between each cells contents
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 11:24 PM
  7. Replies: 2
    Last Post: 03-28-2012, 11:47 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