IF and COUNT statement Issues

HAYFISH

New Member
Joined
Oct 19, 2017
Messages
2
Hello

I have trying to track fault occurrences of certain type of equipment and i need to count the times that a certain device has gone faulty based on the cell value.

If the device goes faulty once a day it is not a problem the issue i have is that when the device goes off twice a day.

I have used the formula =IF(COUNTA(E9:CC9)>0,COUNTA(E9:CC9),"") which works fine if the device goes faulty once a day but if the device goes faulty twice then the above formula only counts the cell value as 1 but i need to count 2 or 3 etc.

For Example
cell e9 i will have 03:34
cell e10 will have 05:28 / 18:33
So the count should be 3 but with the formula above it will only count 2 and i have no idea on best way to count this.

Anyone any ideas on how to resolve this issue; apart from making multiple date entries each with its own time.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If you'll always use "/" to show multiple faults, then you could try this:

Code:
=IF(COUNTA(E9:CC9)>0,SUM(IF(E9:CC9="",0,LEN(E9:CC9)-LEN(SUBSTITUTE(E9:CC9,"/",""))+1)),"")

Enter it as an array formula using Ctrl+Shift+Enter.

WBD
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top