Consulting

Results 1 to 2 of 2

Thread: Matching cells

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Matching cells

    Hi everyone,

    I have a file that I need to compare. I need to compare columns B and G. The number in column G can occure anywhere in the column. If a match is found I need the value in cell A moved to the matched number in column F. I have attached a spreadsheet with an example. Thanks for your help.
    Peace of mind is found in some of the strangest places.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by austenr
    Hi everyone,

    I have a file that I need to compare. I need to compare columns B and G. The number in column G can occure anywhere in the column. If a match is found I need the value in cell A moved to the matched number in column F. I have attached a spreadsheet with an example. Thanks for your help.
    More worksheet functions

    In F3:

    =IF(ISNA(MATCH(G3,B:B,0)),"",INDEX(A:A,MATCH(G3,B:B,0)))
    and copy down.
    ____________________________________________
    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

Posting Permissions

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