+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : If statement to return a text value

Hybrid View

retroedward If statement to return a text... 07-26-2011, 08:38 AM
Bob Phillips Re: If statement to return a... 07-26-2011, 10:11 AM
retroedward Re: If statement to return a... 07-26-2011, 11:46 AM
  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    If statement to return a text value

    hi there,

    I'm trying to find a formula which will return a text value from a data set I'm using...

    to explain myself better - I have data along the lines of

    Fields (columns):

    Job Number, Employee name, Job title, Week commencing

    Sample data:

    xy1234, Pete, Director, 01/08/11

    I want a formula that uses job number, job title and week commencing as the variables, and gives the Employee name as the result.

    I've tried lots of combinations of IF, AND, INDEX, MATCH, VLOOKUP etc and they all seem to work only for the first instance in the list and then either give no result or repeat the first result.

    It seems so obviously easy in my head, I just can't seem to get it running. Any help would be greatly appreciated!

    many thanks
    Ed

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: If statement to return a text value

    Try this aarray formula

    =INDEX($B$2:$B$200,MATCH(1,($A$2:$A$200="xy1234")*($C$2:$C$200="Director")*($D$2:$D$200=--"2011-08-01"),0))

  3. #3
    Registered User
    Join Date
    07-26-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If statement to return a text value

    works a treat! amazing, thanks so much Bob.


    Quote Originally Posted by Bob Phillips View Post
    Try this aarray formula

    =INDEX($B$2:$B$200,MATCH(1,($A$2:$A$200="xy1234")*($C$2:$C$200="Director")*($D$2:$D$200=--"2011-08-01"),0))

+ 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