+ Reply to Thread
Results 1 to 3 of 3

Camparing two values to be eual but if same return another value from another column

  1. #1
    Registered User
    Join Date
    12-12-2019
    Location
    Sacramento, CA
    MS-Off Ver
    360
    Posts
    1

    Question Camparing two values to be eual but if same return another value from another column

    I am comparing two spreadsheets in column A is titled: Provider ID on both sheets.
    On the second sheet there is a column titled: Clinic Name.
    How do I write the formula to say if both values are the same in the Provider ID column then take The clinic name on the second sheet and put into a column H on the first sheet?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Camparing two values to be eual but if same return another value from another column

    you could use a vlookup, something like this in a cell in H of the one sheet... =VLOOKUP(A2,Sheet2!$A:$B,2,FALSE)
    where sheet2 is the second sheet with the clinic name in column B.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Camparing two values to be eual but if same return another value from another column

    Put this formula in the 1st Sheet in cell H2. This is assuming your second Sheet is called "Sheet2" If your data starts in another row other than 2 then paste formula into that row and change the 2's in the formula to the corresponding row.
    =IF($A2=Sheet2!$A2,Sheet2!$B2,"")

+ 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: 3
    Last Post: 08-07-2018, 10:14 AM
  2. Replies: 4
    Last Post: 10-01-2015, 11:01 AM
  3. Camparing two Worksheets. Found code from forum but still need help.
    By Nagato88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2014, 01:20 AM
  4. CAMPARING 2 LISTS ( VLOOKUP OR any other function?)
    By ammy.rocks in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2013, 11:02 AM
  5. Replies: 11
    Last Post: 07-08-2013, 11:47 AM
  6. Replies: 1
    Last Post: 07-03-2013, 12:14 AM
  7. Replies: 2
    Last Post: 10-08-2012, 02:17 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