Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Marie,
You need a table listing the branches, and giving the district for each in a column to the right. Then a VLOOKUP would give you the district. -- Earl Kiosterud mvpearl omitthisword at verizon period net ------------------------------------------- "Marie" wrote in message ... I have a huge amount of data that is downloaded daily. I have the data in a worksheet and need to extract a district from the data. The problem is the data only has a branch number, so I have to sort the information by branch number and manually match that branch number with the district then delete the rows that I do not need. I have 18 districts that I have to match to over 100 branches. There is also other criteria that macros pick up from the data based on the district number. If I just had a seperate macro I could run first and eliminate the branches I don't need it would save me so much time. The branches are not in numerical sequence either, for instance one district might have 55, 56, 122, 123, 124, 125 and 137 as their branches but I have to match it to another sheets data that only has the district number 122 and so on. I was trying to set up arrays that like the example below before all the other criteria. I can't get it to work. If Range(Array(,55,56,122,123,124,125, 137) 'district 122 cell.offset (0,1).value else Selection.EntireRow.Delete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complex conditional summing - array COUNT works, array SUM gives#VALUE | Excel Worksheet Functions | |||
Array formula: how to join 2 ranges together to form one array? | Excel Worksheet Functions | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
variant array containing cel adresses convert to actual ranges-array | Excel Programming |