+ Reply to Thread
Results 1 to 3 of 3

Compare cells and copy values

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Thumbs up Compare cells and copy values

    Hi
    I use Windows 10 Pro and MS Office 2013

    Here is my requirement:

    If A2 is there in Column Q(eg: Q3)
    and if B2 = R3(Q's subsequent Cell)
    Then O2 should display S3(R's subsequent Cell value) and
    P2 should display T3 (S's subsequent cell value)

    If I am not clear or you have any doubt I have attached an Excel sheet.
    In which I have filled Column 'O' and column 'P' manually where i wish to have the formulas.

    Thank you for you time
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Compare cells and copy values

    Your output data is incorrect B6 is "Carewise", R7 is "CAREWISE " with a space, these are not the same hence your results are incorrect.
    Correct the error so B6 matches R7 then

    in O2
    =IFERROR(VLOOKUP(A2,IF(B2=R$2:R$15,Q$2:T$15),3,0),"")
    in P2
    =IFERROR(VLOOKUP(A2,IF(B2=R$2:R$15,Q$2:T$15),4,0),"")

    Array formulas, use Ctrl-Shift-Enter
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Compare cells and copy values

    Here is non array formula.
    In O2 then drag across.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. [SOLVED] Compare data and copy values from cells to other cells
    By ss86 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2017, 11:28 AM
  2. [SOLVED] Compare values and copy
    By JRFerreira in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-19-2014, 11:11 AM
  3. [SOLVED] Compare values between sheet and copy values
    By szpt9m in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 11:57 AM
  4. Compare two cells (text) and copy values if there is a match (vlookup?)
    By Brett Mercier in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2013, 07:33 AM
  5. Compare the cell values in two different workbooks and copy values from one to the other
    By BettyBoop64 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2012, 04:48 PM
  6. Macro to compare values in different workbooks and copy paste adjuscent cells
    By Arjunling in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2012, 07:53 AM
  7. compare values and copy new values to clipboard
    By neodjandre in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2007, 12:00 PM

Tags for this Thread

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