+ Reply to Thread
Results 1 to 6 of 6

Formula required to match a value in sheet 1 to sheet 2 Column A and select a value from B

  1. #1
    Registered User
    Join Date
    04-09-2015
    Location
    Leeds
    MS-Off Ver
    365
    Posts
    3

    Formula required to match a value in sheet 1 to sheet 2 Column A and select a value from B

    Hi,

    Hopefully somebody can help with this currently I'm using the following formula:

    =IF(Sheet1!C3=Sheet2!$A$2,Sheet2!$B$2,IF(Sheet1!C3=Sheet2!$A$3,Sheet2!$B$3,))

    I have 3 sheets in total and I use this formula to populate sheet 3 with products from our suppliers spreadsheet so Sheet 1 has a list of product types and in sheet 2 there is a list of the product types in column A and the relevant categories in column B.

    I use the formula to convert the product types into the relevant categories automatically the problem I have is that you can only repeat this forumula around sixty times and we have over 100 product types so I'm wondering if there is a quick way to do this. So what I'm looking for is the following:

    A formula to use in sheet 3 A1 to Match the value in Sheet 1 A1 with Values in Sheet 2 A1:A300 If A1 matches the value in Sheet 2 A99 it will populate the value into sheet 3 A1

    Hopefully this is a bit clearer than mud any questions let me know thanks for your help

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula required to match a value in sheet 1 to sheet 2 Column A and select a value fr

    It may be easier to visualize the problem if you upload a sample workbook with your expected results included. To upload, you select Go Advanced --> Manage Attachments below.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    04-09-2015
    Location
    Leeds
    MS-Off Ver
    365
    Posts
    3

    Re: Formula required to match a value in sheet 1 to sheet 2 Column A and select a value fr

    Template.xlsx

    Thanks please see attached file.

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula required to match a value in sheet 1 to sheet 2 Column A and select a value fr

    Unfortunately I'm not able to follow your query above because you reference "Sheet1, 2, etc.", but the sheets are named. Could you substitute in the sheet names for clarity?

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula required to match a value in sheet 1 to sheet 2 Column A and select a value fr

    welcome to the forum, deputydoug. i admire your patience for doing such a long formula!

    back at the question; people normally do such a thing with only 2 sheets involved. that should be your Category_Converter sheet & Categories sheet. you can use VLOOKUP. your use of the 3rd sheet is a little weird, but we'll get to that. try doing this formula in row 2 of Category_Converter sheet at the moment:
    =VLOOKUP(C2,Categories!A:B,2,0)

    this means to look for C2 ("Built in Shower Valve") under Categories worksheet column A. it should include column B too. because when C2 is found, you want to return the 2nd column value. the 0 at the back of the formula is to find an exact match.

    now... back to the 3rd sheet. how do you know which category to look for? if you are simply taking from row 2 of Category_Converter sheet, and later row 3 & so on, why not do the formula in Category_Converter sheet instead?

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Registered User
    Join Date
    04-09-2015
    Location
    Leeds
    MS-Off Ver
    365
    Posts
    3

    Re: Formula required to match a value in sheet 1 to sheet 2 Column A and select a value fr

    I'm a very patient person I knew there would be a fast way to do it.
    I've done as suggested and put that into Category_Converter sheet

    Problem solved thanks for your help that's worked perfectly.

+ 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. (Urgent Req) VBA code required to select a sheet just before a active sheet
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 12:03 PM
  2. Copy select cells from one sheet into the next available column in another sheet
    By gsjan1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-31-2012, 05:55 PM
  3. Copy select cells from one sheet into the next available column in another sheet
    By gsjan1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2012, 05:45 PM
  4. Select data in Sheet 2 based on column values in Sheet 1
    By Snehith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2011, 08:52 PM
  5. Match column from sheet 2 to sheet 1 and copy rows if match exists.
    By GravityInvert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2008, 01:42 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