Need HELP!!!

%3CLINGO-SUB%20id%3D%22lingo-sub-1389378%22%20slang%3D%22en-US%22%3ENeed%20HELP!!!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1389378%22%20slang%3D%22en-US%22%3E%3CDIV%3EHi%2C%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ESo%20I%20am%20looking%20to%20create%20a%20formula%20to%20help%20me%20see%20if%20a%20person%20I%20am%20looking%20at%20is%20in%20violation%20of%20a%20rule.%26nbsp%3B%20Below%20is%20the%20rule.%20I%20also%20need%20to%20make%20sure%20that%20it's%20not%20the%20same%20agency%20(agency%20should%20overlap%20with%20a%20different%20agency%20name).%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%22Interpreter%20services%20provided%20by%20the%20same%20interpreter%20to%20multiple%20members%20at%20the%20same%20location%20on%20the%20same%20date%20of%20service%20will%20be%20reimbursed%20as%20follows%3A%20A.%20The%20first%20appointment%20of%20the%20day%20will%20be%20reimbursed%20at%20the%20one-hour%20minimum%20or%20actual%20time%2C%20whichever%20is%20greater.%20B.%20Appointment(s)%20following%20the%20first%20appointment%20must%20have%20at%20least%201%20%C2%BD%20hours%20between%20the%20end%20of%20the%20last%20appointment%20and%20the%20start%20time%20of%20the%20next%20appointment%20to%20be%20reimbursed%20at%20the%20one-hour%20minimum%20or%20actual%20time%2C%20whichever%20is%20greater.%20Time%20between%20appointment(s)%20that%20is%20less%20than%201%201%2F2%20hours%20will%20be%20reimbursed%20for%20actual%20time.%22%3C%2FDIV%3E%3CDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20either%20break%20this%20up%20or%20make%20it%20better%20where%20I%20can%20understand%20it.%20I%20am%20having%20some%20errors%20with%20my%20work.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FDIV%3E%3CDIV%3EThank%20you%20for%20all%20of%20your%20help!%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20formula%3A%26nbsp%3B%3C%2FP%3E%3CP%3E1st%20appt%20rule%3A%26nbsp%3B%3DIF(AND(T3%26lt%3B6%2C(M3-L3)%26lt%3B4%2CQ3%26gt%3B%3D4)%2C%22YES%22%2C%22NO%22)%20or%26nbsp%3B%3DIF(AND(L3-M3%26lt%3B%26gt%3B%22%22%2CK3%3DK2%2CN3%3DN2%2CT3%26lt%3B6%2CQ3%26gt%3B%3D4)%2C%22YES%22%2C%22NO%22)%3C%2FP%3E%3CP%3ETime%20between%20appointments%20in%20units%3A%26nbsp%3B%3DIF(AND(K3%3DK2%2CN3%3DN2)%2C(L3-M2)*96%2C%22N%2FA%22)%26nbsp%3B%3C%2FP%3E%3CP%3E***NOTE***%3C%2FP%3E%3CP%3E1%20unit%3D15%20minutes%3C%2FP%3E%3CP%3ETime%20formats%20are%20in%2024HR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1389378%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395500%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20HELP!!!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395500%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F554992%22%20target%3D%22_blank%22%3E%40Kay_T1060%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Kay%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20not%20quite%20understand%20everything%20you%20are%20trying%20to%20do%20but%20as%20a%20first%20step%20I%20have%20inserted%20a%20couple%20of%20green%20columns%3B%20the%20first%20is%20to%20calculate%20to%20the%20difference%20between%202%20times%3B%20the%20second%20will%20be%20to%20take%20some%20action%20once%20time%20difference%20is%20greater%20than%201%3A30.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20clarify%20a%20bit%20further%20what%20you%20want%20to%20do%20next%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1399116%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20HELP!!!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1399116%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F667968%22%20target%3D%22_blank%22%3E%40peteryac60%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20help%20with%20that.%20The%20points%20I%20need%20to%20hit%20for%20the%20formula%20are%20to%20see%20if%20it%20has%20the%20same%20date%20of%20service%2C%20same%20place%20of%20service%2C%20and%20different%20agency%20name%2C%20then%20I%20need%20the%20formula%20to%20see%20if%20when%20the%20time%20between%20the%20previous%20appointment%20is%20below%2090%20minutes%20(6%20units%20Column%20T)%20but%20is%20also%20greater%20then%204%20units%20billed%20(Column%20Q)%2C%20if%20all%20of%20this%20is%20true%2C%20it%20will%20be%20a%20violation%20(Yes).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20appointment%20times%20are%20in%2024hr%20format%2C%20which%20is%20recommended%20due%20to%20how%20it's%20billed.%20I%20am%20thinking%20of%20changing%20it%20back%20to%2012hr%20and%20doing%20the%20formula%20that%20way%20as%20well%20calculating%20the%20hour%20and%20minute%20of%20time.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20this%20help%3F%20Thank%20you%20for%20your%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1399445%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20HELP!!!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1399445%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F554992%22%20target%3D%22_blank%22%3E%40Kay_T1060%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Kay%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20attached%20-%20green%20columns.%3C%2FP%3E%3CP%3EIn%20the%20first%20green%20columns%20I%20have%20just%20subtracted%20the%20end%20time%20from%20the%20start%20time%20of%20next%20session.%20In%20two%20cases%20(highlighted%20in%20yellow)%20there%20is%20an%20error%20because%20the%20end%20time%20is%20BEFORE%20the%20start%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20rest%20of%20the%20cases%20there%20are%20only%20one%20case%20where%20the%20time%20is%20greater%20than%2090%20minutes.%20In%20the%20second%20green%20column%20I%20check%20if%20the%20time%20is%20%26gt%3B%2090%20and%20if%20the%20value%20in%20column%20Q%20is%20%26gt%3B%204%20-%20I%20think%20that%20is%20the%20requirement%20you%20had%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20is%20possible%20to%20do%20this%20all%20in%20one%20formula%20but%20it%20makes%20it%20difficult%20to%20follow%20so%20I%20have%20split%20it%20over%202%20columns.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20this%20is%20the%20solution%20you%20are%20looking%20forward%20I'd%20be%20grateful%20if%20you%20could%20mark%20this%20as%20complete.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor
Hi, 
 
So I am looking to create a formula to help me see if a person I am looking at is in violation of a rule.  Below is the rule. I also need to make sure that it's not the same agency (agency should overlap with a different agency name).
 
"Interpreter services provided by the same interpreter to multiple members at the same location on the same date of service will be reimbursed as follows: A. The first appointment of the day will be reimbursed at the one-hour minimum or actual time, whichever is greater. B. Appointment(s) following the first appointment must have at least 1 ½ hours between the end of the last appointment and the start time of the next appointment to be reimbursed at the one-hour minimum or actual time, whichever is greater. Time between appointment(s) that is less than 1 1/2 hours will be reimbursed for actual time."

 

Is there any way to either break this up or make it better where I can understand it. I am having some errors with my work. 

Thank you for all of your help!

 

Here is the formula: 

1st appt rule: =IF(AND(T3<6,(M3-L3)<4,Q3>=4),"YES","NO") or =IF(AND(L3-M3<>"",K3=K2,N3=N2,T3<6,Q3>=4),"YES","NO")

Time between appointments in units: =IF(AND(K3=K2,N3=N2),(L3-M2)*96,"N/A") 

***NOTE***

1 unit=15 minutes

Time formats are in 24HR

3 Replies
Highlighted

@Kay_T1060 

Hi Kay,

 

I do not quite understand everything you are trying to do but as a first step I have inserted a couple of green columns; the first is to calculate to the difference between 2 times; the second will be to take some action once time difference is greater than 1:30.

 

Can you clarify a bit further what you want to do next?

 

thanks,

 

Peter

 

Highlighted

@peteryac60 

 

Hi, 

Thank you for your help with that. The points I need to hit for the formula are to see if it has the same date of service, same place of service, and different agency name, then I need the formula to see if when the time between the previous appointment is below 90 minutes (6 units Column T) but is also greater then 4 units billed (Column Q), if all of this is true, it will be a violation (Yes). 

 

The appointment times are in 24hr format, which is recommended due to how it's billed. I am thinking of changing it back to 12hr and doing the formula that way as well calculating the hour and minute of time. 

 

Did this help? Thank you for your help. 

Highlighted

@Kay_T1060 

 

Hi Kay,

 

See attached - green columns.

In the first green columns I have just subtracted the end time from the start time of next session. In two cases (highlighted in yellow) there is an error because the end time is BEFORE the start time.

 

In the rest of the cases there are only one case where the time is greater than 90 minutes. In the second green column I check if the time is > 90 and if the value in column Q is > 4 - I think that is the requirement you had?

 

it is possible to do this all in one formula but it makes it difficult to follow so I have split it over 2 columns.

 

If this is the solution you are looking forward I'd be grateful if you could mark this as complete.

 

thanks,

 

Peter