Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Find Value Based On Criteria

  1. #1

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    Hi,

    Try

    =LOOKUP(9.9999E+307,SEARCH(J2,A2:A1884),D2: D1884)
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    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

  4. #4
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    Hi pjotrsk,

    Welcome to ExcelFox !

    Please use code tags while posting codes

    It's better to stick with native excel functions whenever possible.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #5
    Junior Member Haseeb A's Avatar
    Join Date
    Apr 2011
    Posts
    21
    Rep Power
    0
    Hello, Also try this,

    Code:
    =INDEX(D:D,MATCH("*"&J2&"*",A:A,0))
    Last edited by Haseeb A; 07-27-2011 at 11:26 PM.

  6. #6
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    If you want a string comparison to be insensetive to case then use

    Option Compare Text ' in the declaration section of your program
    xl2007 - Windows 7
    xl hates the 255 number

  7. #7
    Junior Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0
    Hi Just Try Below,

    =SUMPRODUCT((A2:A31=A35)*(B2:B31=B35)*(C2:C31))

    Regards,

    Venkat CV

  8. #8
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    Hi Venkat,

    Welcome to ExcelFox !

    Your formula gives #VALUE! error.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  9. #9
    Junior Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Find Value Based On Criteria

    Hi Find attached Work sheet


    sample data Resolved Venkat.xls

    Best Regards,

    Venkat CV

  10. #10
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    Hi Venkat,

    Your formula works in the attachment. However, here the OP wants a different solution. Download OP's attachment and test your formula there.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

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
  •