+ Reply to Thread
Results 1 to 6 of 6

Automatic transfer data to another sheet

  1. #1
    Registered User
    Join Date
    08-11-2015
    Location
    Malaysia
    MS-Off Ver
    2007
    Posts
    5

    Automatic transfer data to another sheet

    Hi all, i'm from malaysia and english is not my mother tongue. I will try my best to make you understand my problem.

    I have a sheet that contains exam's result of my students including 'fail' and 'pass' status. I made another sheet as a report with the list of students that failed and passed the exam.

    Can excel automatically transfer the data to sheet #2 when I put all the data in sheet #1?


    I'll put an attachment as a sample.


    I'm not so good in excel and never use VBA before.

    Thanks a lot.

    YUSOFF
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,999

    Re: Automatic transfer data to another sheet

    Sheet Status Column B4 = IFERROR(INDEX(marks!$B$5:$B$11,SMALL(IF(LEFT(RIGHT($A$1,6),4)=marks!$D$5:$D$11,ROW(marks!$B$5:$B$11)-ROW(marks!$B$5)+1),ROWS(marks!$B$5:B5))),"") and drag it to down with Ctrl+Shift+Enter

    Sheet Status Column E4 = IFERROR(INDEX(marks!$B$5:$B$11,SMALL(IF(LEFT(RIGHT($D$1,6),4)=marks!$D$5:$D$11,ROW(marks!$B$5:$B$11)-ROW(marks!$B$5)+1),ROWS(marks!$B$5:B5))),"") and drag it to down with Ctrl+Shift+Enter
    4

    For Pass
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For Fail
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks
    Ankur
    Attached Files Attached Files

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Automatic transfer data to another sheet

    Hi,

    I dont think you should use VBA for a problem like this.

    You can use formulas.

    On the status sheet in cell A4 put =IFERROR(INDEX(marks!A$5:A$11,SMALL(IF(marks!$D$5:$D$11="fail",ROW(marks!$D$5:$D$11)-ROW(marks!$D$5)+1,""),ROWS(A$4:A4))),"") - Commit using Ctrl+Shift+Enter

    On the status sheet in cell D4 put =IFERROR(INDEX(marks!A$5:A$11,SMALL(IF(marks!$D$5:$D$11="pass",ROW(marks!$D$5:$D$11)-ROW(marks!$D$5)+1,""),ROWS(D$4:D4))),"") - Commit using Ctrl+Shift+Enter


    Drag down and across as required
    Attached Files Attached Files
    Cheers!
    Deep Dave

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,909

    Re: Automatic transfer data to another sheet

    In A4

    =IFERROR(INDEX(marks!$A$5:$A$11,SMALL(IF(marks!$D$5:$D$11="fail",ROW($A$5:$A$11)-ROW($A$5)+1,""),ROWS($A$5:A5))),"")

    Inter with Ctrl+Shift+Enter

    Change the range in red for range for name and mark.

    Copy formula to columns for pass and change "fail" to "pass"

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Automatic transfer data to another sheet

    Also If you want a VBA Solution, then you can use this -

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by NeedForExcel; 08-13-2015 at 02:56 AM.

  6. #6
    Registered User
    Join Date
    08-11-2015
    Location
    Malaysia
    MS-Off Ver
    2007
    Posts
    5

    Re: Automatic transfer data to another sheet

    thanks to all experts. I dont have any suitable words to express my appreciation. never think about iferror or vba. i will try all that anytime soon. And again, thank you very much .

    YUSOFF.
    Malaysia.
    Last edited by JBeaucaire; 08-15-2015 at 02:55 PM.

+ 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. Automatic transfer of a cell from one sheet to another
    By snwbrdr18 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2013, 03:41 PM
  2. Replies: 6
    Last Post: 10-24-2011, 10:59 AM
  3. Automatic transfer of data from one sheet to another
    By his5r2m in forum Excel General
    Replies: 3
    Last Post: 05-08-2009, 06:55 AM
  4. vb code - Automatic transfer of data from one sheet to another
    By herr_bench in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-23-2005, 08:20 PM
  5. vb code - automatic transfer of data from one sheet to another
    By herr_bench in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2005, 06:48 AM
  6. vb code - Automatic transfer of data from one sheet to another
    By herr_bench in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-23-2005, 03:11 AM
  7. Automatic transfer of data from one sheet to another
    By aamirshaikh in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-29-2005, 10:18 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