Consulting

Results 1 to 4 of 4

Thread: Solved: If value in a row = value in another column store in another cell

  1. #1

    Solved: If value in a row = value in another column store in another cell

    HI,

    If the values in G2,H2,I2 = value in column C then store that value in K2.
    I tried Vlookup, Hlookup its not working for me.

    If attached the file for your referance.

    Regards,
    Rajesh

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =IF(G2=C2,G2,IF(H2=C2,H2,IF(I2=C2,I2,"")))
    ____________________________________________
    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
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,197
    Location
    You could try something like this

    =IF(COUNTIF(C:C,G2),G2,IF(COUNTIF(C:C,H2),H2,IF(COUNTIF(C:C,I2),I2,"")))

    Hope this helps

  4. #4

Posting Permissions

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