+ Reply to Thread
Results 1 to 6 of 6

Compare text in a cell to text in a column on another sheet & return text from 3rd cell

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    Macungie, PA
    MS-Off Ver
    Excel 2013
    Posts
    5

    Compare text in a cell to text in a column on another sheet & return text from 3rd cell

    I have data in two sheets within a workbook. I need to compare data in a cell from one sheet to data in a column on second sheet and return the value of a third cell in the row associated with the match on the second sheet.

    I am uploading a sample as an illustration. In this example I need a formula in c3 on sheet 2 that will compare the text in b3 on sheet 2 with the text in column c on sheet 1. The values in these columns are all unique. When a match is found in the text in column c on sheet 1, I need the formula to return the text in the associated cell from column a on sheet 1.

    In my example, b3 = **None** on sheet 2. I need the formula in c3 to scan column c on sheet 1 and find the cell that = **None** and return the value from column on the same row, in this case Non Income Other.

    Sample.xlsx

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Compare text in a cell to text in a column on another sheet & return text from 3rd cel

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Compare text in a cell to text in a column on another sheet & return text from 3rd cel

    Please Login or Register  to view this content.
    the proper function needs to be called in order to match the names in sheet 1.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Compare text in a cell to text in a column on another sheet & return text from 3rd cel

    welcome to the forum. maybe:
    =INDEX('Sheet 1'!A:A,MATCH(B3,'Sheet 1'!C:C,0))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    01-03-2014
    Location
    Macungie, PA
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Compare text in a cell to text in a column on another sheet & return text from 3rd cel

    Thanks everyone. I ended up using benishiryo's solution. Worked like a charm!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare text in a cell to text in a column on another sheet & return text from 3rd cel

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. If cell contains certain text and certain text then return predefined text
    By fuzzhead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2014, 02:18 PM
  2. 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
  3. Replies: 6
    Last Post: 02-28-2013, 11:27 AM
  4. [SOLVED] Search Column for text, Return Cell below to another sheet?
    By Dewy1425 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2012, 08:07 PM
  5. Compare text in a cell with the text in the previous cell and return a value
    By kinley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2010, 04:14 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