Hi dear community,
I have a database where I can see the records of time spent in an area.
Each employee needs to request an authorization and not to exceed a maximum time of stay in a period of time in that area (for example each month 10 hr are added although this varies depending on the type of employee).
I have a sheet called PROCESS that does the automation of requests and authorizations; once authorized they go to another database ACCEPTED.
When there is a request in my PROCESS sheet I need to “import” the time that the employee has left, since it is a condition for authorization.
This is: Initial Hours/Horas initiales - Hours requested/Horas solicitadas = Hours remaining/Horas remanentes.
If it were a single person, this would look something like this:
The problem is when there are thousands of data; since in the next request I should take the “Remaining Hours” from the last record in my database ACCEPTED, I don't know how to pull this last record depending on the number of employee.
Please, help me… what formula should I use to take in the example information?
I tried with INDEX but when there is only one “# Nomina” record it works, but for other cases I get #NO MATCH.
This is the formula I used:
=INDEX({ACCEPTED Rank 1}, MATCH([# Nomina]@row, {ACCEPTED Rank Remaining Hours})).
Thanks for your help
Ana