Airline Pilot Central Forums

Airline Pilot Central Forums (https://www.airlinepilotforums.com/)
-   Union Talk (https://www.airlinepilotforums.com/union-talk/)
-   -   ALPA database trick (https://www.airlinepilotforums.com/union-talk/138753-alpa-database-trick.html)

Singlecoil 07-29-2022 08:35 AM

ALPA database trick
 
Geek Alert!
For any of you membership committee folks who have to deal with the excel data that ALPA provides, here is the code to break out the address from the single field they provide.
Their file has these columns:
Name, ALPA#, Cncl, Address, Email, Primary Phone, Cell Phone, Status, etc.
To break out the address, add 4 columns after Address like this:
Name, ALPA#, Cncl, Address, Street, City, State, Zip, Email, Primary Phone, Cell Phone, Status, etc.
and the code below is for those 4 new columns.

Column E
=LEFT(D2,FIND(",",D2,1)-1)
Column F
=MID(D2,FIND(",",D2,1)+2,FIND("~",SUBSTITUTE(D2,", ","~",2))-FIND("~",SUBSTITUTE(D2,",","~",1))-2)
Column G
=MID(D2,FIND("~",SUBSTITUTE(D2,",","~",2))+2,FIND( "~",SUBSTITUTE(D2,",","~",3))-FIND("~",SUBSTITUTE(D2,",","~",2))-2)
Column H
=MID(D2,FIND("~",SUBSTITUTE(D2,",","~",3))+2,LEN(D 2)-FIND("~",SUBSTITUTE(D2,",","~",3))-1)

I'm sure there a tons of ways of doing that, but it works.


All times are GMT -8. The time now is 09:25 PM.


User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Website Copyright ©2000 - 2017 MH Sub I, LLC dba Internet Brands