AnilPullagura
Board Regular
- Joined
- Nov 19, 2010
- Messages
- 98
Hi Pros,
I have deduced a formula(kinda rough) to get my immediate request fullfilled. Now, I want to if there could be a better one to replace this not so perfect formula.
I feel there should be a good array formula to replace the below crude formula.
Thanks,
Anil
Excel is more than an Ocean. It's always a Learning
I have deduced a formula(kinda rough) to get my immediate request fullfilled. Now, I want to if there could be a better one to replace this not so perfect formula.
I feel there should be a good array formula to replace the below crude formula.
Code:
IF(COUNTIFS(Sheet1!$B$2:$B$65000,$B4,Sheet1!$D$2:$D$65000,"RHC",Sheet1!$E$2:$E$65000,"Completed")+
COUNTIFS(Sheet1!$B$2:$B$65000,$B4,Sheet1!$D$2:$D$65000,"Outpatient",Sheet1!$E$2:$E$65000,"Completed")=0,"",
COUNTIFS(Sheet1!$B$2:$B$65000,$B4,Sheet1!$D$2:$D$65000,"RHC",Sheet1!$E$2:$E$65000,"Completed")+
COUNTIFS(Sheet1!$B$2:$B$65000,$B4,Sheet1!$D$2:$D$65000,"Outpatient",Sheet1!$E$2:$E$65000,"Completed"))
Thanks,
Anil
Excel is more than an Ocean. It's always a Learning