J
Jan Kronsell
I have a workbook, consisting of several sheets. In this case only two of
the sheets are interesting.
In sheet "Bulk", column BC I have a field containing project ID and in
column BD I have the name of the executive rerponsible for the project.
In sheet "Data" I have the same projectID's in Column I. In column A I want
the name of the Executive in charge returned.
This is ordinarily no problem using VLOOKUP. In this case however, the
projectID is not unique. In Bulk colunm BC the same number can appear 2, 3,
4 or 5 times with a different exceutive name, as each project can have more
than one responsible exec.
In Data, column I the ID also appears several times. The challenge now is to
return the correct name in Data column A, so that first time the projectID
appears in columns A, the first responsible Excec name appears, next time
the ID appears it shoud be the name of the second responsible exec and so
on.
I have a UDF, that returns second, third, fourth and so onn, excec name, but
this UDF needs to know wich number I want returned, and that must be
hardcoded in the formula, which is not an option as I have more 30.000 rows
in the sheet.
Is there anyway to return the second, third, and so on?
Jan
the sheets are interesting.
In sheet "Bulk", column BC I have a field containing project ID and in
column BD I have the name of the executive rerponsible for the project.
In sheet "Data" I have the same projectID's in Column I. In column A I want
the name of the Executive in charge returned.
This is ordinarily no problem using VLOOKUP. In this case however, the
projectID is not unique. In Bulk colunm BC the same number can appear 2, 3,
4 or 5 times with a different exceutive name, as each project can have more
than one responsible exec.
In Data, column I the ID also appears several times. The challenge now is to
return the correct name in Data column A, so that first time the projectID
appears in columns A, the first responsible Excec name appears, next time
the ID appears it shoud be the name of the second responsible exec and so
on.
I have a UDF, that returns second, third, fourth and so onn, excec name, but
this UDF needs to know wich number I want returned, and that must be
hardcoded in the formula, which is not an option as I have more 30.000 rows
in the sheet.
Is there anyway to return the second, third, and so on?
Jan