Hi all,
I would appreciate any help from the Excel gurus here! I have an excel file from say, an airline, that lists passengers who went through the airport. Some of them have a frequent flyer card. Of those passengers who DO NOT have a frequent flyer card, I want to mark which of them have the same surname of those WITH a frequent flyer card who scanned on the same date, same flight and within 1 minute of those with the card (i.e. they would be family members). I only want to mark ONE family member. I need to do this with a formula and when I say mark just a "count" string in a separate column is fine.
This will ultimately be added into another formula. I've tried literally everything I can think of but I cannot get it to work.
I've attached a sample of the file. I've separated the surnames of those who have a card and those who don't have a card. Then I did an if statement where if the data in column J is not "C" (just a requirement), AND the count of the flight number in column E is greater than 1, then vlookup the names of those who don't have a card against the list of those who do. It's still not accurate enough. It needs to reflect the same date as the person with the card, and within 1 minute of that person scanning. At this stage my eyes are rolling in my head so I might not be thinking about it accurately!
ANY help is greatly appreciated. I need to get a formula in a single line and not have to rely on additional columns (beyond A-K). This is just part of the file so not every name will be visible but the very last entry should be a 100% match.
Bookmarks