+ Reply to Thread
Results 1 to 4 of 4

give a value based on data found in a column - put need a value from it's row

  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    san diego
    MS-Off Ver
    Excel 2003
    Posts
    2

    give a value based on data found in a column - put need a value from it's row

    I am stuck. I have a ton of data. on one worksheet (lets call it worksheet A) i have a list of merchant's name and data on the merchant in a row (e.g. category) on another worksheet (lets call it worksheet B) i have another list of merchant's name and no category listing for them. i want to create a new column in worksheet B called category and i want to be able to tell that box, if name in this worksheet B equals the name in Worksheet A, Column 1 then the category assigned to that name will appear in this box. (this is very easy to merge in access but have to find solution for excel)

    i have condenced it down to one worksheet with three listings. any help would be greatly appreaciated.
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: give a value based on data found in a column - put need a value from it's row

    In your example, cell E1
    =INDEX($B$2:$B$6,MATCH(D2,$A$2:$A$6,0))
    and then copied and pasted into E3:E6
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-20-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: give a value based on data found in a column - put need a value from it's row

    Based on the example provided, you could also try using the VLOOKUP function.
    Please Login or Register  to view this content.
    Where D2:D4 is your lookup array, A2:B6 is your array table, if match return column 2 data, 0 = exact match. You can easily tweak the above code if your data lies across different sheets--simply highlight/select desired cells for both the lookup array and the array table.

    Cheers,
    Jimmie

  4. #4
    Registered User
    Join Date
    07-01-2009
    Location
    san diego
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: give a value based on data found in a column - put need a value from it's row

    thank you. the vlookup was exactly what i needed. so simple. i knew it would be. thank you. i really appreciate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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