Thanks to everybody who is with me on this epic journey!
I now need to find the assets that belong to a person. They are stored in a worksheet in column A.
So far I have written this code which finds the first asset that belongs to a person whose surname is in C2:
However, I really need to compare the last name in C2 to the surnames stored in column D of Assets from Ray and also the first name or initial stored in B2 to the first name or initial stored in column C of Assets from Ray so I find the correct match. I then need to list each of the assets found (which could be none, one or several).
The asset column contains an asset number or an asset number followed by an underscore and then extraneous data (such as sa000164_00127940119a). I just want the data before the underscore to be returned. Several results should appear as either as comma delimited or in separate cells in the row.
Can anybody help me? I have looked at the post on FuzzyLogic but it is memory intensive and so with over 2000 asset records to look through it may be too much. I have also looked at Erik's ARLOOKUP functionality which would have been perfect but needs Last Name to be in the left hand column which is a not possible for this project as the data is being pulled from elsewhere.
I now need to find the assets that belong to a person. They are stored in a worksheet in column A.
So far I have written this code which finds the first asset that belongs to a person whose surname is in C2:
=INDEX(RayAsset,MATCH(C2,'Assets from Ray'!D2:D75,0),1)
However, I really need to compare the last name in C2 to the surnames stored in column D of Assets from Ray and also the first name or initial stored in B2 to the first name or initial stored in column C of Assets from Ray so I find the correct match. I then need to list each of the assets found (which could be none, one or several).
The asset column contains an asset number or an asset number followed by an underscore and then extraneous data (such as sa000164_00127940119a). I just want the data before the underscore to be returned. Several results should appear as either as comma delimited or in separate cells in the row.
Can anybody help me? I have looked at the post on FuzzyLogic but it is memory intensive and so with over 2000 asset records to look through it may be too much. I have also looked at Erik's ARLOOKUP functionality which would have been perfect but needs Last Name to be in the left hand column which is a not possible for this project as the data is being pulled from elsewhere.