+ Reply to Thread
Results 1 to 4 of 4

Pulling data from another sheet based on the value in a column.

  1. #1
    Registered User
    Join Date
    02-18-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    2

    Question Pulling data from another sheet based on the value in a column.

    Hello all,

    I have what I assume is a simple problem, however I am struggling to wrap my head around the formula needed to do this.

    My spreadsheet has 2 sheets, Sheet1 is the main 'database' and contains multiple information columns, Sheet2 is a smaller set of data that shares a few columns from Sheet 1.

    Example:

    Sheet1
    Institute, Name, Surname; DOB; ID; Date enrolled; Subject...etc..

    Sheet2
    Name, Surname, ID.

    My idea is that I want to input an ID value into Sheet2 (Column C), and have the remaining data rows (Name, surname etc) pulled from Sheet1.

    It's been a while since I played around with Excel so I am not sure what the best way to do this is. I was trying some IF statements without much luck.

    For example, under the Name column in Sheet2 I tried the following (Column C is the 'ID' column in Sheet2.):
    =IF(C2='Sheet1'!F2,'Sheet1'!A2,"Error")

    This works for a single value and does the trick, however I need this to function over a range so that any 'ID' I feed into a row of Sheet2 Column C will pull the data from Sheet1.

    From what I have seen online I may need to use a FILTER, INDEX or VLOOKUP function.

    Please let me know if you need me to explain this better.

    Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,428

    Re: Pulling data from another sheet based on the value in a column.

    Welcome to the forum.

    INDEX MATCH in Sheet 2 A2, and copy down:

    =IFERROR(INDEX(Sheet1!B:B,MATCH(C2,Sheet1!F:F,0)),"Error")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-18-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Pulling data from another sheet based on the value in a column.

    Thanks Ali!! That's exactly what I needed!

    I knew someone would have an easy answer! I think it's time I do an Excel refresher course, do you have any in mind? I've got the basics down but would like to learn more advanced functions.

    So glad I found this forum, I'll definitely be back in the future with more questions.

    Cheers!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,428

    Re: Pulling data from another sheet based on the value in a column.

    Just hang out around here - that's how I learnt. Set yourself a project.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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: 01-05-2021, 07:16 PM
  2. Pulling Data Based on Name to New Reformatted Sheet
    By ngor3431 in forum Excel General
    Replies: 4
    Last Post: 05-28-2012, 04:56 AM
  3. Pulling data from sheet if based on day
    By gduncan229 in forum Excel General
    Replies: 1
    Last Post: 01-31-2011, 05:09 PM
  4. Replies: 2
    Last Post: 10-28-2010, 11:15 AM
  5. Pulling Data From Sheet To Sheet Based on Text
    By jacobingalls in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-28-2009, 12:50 PM
  6. Pulling Information in seperate sheet based on data in current sheet
    By joekunin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-03-2009, 05:06 AM
  7. pulling data from sheet 2 based on sheet1
    By renatonetmail in forum Excel General
    Replies: 2
    Last Post: 08-09-2007, 08:57 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