Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Column lookups of specified numbers
I have two columns of Work Order Numbers, A & C A B C WO000023 WO000002 WO000027 WO000003 WO000029 WO000004 WO000084 WO000010 WO000086 WO000011 WO000099 WO000012 WO000101 WO000013 WO000115 WO000014 WO000153 WO000020 WO000164 WO000021 WO000165 WO000024 WO000175 WO000026 WO000176 WO000028 WO000185 WO000030 WO000189 WO000033 WO000190 WO000035 WO000192 WO000036 WO000199 WO000038 WO000203 WO000039 WO000209 WO000040 WO000214 WO000041 .... ... Column A represents numbers that are already used; C consists of unused numbers. I want to create a new WO number for each value in A and place it (in column B) beside the corresponding number in A. It has to be a number from column C that is higher than the one in A. I then want to delete the value used from column C. Any ideas on how to handle the logic? Here's a start... Dim i,j as Integer for i=1 to 35000 'locate a number (eg. Cells(j,3) in column c that is greater than Cells(i,1).value ??? Cells(i,2).value =Cells(j,3).value Cells(j,3).value = "" next end Any help in suggesting how to replace the ??? with code that will work, will be appreciated immensely. Thanks, Jim Berglund |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
lookups based on more than one column | Excel Programming | |||
multiple column lookups | Excel Worksheet Functions | |||
multiple column lookups | Excel Worksheet Functions | |||
multiple column lookups | Excel Worksheet Functions | |||
multiple column lookups | Excel Worksheet Functions |