+ Reply to Thread
Results 1 to 11 of 11

How to automatically extract data in this case

  1. #1
    Registered User
    Join Date
    10-08-2011
    Location
    Hanoi Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    46

    How to automatically extract data in this case

    I am working on a workbook that automatically extracts the list of students that are failed after every shool year. The details are in the file attached. To be clear, the sheet named "Failed" will automatically scan the information of every student in the sheet named "Data", and then extract, fill the detailed information (Name, Class, School, Attendance, Attitude, Reading Mark, Writing Mark, Speaking Mark) of the students that are failed.

    I don't know if the Excel fomulea could do that or have to use VBA to solve that problem. I don't know VBA so I prefer to use of formulea.

    Could any one help me?

    Thanks.
    Attached Files Attached Files
    Last edited by wowow; 12-13-2011 at 10:17 PM.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: How to automatically extract data in this case

    Hi,

    Have a look at this, in your students sheet i have inserted a helper column that sets "PASSED" or "FAILED" value.

    In the "Failed" sheet i have placed a button, when you press it, it will return students that have failed.
    Attached Files Attached Files
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    10-08-2011
    Location
    Hanoi Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to automatically extract data in this case

    Dear Steffen Thomsen,

    Thank you so much for your help!

    I wonder if we could make the VBA marco just fills in the Sheet named "Failed" the values, not formulea extracted from the sheet named "Data"? It works like the function Copy and Paste Values.

    Best Wishes!
    Last edited by wowow; 12-13-2011 at 12:20 AM.

  4. #4
    Registered User
    Join Date
    07-14-2011
    Location
    Ha Noi, Viet Nam
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: How to automatically extract data in this case

    Quote Originally Posted by wowow View Post
    I am working on a workbook that automatically extracts the list of students that are failed after every shool year. The details are in the file attached. To be clear, the sheet named "Failed" will automatically scan the information of every student in the sheet named "Data", and then extract, fill the detailed information (Name, Class, School, Attendance, Attitude, Reading Mark, Writing Mark, Speaking Mark) of the students that are failed.

    I don't know if the Excel fomulea could do that or have to use VBA to solve that problem. I don't know VBA so I prefer to use of formulea.

    Could any one help me?

    Thanks.
    Case one of three mark equal 3??? Failed??
    This is formula -- plz, see the attachment file :
    Attached Files Attached Files
    Last edited by sunflowers; 12-13-2011 at 05:31 AM.

  5. #5
    Registered User
    Join Date
    10-08-2011
    Location
    Hanoi Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to automatically extract data in this case

    Quote Originally Posted by sunflowers View Post
    Case one of three mark equal 3??? Failed??
    This is formula -- plz, see attach file :
    Thank sunflowers,

    One out of three marks below 3 is considered as Failed. Mark from 3 upward is passed.

  6. #6
    Registered User
    Join Date
    07-14-2011
    Location
    Ha Noi, Viet Nam
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: How to automatically extract data in this case

    Quote Originally Posted by wowow View Post
    Thank sunflowers,

    One out of three marks below 3 is considered as Failed. Mark from 3 upward is passed.
    Plz, press Ctrl+F3 to see the formula in the name and see the attachment file again!
    Thanks!
    Attached Files Attached Files
    Last edited by sunflowers; 12-13-2011 at 05:31 AM.

  7. #7
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: How to automatically extract data in this case

    Hi,

    Revised so it only copies values from the data list
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-08-2011
    Location
    Hanoi Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to automatically extract data in this case

    Quote Originally Posted by Steffen Thomsen View Post
    Hi,

    Revised so it only copies values from the data list
    Thank Steffen Thomsen,

    It seems there is a minor problem so it caused error alert when I ran the macro. The alert notices that "Run-time error '1004': PasteSpecial method of Range class failed".

    Thanks

  9. #9
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: How to automatically extract data in this case

    Try now,

    Changed it a bit
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    201

    Re: How to automatically extract data in this case

    Hi,
    See attached a solution using Pivot Table with a field Failed and Conditional Format
    Hope this helps
    Best regards
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-08-2011
    Location
    Hanoi Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to automatically extract data in this case

    Thank you all for help me!

    I learn and apply lots of your skills and knowledge in my works.

    Best wishes!

+ 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