+ Reply to Thread
Results 1 to 4 of 4

Urgent - vlookup and sort

  1. #1
    Registered User
    Join Date
    06-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile Urgent - vlookup and sort

    Hi Friends

    I have to compare two sheet values and if there is a change then I update a status with "Y or N" on the first sheet. This I have done successfully. After that If I sort this STATUS COLUMN, then my values are getting changed. for example while update the staus I get 8 N and 6 Yes. But, If sort on this column (in my example D) then I get only 4 yes and rest are no. this is result is wrong. I used vlookup in my sample and I need your help. Advance thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Urgent - vlookup and sort

    Try:

    =IF(ISERROR(VLOOKUP(A2,Sigma!$A$2:$A$15,1,FALSE)),"N",IF(AND(VLOOKUP(A2,Sigma!$A$2:$C$15,2,FALSE)=B2,VLOOKUP(A2,Sigma!$A$2:$C$15,3,FALSE)=C2),"Y","N"))


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Urgent - vlookup and sort

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Don't use words like "Urgent" in Thread Titles
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Urgent - vlookup and sort

    Hi

    I would use a helper column to concatenate the values of ID, Index and Name
    I inserted a new column D on each sheet with the formula
    =A2&"|"&B2&"|"&C2

    The Match status formula then becomes a simple
    =IF(D2=Sigma!D2,"Y","N")

    Column D can be hidden in both cases if required
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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