VB Code to consolidate

I have a ODBC query bringing in order header files on the orders by routes.
but there are three companies with three routes that equal one.

Route: 1A, 2B, 2C

I don't want to have three filters on the routes I would like to have a lookup or something so they can be consolidated as one in the view
jaymz69Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory ArchibaldCommented:
It would be useful to see a data sample. I think you just need a lookup table, but it's not clear from the question. You could also simply group those items in a pivot table if that works for your needs.
0
jaymz69Author Commented:
That would sound like the easiest way.

How would I go about on a data lookup table?
0
Rory ArchibaldCommented:
You would have a lookup table with the actual route numbers in the first column, then the group names in the second column. Then in the source data you use an additional column with a formula like:
=vlookup(route_number,lookup_table,2,false)
to return the group for that route.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

jaymz69Author Commented:
How would I group in a Pivot Table
I would have to somehow setup every route consolidation
0
Rory ArchibaldCommented:
If you have a lot of them to group, use a lookup table and formulas. Doing it in the pivot table would be a real pain.
0
jaymz69Author Commented:
OK so back to looking up lookup table.

thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.