Hi @brad.jackson. I do not know what your current code may look like, or how you may have it structured, but since you mentioned iLogic, and are somewhat unfamiliar with some of the basic operators, I assume you are working on an iLogic rule, and are attempting to use the GoExcel functionality that iLogic has available. So, just to add to what Tyler suggested (which I agree with), here is a full working example of an iLogic rule, using GoExcel functionality, to search for the row matching your specifications, and returns the data from that row in a message, as well as leaving you with each piece of data in that row stored to variables that you could use however you may want to, instead of simply showing a message. I tested this code on your Excel document, after downloading it to my C:\Temp\ folder, and it worked just as planned.
oFile = "C:\Temp\Slider Parts Data.xlsx"
oSheet = "HDPE Data"
GoExcel.Open(oFile, oSheet)
GoExcel.DisplayAlerts = False
Dim oRow As Integer = 2
Dim oVendorCol As String = "A"
Dim oItemNumCol As String = "B"
Dim oProdNameCol As String = "C"
Dim oColorCol As String = "D"
Dim oWidthCol As String = "E"
Dim oMaxLengthCol As String = "F"
Dim oVendor, oItemNumber, oProductName, oColor As String
Dim oWidth, oMaxLength As Double
For oRow = 2 To 35
oColor = GoExcel.CellValue(oColorCol & oRow)
oWidth = GoExcel.CellValue(oWidthCol & oRow)
oMaxLength = GoExcel.CellValue(oMaxLengthCol & oRow)
If oColor = "White" And oWidth = 4 And oMaxLength > 159.75 And oMaxLength <= 207.75 Then
oVendor = GoExcel.CellValue(oVendorCol & oRow)
oItemNumber = GoExcel.CellValue(oItemNumCol & oRow)
oProductName = GoExcel.CellValue(oProdNameCol & oRow)
Exit For
End If
Next
If oVendor = "" Then 'a matching row was never found
MsgBox("A row in the Excel sheet meeting input value requirements was not found.", vbCritical, "")
Else
MsgBox("A match was found: " & _
vbCrLf & "Vendor = " & oVendor & _
vbCrLf & "Item Number = " & oItemNumber & _
vbCrLf & "Product Name = " & oProductName & _
vbCrLf & "Color = " & oColor & _
vbCrLf & "Width = " & oWidth & _
vbCrLf & "Max Length = " & oMaxLength, vbInformation, "")
End If
'GoExcel.Close
'GoExcel.QuitApplication
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.
Wesley Crihfield

(Not an Autodesk Employee)