Determine if Employee was "Active" as of a certain date

We are working on information for the Affordable Care Act...
We need to determine which of our employees were "active" on a certain day - 1/1/2015 to be exact.
Not necessarily if they worked that day, but were they an active employee on that particular day.
Our payroll software does not give us an option to run a report to get this information.  I am able to access the database and have found a table that shows the employee status.  H=Hire, T=Terminate, R=Rehire with the corresponding date.

I'm sure there is a way to do this but can't even get started.  Some of the employees, for example #2148 has 13 in's and out's.  Trying to get a list of employee names and their employee ID's that were "active" on 1/1/2015.

Any assistance would be appreciated.  I  have attached a file with one of our 50+ companies that we will have to evaluate.
klitton7Asked:
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.

Tj aCommented:
Hello,

Looks like you might have forgot to attach the file.
klitton7Author Commented:
klitton7Author Commented:
extension is .xls
I have shortened the name.  I didn't realize it was using the path as part of the name>
H--Documents-AHT-Data.xls
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Saqib Husain, SyedEngineerCommented:
Due to the limit on nesting levels in .xls files I have had to break it into two formulas. The first one returns the hiring status and the second one shows Active or Inactive

=IF(F2<>F1,INDEX(G2:G22,MATCH(MAX(IF(OFFSET(C1,1,0,COUNTIF(F:F,F2))<=DATE(2015,1,1),OFFSET(C1,1,0,COUNTIF(F:F,F2)))),OFFSET(C1,1,0,COUNTIF(F:F,F2)))),"")

=IF(ISNA(H2),"Inactive",IF(H2="","",IF(H2="T","Inactive","Active")))

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
klitton7Author Commented:
Looking good!.  I did find an issue when validating the results..  Looks like it has to do with the "R" - rehires?
I have attached a sample of two of the 22 that have returned the incorrect result.
H--AHT-Data.xls
Saqib Husain, SyedEngineerCommented:
This is an array formula. If you do not know how to enter an array formula then

Select the formula cell
press F2
press Shift-Ctrl-Enter
klitton7Author Commented:
Just what I needed and thanks for the additional instruction where I was lacking..  (array formula)
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.