+ Reply to Thread
Results 1 to 21 of 21

Formula that will return a matching value from one sheet to another

  1. #1
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Formula that will return a matching value from one sheet to another

    Hi everyone,

    Can someone please help! I am in a work book with two sheets. I am trying to create a formula-

    From sheet 2 in column XX I want it to pull from sheet 1 in the same work book

    If there is a match in the two columns - a return of the same data from sheet one into sheet 2.

    Thanks!

    Formula that will return a matching value

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formula that will return a matching value from one sheet to another

    Have a look at the VLOOKUP function.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Formula that will return a matching value from one sheet to another

    In general a VLOOKUP accomplishes something like that. =VLOOKUP (value, sheet that contains the value column it is in:column over you have to look to find the other value,number of that column,false ( meaning exact match))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Thank you TMS

  5. #5
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by Sambo kid View Post
    In general a VLOOKUP accomplishes something like that. =VLOOKUP (value, sheet that contains the value column it is in:column over you have to look to find the other value,number of that column,false ( meaning exact match))
    Thank you, I am having trouble writing the formula...but I am going to try again

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formula that will return a matching value from one sheet to another

    If you upload a sample workbook, I'm sure we'll be able to provide more detailed and practical help.

    Regards, TMS

  7. #7
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by TMS View Post
    If you upload a sample workbook, I'm sure we'll be able to provide more detailed and practical help.

    Regards, TMS
    Awesome, I will upload now, one minute

  8. #8
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by TMS View Post
    If you upload a sample workbook, I'm sure we'll be able to provide more detailed and practical help.

    Regards, TMS
    It is loading -

  9. #9
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by TMS View Post
    If you upload a sample workbook, I'm sure we'll be able to provide more detailed and practical help.

    Regards, TMS
    Upload.xlsx I am trying to match column M from the second sheet with column B from the first sheet names out of tolerance

    IF anyone would like to take a stab at - I would be thankful!
    Last edited by JT2015; 05-03-2015 at 05:27 PM.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formula that will return a matching value from one sheet to another

    OK, I am completely bemused by the file you have uploaded. I have no idea what you are trying to achieve.

    It would help, I think, if you explained what sheet (by name, not Sheet1/Sheet2) and which cell (by column and row reference) will have the formula. Then what cell is being used as a lookup (by sheet/cell reference), which column is being searched (by sheet/column) and which data should be returned (by sheet/column).

    Regards, TMS

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Formula that will return a matching value from one sheet to another

    for a start you'll need the names in both of those sheets to make a match. I don't see any of the names you have in column B in the area out of tolerance sheet in the qry new cp sheet in col M.

  12. #12
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Thank you

    Column M row 3 in the sheet New CP Master should have a formula that returns the same value if there is a match from Column D3 in sheet CP Master and the sheet Out of Tolerance Column B row 5

  13. #13
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by Sambo kid View Post
    for a start you'll need the names in both of those sheets to make a match. I don't see any of the names you have in column B in the area out of tolerance sheet in the qry new cp sheet in col M.
    Sorry, I am so new at excel, please see my last post

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formula that will return a matching value from one sheet to another

    I think maybe we're looking at something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in cell M3 and copied down.

    Doesn't seem to add a lot of value. You could probably just use COUNTIF if you want to check if the Area Code is listed.

    Regards, TMS
    Last edited by TMS; 05-03-2015 at 07:03 PM. Reason: wrong cell reference n3 instead of M3

  15. #15
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Formula that will return a matching value from one sheet to another

    ok, both M3 and D3 in that sheet are blank. An example of a vlookup for you could be =vlooup(D3,' Area - Out of Tolerance'!B:B,1,FALSE). but again, I don't see anything to match against.

  16. #16
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Thank you both so much! I have to leave for work, but I will get back on if it worked! Really appreciate your help

  17. #17
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by TMS View Post
    I think maybe we're looking at something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in cell n3 and copied down.

    Doesn't seem to add a lot of value. You could probably just use COUNTIF if you want to check if the Area Code is listed.

    Regards, TMS
    You rock it! It worked! Thanks TMS and Sambo kid!

  18. #18
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Formula that will return a matching value from one sheet to another

    Don't forget to mark your post as solved using thread tools drop down at the top of this thread. And you can thank those who've helped you by clicking add reputation under their post - that is how we advance on this forum. . I'm not sure i helped you but it appears TRevor did so he would probably appreciate it.

  19. #19
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Absolutely!

  20. #20
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formula that will return a matching value from one sheet to another

    You're welcome. Thanks for the rep.

  21. #21
    Registered User
    Join Date
    04-30-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    12

    Re: Formula that will return a matching value from one sheet to another

    Quote Originally Posted by TMS View Post
    You're welcome. Thanks for the rep.
    I added columns now, can I just cut and paste and then add the new column and row?

+ 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] Formula to return matching value to the left of column
    By f1torque in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2012, 12:43 AM
  2. [SOLVED] Return comment to master sheet after matching to source sheet name and cell number
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2012, 05:09 PM
  3. Formula to return multiple answers matching criteria
    By taketwo in forum Excel General
    Replies: 3
    Last Post: 12-06-2010, 12:34 PM
  4. Return a value of two matching cell values from another sheet
    By chrisneu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2010, 06:14 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