+ Reply to Thread
Results 1 to 7 of 7

If value matches value on another sheet then copy cell next to it into first sheet

  1. #1
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    If value matches value on another sheet then copy cell next to it into first sheet

    I have no idea how to search for this so apologies if this has been answered already

    I have 2 sheets

    Sheet 1 has product ID's in column B amongst other data in other columns
    Sheet 2 has product ID's in column C and sell ranking in column A

    I want to find the product ID that is showing in column B in sheet 1 on sheet 2 (column C) and then take the value in Column A sheet 2 and place it in sheet 1 column A

    I'm not sure how well I have explained that so ill try to show it in numbers below

    Before

    Sheet 1
    A, B, C,
    Blank, BBQ1, xyz,
    Blank, BBQ2, dfg,

    Sheet 2
    A, B, C,
    1, ABC , BBQ1,
    5, rty, BBQ2,

    After

    Sheet 1
    A, B, C,
    1, BBQ1, xyz,
    5, BBQ2, dfg,

    Sheet 2
    A, B, C,
    1, ABC , BBQ1,
    5, rty, BBQ2,

    Does that make anysense?

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If value matches value on another sheet then copy cell next to it into first sheet

    Are you looking for on Sheet 1 in A1 copied down...

    =INDEX(Sheet2!$A$1:$A$2,MATCH($B1,Sheet2!$C$1:$C$2,0))

    I'm guessing you are matching on the BBQ
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    Re: If value matches value on another sheet then copy cell next to it into first sheet

    Yes, sorry should have said

    I have 4000 rows in one sheet and about 5000 in the other and they are not in order. So I would like to match the relevant detail (BBQ number in this case) and then add the sell ranking into the first sheet that corresponds to the bbqnumber on the second. I have no idea why but I'm really struggling to articulate this well so apologies!

    I'll give the below a go and let you know, thank you!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If value matches value on another sheet then copy cell next to it into first sheet

    if the solution of jeffreybrown is not what you want to achieve',

    then

    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If value matches value on another sheet then copy cell next to it into first sheet

    If your rows cover more than your example, then just extend the references in the formula.

    http://www.contextures.com/xlFunctions03.html

  6. #6
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    Re: If value matches value on another sheet then copy cell next to it into first sheet

    It didn't quite do the trick I'm afraid.

    Attached is a spreadsheet with what I'm trying to achieve.
    The items with the red background is where I need the formula. It should look up in sheet 2 and add the relevant sales rank number into sheet 1 'bestseller?' column.

    Does that help at all?
    Attached Files Attached Files

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If value matches value on another sheet then copy cell next to it into first sheet

    How about...
    Attached Files Attached Files

+ 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] Copy Column A data to Sheet 2 where rows matches Sheet 2 headers
    By SCDE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 12:14 AM
  2. [SOLVED] Copy datas in sheet if value matches
    By heiderayos in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-15-2014, 08:55 PM
  3. [SOLVED] Copy row if value matches 'Sheet'!B1
    By ngocpdn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2013, 11:54 PM
  4. Pull data from a specific sheet that matches cell value on Input Sheet
    By vaciaravino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2012, 08:38 PM
  5. Replies: 4
    Last Post: 08-23-2012, 05:26 AM
  6. Compare Sheet 1 and Sheet 2, and find matches and non-matches
    By danNAD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2010, 03:59 AM
  7. Replies: 1
    Last Post: 10-30-2009, 10:58 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