Hello,
I am having a problem with counting specific binary strings (with the value of "1" in a specific position) and was hoping for some advice.
I am importing data into Excel and converting each point to binary (I think this is the best way).
An example: Event 1 has the value 001. Event 3 has the value 100. When they occur simultaneously, the value is 101.
I am looking for a way to count each time an event occurs, either solo or simultaneously with other events. So, in the above example, I want to count whenever Event 1 occurs (and the string appears ??1).
I was hoping to create an equation which counted whenever the third digit in the string equals 1. I was thinking of using an equation such as
Thanks.
I am having a problem with counting specific binary strings (with the value of "1" in a specific position) and was hoping for some advice.
I am importing data into Excel and converting each point to binary (I think this is the best way).
An example: Event 1 has the value 001. Event 3 has the value 100. When they occur simultaneously, the value is 101.
I am looking for a way to count each time an event occurs, either solo or simultaneously with other events. So, in the above example, I want to count whenever Event 1 occurs (and the string appears ??1).
I was hoping to create an equation which counted whenever the third digit in the string equals 1. I was thinking of using an equation such as
COUNTIF(Range,MID(Cell,3,1)=1)
or
COUNTIF(Cell,"??1")
However, neither of these work and I am unsure of how to proceed. Does anyone have any advice?or
COUNTIF(Cell,"??1")
Thanks.