+ Reply to Thread
Results 1 to 4 of 4

Need to check if data exist in another worksheet

  1. #1
    Registered User
    Join Date
    02-22-2015
    Location
    London,England
    MS-Off Ver
    2007
    Posts
    1

    Need to check if data exist in another worksheet

    I am making a spreadsheet where there are two different worksheets , one with student information. This includes their status on a course (Enrolled/Not Enrolled) The second worksheet is the enrolment worksheet which contains student names and the course they are enrolled into. I need a formula to check if the students name is on the enrolment worksheet and if it is then change the student status on the first worksheet to "Enrolled" and if they aren't on it then keep it at "Not Enrolled" Can Anyone help me to solve this problem?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Need to check if data exist in another worksheet

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Need to check if data exist in another worksheet

    Assuming Column A contains the Student Names on both worksheet. The formula in Column B of Student Worksheet would be:-
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag down.

    SHEET2 is the enrollment sheet.
    Better if you attach a sample workbook next time as it becomes easier for us you know.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need to check if data exist in another worksheet

    Hi Vlad and welcome to the forum,

    It is a little hard to understand your two sheets layout but see if the attached fits what you are asking. I have an array formula in B2 on sheet 1 of:

    =IF(ISERROR(MATCH($A2 & B$1,Sheet2!$A$1:$A$24&Sheet2!$B$1:$B$24,0)),"Not Enrolled","Enrolled")

    It is an array formula and needs to be entered using Control+Shift+Enter. Read: http://www.cpearson.com/excel/ArrayFormulas.aspx
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] Check First IF Sheet Is Exist With The Name Of Cell K7 If exist Then run the code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2015, 10:08 AM
  2. Check if Data already Exist
    By weeeee0713 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2014, 10:47 PM
  3. [SOLVED] how to run macro or msgbox when Worksheet does not exist/exist
    By herukuncahyono in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2013, 10:54 PM
  4. [SOLVED] using macro to check worksheet if data input in another worksheet exist.
    By Curtis goh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-30-2013, 01:02 AM
  5. Replies: 4
    Last Post: 06-18-2006, 01:10 PM

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