View Poll Results: can anybody help me compare Sheet1 & 2?

Voters
0. This poll is closed
  • can anybody help me compare Sheet1 & 2?

    0 0%
  • can anybody help me compare Sheet1 & 2?

    0 0%
Multiple Choice Poll.
+ Reply to Thread
Results 1 to 14 of 14

compare Sheet1 against Sheet2 with highlighting results in Sheet1

  1. #1
    Registered User
    Join Date
    07-12-2011
    Location
    cebu,philippines
    MS-Off Ver
    Excel 2007
    Posts
    24

    Question compare Sheet1 against Sheet2 with highlighting results in Sheet1

    hello everyone
    ...Now, i am stuck with how can i do this another tedious and hard excel problem i dealt with. How can i compare a master list in Sheet1 against actual values in Sheet 2 and with a result of highlighting the values that are in Sheet 2 in "Sheet 1".I hope i am clear...Sorry for my poor English. I will try this way; whatever values i have in sheet 2 that are found in Sheet 1-it should be highlighted (in any color) in Sheet1. I have attach a sample file. Please help me when you can. I would be very very thankful to you.

    Im new to this site, I am actually learning how to post and be registered...and this is the best way so far that i think i can do to ask help from you, the experts.

    best regards,
    mariposa
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    mariposa,

    Give the following a try:
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    Assuming your data on sheet2 is in a single column. Use a defined name to name that list (I chose "List"). Then select B3:Q24 in Sheet1 and go to conditional formatting > use formula

    =AND(B3<>0,ISNUMBER(VLOOKUP(B3,Sheet2!$A:$A,1,FALSE)))
    format as desired.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-12-2011
    Location
    cebu,philippines
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    hi tigeravatar,

    thanks for the quick reply...ill give this a try. hope it will work. i get back to you when its done.

    many thanks,
    mariposa

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    Mariposa

    please do not use polls unnecessarily - Thx

  6. #6
    Registered User
    Join Date
    07-12-2011
    Location
    cebu,philippines
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    Quote Originally Posted by ChemistB View Post
    Assuming your data on sheet2 is in a single column. Use a defined name to name that list (I chose "List"). Then select B3:Q24 in Sheet1 and go to conditional formatting > use formula

    =AND(B3<>0,ISNUMBER(VLOOKUP(B3,Sheet2!$A:$A,1,FALSE)))
    format as desired.
    Hello chemist,
    thank you for your reply...
    but sad, it didnt work well. i used define name "list" as you were using and able to highlight B3:Q24 in sheet 1but when i click conditional formatting, then choose highlight cells rules, then "equal to" then i input your formula----it sends me this message "you can not use references to other worksheets or workbooks for conditional formatting criteria."
    am i doing what you ask? it seems, not working yet. Pls. advise. thank you.

    mariposa

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    Please refrain from quoting entire posts.You clutter the forum and make threads hard to read !

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    In Excel 2007,
    New Rule > "Use a formula to determine which cells to format"
    Hope that helps.

  9. #9
    Registered User
    Join Date
    07-12-2011
    Location
    cebu,philippines
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    Hi chemistB,

    i tried what you suggest, but it still says ""you can not use references to other worksheets or workbooks for conditional formatting criteria".

    im sad, the formula didnt work for me.

    pls. help.

    mariposa

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    Hello Mariposa,

    Define a name range foe the sheet2 data, Then use it in the CF as

    =AND(a1<>"",MATCH(A1,NamedRange,0))

    See the attached.
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    The easiest way to define a name is to select your values (i.e. sheet2 A2:A50) and in the name box (upper left side white text box where you usually see a cell reference like A2)type in a name and hit Enter. Then you can use that name in your formula.

  12. #12
    Registered User
    Join Date
    07-12-2011
    Location
    cebu,philippines
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    hi ChemistB,

    thanks for helping me figuring out how to define a name, i did it now....i also called it "list". Now, my question is, where in the formula,=AND(B3<>0,ISNUMBER(VLOOKUP(B3,Sheet2!$A:$A,1,FALSE))), you've given me, will i insert the name "list".

    Pls. help..
    i really appreciate your effort to guide me.
    thanks in advance.
    mariposa

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    =AND(B3<>0,ISNUMBER(VLOOKUP(B3,List,1,FALSE)))

  14. #14
    Registered User
    Join Date
    07-12-2011
    Location
    cebu,philippines
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: compare Sheet1 against Sheet2 with highlighting results in Sheet1

    hi Haseeb,

    thank you so so much! it works...wow...great job!

    and thanks to chemist for the input too...i have now what i need. thanks..

    mariposa

+ 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