+ Reply to Thread
Results 1 to 2 of 2

Using IF function with mutilple criteria in combination with MID function

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using IF function with mutilple criteria in combination with MID function

    You guys are awesome and I have solved nearly all of my life's problems through this forum... but...

    I have a problem where I need to have an output of a certain string of text if certain conditions are met. The below formula is what I have come up with so far but I keep getting a #VALUE! error.


    =IF(AND(LEFT(B2,2)=MID(H3:H6,44,2),E2=MID(H3:H6,13,4)),H3:H6,FALSE)

    So if certain characters within a string equal characters within another string in an array of strings, and if a certain cell matches the value of another part of that string of text in the array, create an output of that specific cell that matches both criteria. I assume that my problem is the equation is slightly too ambiguous. Please note that many of the values are duplicates (need to keep them).

    Even an explanation of my issue would be a helpful first step in fixing this problem.

    Thank you all!

    -Ryan

  2. #2
    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,926

    Re: Using IF function with mutilple criteria in combination with MID function

    Hi and welcome to the forum

    left(), righ() and mid() take a single value, not a range. Im not suere if this would work in an array formula though
    To see if it will work in an array, use CTRL SHIFT enter, instead of just enter
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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