+ Reply to Thread
Results 1 to 7 of 7

Validating two sheets and typing text into a column for the results

  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    43

    Validating two sheets and typing text into a column for the results

    Hi there!

    I have a workbook with two sheets. One sheet represents current employees from a company and their full information for 2015-2016. The second sheet is the same information but including 2016-2017.

    I need to run a formula on the sheet "Data" on Column H that checks the names on sheet "Data" against the names on sheet "Current" and if there's a match, type "Yes" in Column H.

    The EIDs are not as beautiful as the example I'm attaching for they're all scrambled but I do have a consistent EID I can use for referencing. I tried several different formulas but I failed miserably and thought of looking for help here.

    Thanks for all your help!
    Andreas
    Attached Files Attached Files

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Validating two sheets and typing text into a column for the results

    In case .. you only want to check with names.. (First & Last name.. then.. in H2..

    =IF(ISNUMBER(MATCH(B2&C2,Current!B2:B1000&Current!C2:C1000,0)),"YES","NO")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    03-28-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    43

    Re: Validating two sheets and typing text into a column for the results

    Hi Debra!

    Thanks for your response. This formula seems to work great if names match the lines on both sheets but that's not the case. I think it's best to search by EID. I tried this:

    =IF(ISNUMBER(MATCH(A2,Current!A2:A1000,0)),"YES","NO")

    But it didn't work

    Any thoughts? :P

    Thanks!

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Validating two sheets and typing text into a column for the results

    Its working fine for me..
    Try to fix the range..
    =IF(ISNUMBER(MATCH(A2,Current!$A$2:$A$1000,0)),"YES","NO")

  5. #5
    Registered User
    Join Date
    03-28-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    43

    Re: Validating two sheets and typing text into a column for the results

    Something weird is going on. It's working for the first 20 rows or so but the rest say "NO" but if I double click on the EID cell, then suddenly some cells switch to YES. LMAO What is this? is it like a format problem? I have to manually do it on every cell

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Validating two sheets and typing text into a column for the results

    check your calculation option..
    Formulas > Calculation > Calculation OPtion

    It may be set to Manual.. if then..change it to automatic..

  7. #7
    Registered User
    Join Date
    03-28-2016
    Location
    California
    MS-Off Ver
    2007
    Posts
    43

    Re: Validating two sheets and typing text into a column for the results

    The problem is not the formula (THe calculation is set to Automatic), it's the Column A where the EID is stored. Seems like there's a format or something. The numbers are aligned left, then when I double click and deselect the cell, the numbers align right and it becomes "readable" by the formula and that's when the "yes" appears if it's the case.

    I'm double-clicking each cell manually. I'm at a loss of words.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Typing text in a column undoing code that autohides other colums making them visible
    By Nitro2481 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2016, 10:43 AM
  2. Replies: 0
    Last Post: 02-07-2016, 07:47 AM
  3. Replies: 2
    Last Post: 11-12-2014, 07:38 AM
  4. [SOLVED] start typing in a cell with a drop down box and have it display matching results
    By gnagystrap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2013, 03:21 PM
  5. Transfer data between sheets, validating 2 criteria.
    By Chris! in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2013, 10:11 PM
  6. Copying and validating data from two sheets
    By Shuvro Basu in forum Excel General
    Replies: 0
    Last Post: 07-12-2006, 12:45 AM
  7. Copying and validating data from two sheets
    By Basu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2006, 12:20 AM

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