Results 1 to 10 of 11

Thread: Find Value Based On Criteria

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0
    Hi,

    I propose:
    =find_any($A$2:$D$1884;1;J2;4)

    This is user-defined formula:

    Code:
    Function find_any(res As Range, find_in As Long, find_val As String, find_out As Long)
    For Each res In res
        If IsError(res.Cells.Value) Then GoTo turp
        If res.Column = find_in And InStr(res.Cells.Value, find_val) > 0 Then find_any = res(res.Row, find_out): Exit Function
    turp:
    Next
    End Function
    Last edited by Admin; 07-27-2011 at 08:04 PM. Reason: code tag added

Similar Threads

  1. Summing Data based on certain criteria
    By Howardc in forum Excel Help
    Replies: 7
    Last Post: 01-30-2013, 07:12 PM
  2. Sum values based on multiple criteria
    By Jorrg1 in forum Excel Help
    Replies: 8
    Last Post: 01-07-2013, 03:04 PM
  3. Split data based on criteria
    By Mahesh.sreekakulam in forum Excel Help
    Replies: 3
    Last Post: 06-08-2012, 09:30 PM
  4. Lookup Based on Criteria
    By maruthi in forum Excel Help
    Replies: 2
    Last Post: 02-15-2012, 08:49 AM
  5. Find Value Based On MAX Value
    By Beaker Rex in forum Excel Help
    Replies: 3
    Last Post: 09-13-2011, 06:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •