+ Reply to Thread
Results 1 to 2 of 2

Returning text against text based criteria

  1. #1
    Registered User
    Join Date
    07-19-2014
    Location
    dubai
    MS-Off Ver
    2013
    Posts
    1

    Returning text against text based criteria

    I need to analyse more than 4500 product of my company. I have data in more then 20 separate excel worksheets, I need a function or a vba code to return the text against my product names.

    I my main file i have the names of the products, sales and purchase data and analysis. In other files I have the categories list against those products. In the main file the products are according to brand and categories have different products from different brands grouped together. I want a function something similar to sumif but for text.

    Example

    What I need
    Art no. Product Name Brand Group Category Subcategory
    y-123 abc lux hair care shampoo hair shine shampoo
    A-123 bca loreal skin care anti acne anto acne soap



    Main file
    Art no. Product Name Brand Group Category Subcategory Q1 sales Q2 sales Q3 sales
    y-123 abc lux 120 110 105
    A-123 file with categories against respective products.xlsxmain file what i have.xlsxmain file.xlsxwhat i need.xlsx

    Category files

    Art no. Product Name Brand Group Category Subcategory
    y-123 abc lux hair care shampoo hair shine shampoo

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,686

    Re: Returning text against text based criteria

    you should be able to do a index/match or a vlookup

    are these going to be in different sheets or different workbooks

    Column A on the main , if it has unique values then it can match

    for example

    =VLOOKUP(A4,'[file with categories against respective products.xlsx]Sheet1'!$A$4:$E$12,3,FALSE)
    will put the first value into column C
    =VLOOKUP(A4,'[file with categories against respective products.xlsx]Sheet1'!$A$4:$E$12,4,FALSE)
    into D
    =VLOOKUP(A4,'[file with categories against respective products.xlsx]Sheet1'!$A$4:$E$12,5,FALSE)
    into E

    the files need to be in the same folder and need to be open to work
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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] Need help returning text if Data meets certain criteria
    By sumner06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2014, 01:06 PM
  2. sorting text from one cell into 3 other cells based on text criteria
    By steik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2014, 06:35 PM
  3. [SOLVED] Requesting help returning text values from criteria based on multiple columns
    By dzarrabi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2013, 08:16 AM
  4. [SOLVED] Returning text Values based on text
    By Cameron1701 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-08-2013, 11:30 PM
  5. Replies: 2
    Last Post: 02-20-2012, 05:59 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