M
MSNEWS
Hi all,
I am writing some code that needs to determine the row number of a cell
where the cell contents match.
I have two sorted named Ranges : currentWeek and previousWeek
The first column of each range is a persons name. I need to find the row
number in previousWeek where the persons name from currentWeek matches.
In some cases a person that exists in currentWeek may not exist in
previousWeek (in which case returning -1 would be fine)
I two loops to do this search, but in a list of upto 1500 names, the time it
takes is very long.
any suggestions would be appreciated.
thanks
Dave
I am writing some code that needs to determine the row number of a cell
where the cell contents match.
I have two sorted named Ranges : currentWeek and previousWeek
The first column of each range is a persons name. I need to find the row
number in previousWeek where the persons name from currentWeek matches.
In some cases a person that exists in currentWeek may not exist in
previousWeek (in which case returning -1 would be fine)
I two loops to do this search, but in a list of upto 1500 names, the time it
takes is very long.
any suggestions would be appreciated.
thanks
Dave