+ Reply to Thread
Results 1 to 4 of 4

Search for certain text and bring a value below that text

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    los angeles,ca
    MS-Off Ver
    Excel 2007
    Posts
    18

    Search for certain text and bring a value below that text

    hi all.

    i have two sheets. i like to compare value between sheets. sheet1 is my calculation is sheet2 is computer generated value and i need to compare the value if they match.

    they will always be in same format(please see the attached)

    i have attached the excel sheet with further explanation.


    pretty much i like to find certain text from sheet2 and paste a value below that text in sheet2.

    thank you in advanced!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search for certain text and bring a value below that text

    Try

    =INDEX(Sheet2!$A$1:$K$12,SUMPRODUCT((Sheet2!$A$1:$K$12=TRIM(LEFT(SUBSTITUTE(A2," ",REPT(" ",255)),255)))*(ROW(Sheet2!$A$1:$A$12)+1)),SUMPRODUCT((Sheet2!$A$1:$K$12=TRIM(LEFT(SUBSTITUTE(A2," ",REPT(" ",255)),255)))*COLUMN(Sheet2!$A$1:$K$1)))

    Won't work for all values though, since yo don't have exact matches
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    04-14-2014
    Location
    Kansas City, MO
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Search for certain text and bring a value below that text

    I am attempting to use the substitute function as well in a different context...without any luck.

    I have column A with various strings of text all containing a year (2005-2013).
    Example: "DIY Software Deluxe with State 2013 Win"

    I need to reduce the year in each sentence by 1.
    Example: "DIY Software Deluxe with State 2012 Win"

    This is the formula that I have so far but can't get to work:
    SUBSTITUTE(A1,{2005,2006,2007,2008,2009,2010,2011,2012,2013},-1)

    With "A1" containing the "DIY Software Deluxe with State 2013 Win".

    Any advice would be greatly appreciated!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Search for certain text and bring a value below that text

    Try starting your own thread.

    It's against the forum rules to post your question in someone else's thread.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 1
    Last Post: 12-10-2013, 05:23 PM
  2. [SOLVED] How to bring over Text in a particular from one tab in a workbook to another tab
    By HNoel33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2013, 09:27 AM
  3. Replies: 3
    Last Post: 12-18-2012, 07:19 PM
  4. [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
  5. [SOLVED] SUMPRODUCT that bring Text
    By MESTRELLA29 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2005, 03:06 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