iLogic Excel Lookup Multiple Possible Finds?

iLogic Excel Lookup Multiple Possible Finds?

mthomas
Collaborator Collaborator
630 Views
2 Replies
Message 1 of 3

iLogic Excel Lookup Multiple Possible Finds?

mthomas
Collaborator
Collaborator

I"m attempting to use iLogic to populate a parts iProperties based on an excel spreadsheet. In this case there are 4-columns (Height, Width, Thickness, and Part #).

 

Using the height & width from the model with the "FindRow" function I am able to determine the first instance in the spreadsheet with these values, however what do I do when there are multiple lines with the same height and width but the thicknesses vary?

 

Since I have the first row that matches the height and width is there some way to interate until the height or width changes?

 

Thanks

 

Mike Thomas

0 Likes
Accepted solutions (1)
631 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

Can you not use your thickness in the lookup ? That would determine the unique row :

 

i = GoExcel.FindRow("c:\temp\testbook.xls", "Sheet1", "Height", "=", 1800, "Width", "=", 500, "Thickness", "=", 20)

 

Tom

0 Likes
Message 3 of 3

mthomas
Collaborator
Collaborator

Doh!... of course the lookup can do more than 2-columns

 

Thanks!

Mike Thomas

0 Likes