+ Reply to Thread
Results 1 to 11 of 11

How to search for data on one sheet and pull it over to another.

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    How to search for data on one sheet and pull it over to another.

    Hello, I know it may be something really simple, but I cannot figure this one out. We use a spreadsheet to manage all our learners in the centre. We have a main page which contains their username, name, end dates, etc. I want separate sheets for different programmes, for example, Numeracy, Literacy, Workskills and IT. I would like some sort of formula (or maybe VBA code) that will look at a column on the main sheet and see what programme their are on and pull there name over to the relevant sheet but still leaving the details on the main page aswell.

    I have attached a small spreadsheet explaining what I am after.

    Thank you in advance for any help with this problem.

    Sam
    Attached Files Attached Files
    Last edited by samdegg; 10-22-2013 at 05:03 AM.

  2. #2
    Registered User
    Join Date
    09-02-2012
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: How to search for data on one sheet and pull it over to another.

    Sorry about that, I have now changed the title.

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to search for data on one sheet and pull it over to another.

    Hello Sam try this in C3 in maths sheet copy and paste below
    =IFERROR(INDEX(Learners!$C$4:$C$6,SMALL(IF(LEFT(Learners!$E$4:$E$6,FIND(" ",Learners!$E$4:$E$6)-1)="Maths",ROW($E$4:$E$6)-ROW($E$4)+1),ROWS($A$1:A1))),"") and hold control and shift then hit enter and copy down

    for Employ sheet use the same formula just change "Maths" to "Employ"
    Last edited by hemesh; 10-22-2013 at 07:44 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Registered User
    Join Date
    09-02-2012
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: How to search for data on one sheet and pull it over to another.

    Quote Originally Posted by hemesh View Post
    Hello Sam try this in C3 in maths sheet copy and paste below
    =IFERROR(INDEX(Learners!$C$4:$C$6,SMALL(IF(LEFT(Learners!$E$4:$E$6,FIND(" ",Learners!$E$4:$E$6)-1)="Maths",ROW($E$4:$E$6)-ROW($E$4)+1),ROWS($A$1:A1))),"") and hold control and shift then hit enter and copy down

    for Employ sheet use the same formula just change "Maths" to "Employ"
    I have tired this and get nothing, no error message or anything. I have attached the spreadsheet with the formula entered. Thank you.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to search for data on one sheet and pull it over to another.

    Click cell press f2 then hold control and shift together then hit enter(this is confirmation of array)
    Once formula is entered as array you will find curly braces {} surrounding your formula which cannot be entered manually
    Last edited by hemesh; 10-22-2013 at 08:35 AM.

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to search for data on one sheet and pull it over to another.

    Find the attached
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-02-2012
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: How to search for data on one sheet and pull it over to another.

    That has worked, thank you. Is there anyway of making it do automatically? We add a lot of learners on and I know that the other tutors would not remember to do that everytime.

  8. #8
    Registered User
    Join Date
    09-02-2012
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: How to search for data on one sheet and pull it over to another.

    Sorry, I have done it now. I need to do the F2 bit first then drag it down.

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to search for data on one sheet and pull it over to another.

    Drag the formula down(around 30-40 rows) it will show empty cells but when you put maths in first sheet it will pick the name automatically

  10. #10
    Registered User
    Join Date
    09-02-2012
    Location
    Staffordshire, England
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: How to search for data on one sheet and pull it over to another.

    Quote Originally Posted by hemesh View Post
    Hello Sam try this in C3 in maths sheet copy and paste below
    =IFERROR(INDEX(Learners!$C$4:$C$6,SMALL(IF(LEFT(Learners!$E$4:$E$6,FIND(" ",Learners!$E$4:$E$6)-1)="Maths",ROW($E$4:$E$6)-ROW($E$4)+1),ROWS($A$1:A1))),"") and hold control and shift then hit enter and copy down

    for Employ sheet use the same formula just change "Maths" to "Employ"
    Sorry to be a pest again. I have thought of another use for this formula.

    Is it possible to make it look at a programme end date (given in date format), then return the learners name if it matches =TODAY().

    I have tired to change the formula to fit this but can't seem to get it working.

    Thank you in advance.

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to search for data on one sheet and pull it over to another.

    Hello Sam that can be done but you need to adjust the formula. if you dont mind Can you post a sample book again to just have a look with around 10-15 rows of data to work.

+ 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. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  2. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  3. Replies: 1
    Last Post: 05-18-2012, 10:39 AM
  4. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  5. problem with formula
    By wu-fu in forum Excel General
    Replies: 1
    Last Post: 07-10-2005, 06:05 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