Contains Subarray

bradbarbin

New Member
Joined
Aug 8, 2018
Messages
2
I'm trying to figure out a formula to determine whether an occurrence contains a value with the data in this sort of format. In the example below, I'd like the formula to output TRUE if the occurence contains the number 2, and false if it doesn't. I've been trying SUMPRODUCT and INDEX with no luck:

OccurrenceDataResult (Occurrence contains 2)
Observation 11TRUE
Observation 12TRUE
Observation 23FALSE
Observation 24FALSE
Observation 25FALSE
Observation 26FALSE
Observation 34
FALSE
Observation 35
FALSE
Observation 36FALSE
Observation 37FALSE
Observation 38FALSE
Observation 42TRUE
Observation 4
9TRUE
Observation 5
2
TRUE
Observation 55TRUE
Observation 58TRUE

<tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi. Explain the rules again. Why does 'Observation 1' lead to TRUE? Doesnt contain 2 does it?
 
Upvote 0
Hi Steve the fish, thank you.

What I'm trying to do is develop a matrix for conditional probability. This helped, but I realized that I need it within an array due to the large number of occurences and data (in the real world).

Here is my simplified explanation. I have highlighted the part in the formula that is hardcoded, and needs replaced with a dyanmic array that returns the same results from above.

8p7u59Y.jpg
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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