Consulting

Results 1 to 7 of 7

Thread: vlookup maybe ?

  1. #1
    VBAX Regular
    Joined
    Nov 2006
    Posts
    41
    Location

    vlookup maybe ?

    Hello !

    I'm having trouble creating a macro that will compare values in column C of sheets("CALENDAR") to Sheets("LOOKUP") and be able display any matches including duplicates. If possible, I am trying to display those matches in a 3rd sheet named ("CONFLICTS"). I've attached a test sheet to better show whatever I might be missing in my description. Any help would be greatly appreciated !

    Thanks,

    Croeg

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    .
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Nov 2006
    Posts
    41
    Location

    re: vlookup maybe ?

    Thanks XLD !!

    I know I'm doing something wrong though. I see that it works in your example but when i try to insert the formula into my worksheet it no longer works.
    Also,
    I neglected to mention that sometimes the segment numbers on Sheets("LOOKUP") are not always in Column C, can I alter your formula to search the whole sheet or is it already set up that way?

    I've tried to pick apart the formula and can understand a little of what is going on, but not totally.

    Thanks

    Croeg

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    No, it assumes they are in one column. It could be extended for other c olumns, but I would think VBA would be a better route in that circumstance.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Nov 2006
    Posts
    41
    Location

    re: vlookup maybe ?

    Excuse my ignorance....but I can't seem to replicate your formula into my sheet. The only thing I notice that is different is your example begins with a { before and after the formula. What does this mean....if anything ?

    Thanks

    Croeg

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It is because it is an array formula, it should be committed with Ctrl-Shift-Enter, not just Enter.Excel will automatically enclose the formula in braces (curly brackets), do not try to do this manually.

    When editing the formula, it must again be array-entered.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Nov 2006
    Posts
    41
    Location

    re: vlookup maybe ?

    Thanks for the education xld !! Once I knew what I was doing it worked perfectly.... the only trouble I am running into is that it doesn't work when I change the search range to more than one column in Sheets("LOOKUP") and it seems a bit slow responding.

    You suggested VBA possibly being a better route....any ideas out there ?

    Croeg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •