Dear forum experts,
Need your help to get VBA code for getting unique count between two dates with multiple conditions. Please find the attached model excel sheet for your kind notice.
Requirement as follows: Steps wise calculation method has been given below:
Section-1
1. Firstly, we will enter / select the start and end date from column L1 and L2.
2. Secondly, Column E date to be filtered based on the date input in L1 and L2.
3. Thirdly, Column F date to be filtered until L2 date. (no need of from date here)
4. Highlight "D" column with yellow color and release all the filter.
Section-2 - In continuation of that, 5th steps in reverse order:
5. Column F date to be filtered based on the date input in L1 and L2
6. Column E date to be filtered before the from date only (before 01-04-20)
7. Highlight "D" column with yellow color and release all the filter.
8. Now, select column "D" and check highlighted row (Sec 1 & Sec 2) and get unique number based on Column D value. (Patient ID)
Bookmarks