troubleshooting Question

Searching through Excel Rows

Avatar of James0903
James0903 asked on
Microsoft Excel
7 Comments1 Solution311 ViewsLast Modified:
Sir/Madam,
In the attached spreadsheet, I have rows of data.  Due to the input from our customer, all data appears on one row.  My goal is:

- Macro created (I have not written them before) that reviews each row.  If the value of "JJ" appears, followed by an airport listed in the 'Master Airports' tab, copy the row to a new tab in the spreadsheet. Example (row #5 in my spreadsheet):  
US,2012,1,00336,000001,ABE,JJ,UA,X,CLT,16,UA,X,ABE
"JJ" appears, and an airport listed in the 'Master Airport' list, that of 'CLT' will result in this row being copied to a new tab.  The amount of spaces between "JJ" and "CLT" will always be 7 (data of ",UA,X,").  The row of data may extend out but the distance will always be 7.

Simpler:
If finding the JJ and a corresponding Master Airport is too difficult, then simply, wherever "JJ" appears in the row, copy that row to a tab in the spreadsheet.

Please see attached for example.  The rows highlighted in yellow on the 'RAW' tab are what I want copied to the 'JJ' tab.  

FYI, the data provided is barely 1% of my data....I work with a lot of data!

Thank you as always!
ExpertsExchange-Question6.xlsx
ASKER CERTIFIED SOLUTION
Saqib Husain
Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros