+ Reply to Thread
Results 1 to 3 of 3

Search for Value and Insert Value in different column if a hit is found

  1. #1
    Registered User
    Join Date
    08-07-2011
    Location
    phoenix
    MS-Off Ver
    Excel 2003
    Posts
    2

    Post Search for Value and Insert Value in different column if a hit is found

    Hi there,

    I have a requirement wherein I will be doing a manual Find for employee names in Column A and then insert a Yes in Column B if I find the employee name in the sheet. There can be many occurences of the employee name i.e. multiple rows , so I need "Yes" in column B in all these rows where I find my desired employee name.

    So, bottomline is, the second part should be automated, i.e. once the hit/s is/are found, it should insert values "Yes" in column B in all the "found" rows.

    Please can anyone help me in doing this? Can i do this using Macro or should I use VBA? I am not so familiar with either of it, however. Thanks

    Regards

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Search for Value and Inser Value in different column if a hit is found

    Hello,

    Cosider, Sheet1 Col_A has the all employee names.
    Sheet2 Col_A is the some name for checking already existing in Sheet1 Col_A.
    So try any of these in Sheet2 B1, & copy down

    =IF(COUNTIF(Sheet1!A:A,A1),"Yes","")

    Or,

    =IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0)),"Yes","")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    08-07-2011
    Location
    phoenix
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Search for Value and Insert Value in different column if a hit is found

    Thanks Haseeb.. It was really helping.. that works for me..

+ 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