NewbieExcel123
New Member
- Joined
- Jul 30, 2024
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
Hi all,
I have a formula I found on here (thanks for the help), but I need to add another criteria for it to search for.
It searches for how many times the word 'Pass' appears more than 5 times in a row until a 'Fail' is found, and then it tells me the total times that occurs.
Currently the formula is:
=SUM(--(FREQUENCY(IF(O5:O99="Pass",ROW(O5:O99)),IF(O5:O99="Fail",ROW(O5:O99)))>=5))
But I want to add the option for have one formula also search for EO and another formula search for AO.
Essentially I need to add into the above formula:
$N$5:$N$100,"=AO", $O$5:$O$100,"=Pass
or
$N$5:$N$100,"=EO", $O$5:$O$100,"=Pass
I am unable to upload files unfortunately.
Thank you
I have a formula I found on here (thanks for the help), but I need to add another criteria for it to search for.
It searches for how many times the word 'Pass' appears more than 5 times in a row until a 'Fail' is found, and then it tells me the total times that occurs.
Column N | Column O |
AO | Pass |
AO | Pass |
AO | Pass |
EO | Pass |
EO | Fail |
EO | Pass |
EO | Pass |
EO | Pass |
AO | Pass |
AO | Pass |
Currently the formula is:
=SUM(--(FREQUENCY(IF(O5:O99="Pass",ROW(O5:O99)),IF(O5:O99="Fail",ROW(O5:O99)))>=5))
But I want to add the option for have one formula also search for EO and another formula search for AO.
Essentially I need to add into the above formula:
$N$5:$N$100,"=AO", $O$5:$O$100,"=Pass
or
$N$5:$N$100,"=EO", $O$5:$O$100,"=Pass
I am unable to upload files unfortunately.
Thank you