+ Reply to Thread
Results 1 to 12 of 12

To compare columns A in two sheets and if much join column B

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    To compare columns A in two sheets and if much join column B

    Hello

    I'm a new with VBA and need you help please

    I have two sheets (status, report).
    I want to compare columns A (report&status) and if mutch - add the information from column B (status) to the corresponding cell to column F (report).
    In columns A (report&status) - I have Full Names and in column B (report) status of participants.
    So, if the names match I want to receive near their names - their statuses.

    Can someone please assist? THANKS!
    Last edited by xlor; 10-02-2014 at 03:37 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: To compare columns A in two sheets and if much join column B

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Additionally: What does this mean?
    and if much
    Do you mean match?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if much join column B

    Thank you alansidman

    Quote Originally Posted by alansidman View Post
    Do you mean match?
    Oh...sorry - match.

  4. #4
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if much join column B


  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: To compare columns A in two sheets and if much join column B

    Try this in column f cell F2
    Assuming there are two sheets
    1. Status
    2. Report
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Change the reference accordingly...
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  6. #6
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if much join column B

    Thank you Vikas_Gautam
    I will try it tomorrow

    Actually I'm looking for VBA code.
    I can compare data in two sheets, but can't add status in Report sheet.

  7. #7
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if match - join column B

    Here the code I'm using to compare columns A (sheets: "Status"&"Report") and if Full Name is match - to join column B(status) to column F - sheet "Report" near matched Full names.
    I can not add the status near matched Full names.(See attached File Agents.jpg)


    What I'm doing wrong?

    Thank you !

    Please Login or Register  to view this content.
    Last edited by xlor; 10-02-2014 at 10:52 AM.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: To compare columns A in two sheets and if much join column B

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

  9. #9
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if much join column B

    Thank you again and Im so sorry.

  10. #10
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if much join column B

    My Workbook
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-30-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: To compare columns A in two sheets and if much join column B


  12. #12
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: To compare columns A in two sheets and if much join column B

    Well Done...

+ 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 2 pair of columns then copy value of third column over different sheets
    By a3des in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2012, 09:11 AM
  2. Replies: 0
    Last Post: 08-22-2011, 04:18 PM
  3. Compare Columns From 2 Sheets
    By hardeep.kanwar in forum Excel General
    Replies: 3
    Last Post: 07-03-2010, 04:35 AM
  4. compare columns in sheets
    By shekar goud in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2009, 05:47 AM
  5. Join various columns from two data sheets
    By Apple Ling in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2009, 10:24 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