jotheghostman
New Member
- Joined
- Jul 15, 2017
- Messages
- 2
Hi
Would anyone please help me compose formulas for these cases:
<o></o>
1. I have a database of medical history ofpatients including dates of their visit to hospital. I need to use pivot on itand group them on a monthly basis. However, not necessary calendar months as Januaryto December. Instead, I need to start with a certain contract period, forexample, August 20, 2016 as beginning of their visit.<o></o>
<o> </o>
If patient visited the hospital from August20, 2016 to September 19, 2016, then formula result should be “1stMonth”, if visit was September 20, 2016 to October 19, 2016, then it should be “2ndmonth”. <o></o>
<o> </o>
Is it possible that YEAR is not adeterminant? The basis would just be the MONTH and DATE, because my databasestarts from 2014 to date. I would just want “1st Month” to “12thMonth” result regardless of year.<o></o>
<o> </o>
2. Also, I have another database of list ofpatients and their families with PATIENT NAME (Column A), AGE (Column B),RELATION (Column C). RELATION states if patients is PRINCIPAL PATIENT, PARENT,SIBLING, SPOUSE, CHILD. <o></o>
I need a conditional formula forRELATION and AGE. Say, if RELATION states PRINCIPAL PATIENT, and AGE is 0 to 65yearsand 6 months, then formula result is “QUALIFIED”. If PARENT or SPOUSE and ageis 0 to 65 years and 6 months, then result is “QUALIFIED”. If SIBLING or CHILDand age is 0 to 18 years and 6 months, then result is “QUALIFIED”. Otherwise, “INELIGIBLE”<o></o>
I have been trying to compose and search in Google, butIve given up. Please help me on the above.<o></o>
This would truly change my work life.<o></o>
Thank you.<o></o>
Would anyone please help me compose formulas for these cases:
<o></o>
1. I have a database of medical history ofpatients including dates of their visit to hospital. I need to use pivot on itand group them on a monthly basis. However, not necessary calendar months as Januaryto December. Instead, I need to start with a certain contract period, forexample, August 20, 2016 as beginning of their visit.<o></o>
<o> </o>
If patient visited the hospital from August20, 2016 to September 19, 2016, then formula result should be “1stMonth”, if visit was September 20, 2016 to October 19, 2016, then it should be “2ndmonth”. <o></o>
<o> </o>
Is it possible that YEAR is not adeterminant? The basis would just be the MONTH and DATE, because my databasestarts from 2014 to date. I would just want “1st Month” to “12thMonth” result regardless of year.<o></o>
<o> </o>
2. Also, I have another database of list ofpatients and their families with PATIENT NAME (Column A), AGE (Column B),RELATION (Column C). RELATION states if patients is PRINCIPAL PATIENT, PARENT,SIBLING, SPOUSE, CHILD. <o></o>
I need a conditional formula forRELATION and AGE. Say, if RELATION states PRINCIPAL PATIENT, and AGE is 0 to 65yearsand 6 months, then formula result is “QUALIFIED”. If PARENT or SPOUSE and ageis 0 to 65 years and 6 months, then result is “QUALIFIED”. If SIBLING or CHILDand age is 0 to 18 years and 6 months, then result is “QUALIFIED”. Otherwise, “INELIGIBLE”<o></o>
I have been trying to compose and search in Google, butIve given up. Please help me on the above.<o></o>
This would truly change my work life.<o></o>
Thank you.<o></o>