Closed Thread
Results 1 to 3 of 3

return value based on multiple strings

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    norway
    MS-Off Ver
    2010
    Posts
    37

    return value based on multiple strings

    Hi!

    I have real challange, and I want to do this without use of macro!! Me and my friend are making a training report. This is the report:

    A B C
    1 NAME TYPE VALUE
    2 Chris Strength
    3 Tom Cardio 60
    4 Chris Strength 80
    5 Tom Strength 75
    1.table

    What we need is to return the FIRST value in column C, WHEN
    • The FIRST value is above or below "0" (not empty cells)
    • BOTH the strings "Tom" AND "Strength" matches. Like this:
    A B C
    1 Chris Strength 80
    2 Tom Strength 75
    2. table

    In other words: When A2 (in 2. table) matches A:A (in 1. table) AND B2 (in 2. table) matches B:B (in 1. table); return the value from C:C (1. table) to C2 (2. table). If the returned value is an empty cell, return the next value (based on the criterias mentioned).

    I appreciate all help!

    Bok1.xlsx
    Last edited by mariur89; 01-12-2015 at 11:52 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: return value based on multiple strings

    In C10
    =INDEX($C$2:$C$5,MATCH(1,INDEX(($A$2:$A$5=A10)*($B$2:$B$5=B10)*($C$2:$C$5<>""),0),0))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: return value based on multiple strings

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

    http://www.excelforum.com/excel-form...e-strings.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] return cell value based on multiple strings
    By mariur89 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-12-2015, 11:32 AM
  2. return multiple text strings from other worksheet
    By Hurseys in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2014, 12:35 PM
  3. excel formula to search Multiple strings in several columns and return strings
    By krratna123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 11:20 AM
  4. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  5. Replies: 3
    Last Post: 06-06-2012, 01:44 PM

Tags for this Thread

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