+ Reply to Thread
Results 1 to 4 of 4

Search cell text and output different values based on result in another cell

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Search cell text and output different values based on result in another cell

    Hi there!

    New to the forums and somewhat to excel functions. Any help is greatly appreciated!

    I'm trying to search text within cells in column A and return a price to column B based on the search. Example file attached. I've tried everything I could find on other forums but nothing seems to work quite right.

    I think a formula structured like this should work but I assume the language is incorrect to be able to search within a text string.

    =LOOKUP(A2,{0,60,70,80,90},{"F","D","C","B","A"})


    Sample.xlsx

    Thanks again for the help!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Search cell text and output different values based on result in another cell

    There's nothing in your workbook sample to indicate what you are looking for and why a particular price is chosen or from where.
    Ben Van Johnson

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Search cell text and output different values based on result in another cell

    Hi tbarn1980 and welcome to the forum

    The data you provided does not support your requirement. 1).You never mentioned what is it you want to find in the string. 2). There are no prices in the string to extract. Please review your attached sample and re-post.

    Regards
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    10-14-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Search cell text and output different values based on result in another cell

    My bad!

    I need to search by "4FT X 4FT-VINYL", "4FT X 4FT-POLYPAPER", etc. Each size/material will be given a price either set in the formula or can be pulled from a column within the sheet. I don't know what's easier or would work better. Open to suggestions. The attached example will have a total of 12 unique prices.

    I've finally found a formula that works, but will end up being very large once I incorporate in the 52 total search terms and corresponding prices.

    How can I condense this:
    =LOOKUP(2^15,SEARCH({"4FT X 4FT-VINYL","4FT X 4FT-POLYPAPER","4FT X 4FT-CANVAS"},A2),{"10","20","30"})

    Thanks!

+ 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. Display a specific result based on Cell Values in a row (Ex Attached)
    By chadly72 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2013, 03:15 PM
  2. search cell values based on list of values in other sheet and add color to row
    By darkbraids in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2012, 08:35 AM
  3. Search A Cell And Output A Result From An Array
    By JonnyBoy333 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-03-2011, 08:24 AM
  4. Output text to cells if search result is positive
    By pylauzier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2011, 12:57 PM
  5. Replies: 8
    Last Post: 03-03-2011, 03:28 PM

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