+ Reply to Thread
Results 1 to 4 of 4

Compare text in column B, C match with sheet 2 A:A and get result in E

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Taiwan
    MS-Off Ver
    Excel 2003
    Posts
    9

    Compare text in column B, C match with sheet 2 A:A and get result in E

    Dear all,

    I am looking for a formula, the condition is if the either column B1 or C1 in sheet1 can be found in sheet2 A:A, bring B1 or C1 which matchs sheet2 A:A to column E1, and if there is no matches, put USD in E1. I have attached the template, please help to advise, thanks!
    Attached Files Attached Files

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

    Re: Compare text in column B, C match with sheet 2 A:A and get result in E

    hi Daniel, welcome to the forum. probably:
    =IF(COUNTIF(Sheet2!A:A,$B1),$B1,IF(COUNTIF(Sheet2!A:A,$C1),$C1,"USD"))

    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

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

    Re: Compare text in column B, C match with sheet 2 A:A and get result in E

    one way with a macro to populate sheet1

    another way with formulas copy the following in column e

    Please Login or Register  to view this content.
    3

    as shown in sheet3

  4. #4
    Registered User
    Join Date
    11-13-2012
    Location
    Taiwan
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Compare text in column B, C match with sheet 2 A:A and get result in E

    Thanks you all, you guys brillian!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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