+ Reply to Thread
Results 1 to 3 of 3

Search for a text and then search for another text after the row containing the first text

  1. #1
    Registered User
    Join Date
    08-07-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    21

    Search for a text and then search for another text after the row containing the first text

    Hello all,

    I have attached a sample sheet to better understand my problem.

    What I need is, search for "Location: KL" in column A of Sheet1 and then search for "Product 1" in the same column, but include only the cells after the text "Location: KL" in the search. Then get the "Product Quantity" value corresponding to "Product 1").

    The formula is to be in B2 of Sheet2.

    Any help is appreciated.
    Attached Files Attached Files
    Last edited by ajeshkdy; 04-30-2021 at 05:37 AM. Reason: More clarification

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Search for a text and then search for another text after the row containing the first

    There is probably a more elegant solution, but try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-07-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    21

    Re: Search for a text and then search for another text after the row containing the first

    Thanks for your help!

    I adjusted your formula and finally got what I was looking for.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Thanks once again!

+ 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: 6
    Last Post: 05-31-2019, 12:39 AM
  2. Replies: 2
    Last Post: 10-02-2016, 04:18 PM
  3. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  4. IF(count(search) Function not working when search from text from a cell
    By joshnathan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 05:13 AM
  5. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  6. [SOLVED] search for text, then search for previous text, replace 1st text including number from 2nd
    By kldailey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2012, 05:23 PM
  7. Replies: 4
    Last Post: 04-02-2012, 07:37 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