Forum Discussion
ConcreteKid
May 09, 2024Copper Contributor
Only including cells containing certain words / numbers in formula?
I have a new job as a sepsis specialist nurse. At the end of the month, using all the data inputted throughout the month, I have to work out how many high risk patients received IV antibiotics withi...
HansVogelaar
May 09, 2024MVP
Create this formula:
=COUNTIFS(I2:I1000, "HIGH", Q2:Q1000, "<="&TIME(1, 0, 0))/COUNTIFS(I2:I1000, "HIGH")
If your data extend below row 1000, adjust the ranges accordingly.
Format the cell with the formula as a percentage.
- ConcreteKidMay 09, 2024Copper ContributorThis is great, thank you, works perfectly!
- ConcreteKidMay 09, 2024Copper ContributorIf I needed to work out the percentage under 90 minutes, what would I change in the formula?
- HansVogelaarMay 09, 2024MVP
90 minutes is 1 hour and 30 minutes, so change TIME(1, 0, 0) to TIME(1, 30, 0)