Moreover, with a small sleight of thinking out of the box, we can even scale up to 13 balls! ðŸ™‚

]]>A1 B1 C1

fruit and veg fruit and veg Value

Carrot Broad bean 20

Butternut Squash Asparagus 5

Brussels sprout Grape 90

Broccoli Fig 60

Broad bean Broccoli 150

Black-eye bean Banana 450

Beetroot

Banana

Avocado

Aubergine

Asparagus

Apricot

Apple

Cherry

Clementine

Courgette

Date

Elderberry

Endive

Fennel

Fig

Garlic

Grape

I want formula to get result as follow:

fruit and veg Value

Carrot

Butternut Squash

Brussels sprout

Broccoli 150

Broad bean 20

Black-eye bean

Beetroot

Banana 450

Avocado

Aubergine

Asparagus 5

Apricot

Apple

Cherry

Clementine

Courgette

Date

Elderberry

Endive

Fennel

Fig 60

Garlic

Grape 90

Hisham, there are a couple of issues with your response, but an important aspect is that you don’t know if the unique ball is heavier or lighter. There are a couple of methods to solving this, but it is a bit more complex.

Sumudu’s approach below is a good one and the best for mine.

]]>3 balls on each side of the scale. if they are even..throw them away.

now you have 6 remaining balls.

same move again, the heavier side of the scale has the heavy ball and you are left with 1 more try on the scale.

1 ball on each side, if they even out, the 1 left out is the heavy 1 ðŸ˜‰

]]>Hi Margaret,

This is a common request whereby you want to match multiple criteria. The three general methods I employ to do this us:

- INDEX & MATCH using Array Formulas
- SUMPRODUCT
- SUMIFS

Given the blog post is based on INDEX & MATCH, the formula I’ve used is as follows:

`=INDEX(`

After typing this formula you need to press Ctrl + Shift as it is an Array Formula (i.e. it references/joins multiple ranges). You’ll note the formula will display in between { and } brackets to indicate as much.

I include the “::” string in between as a delimeter between the fields we are querying. In essence, the string we are matching is a concatenation of the **Product** and the **Store**.

So introducing a string in between, the query string becomes `1-234::1`

for `Product = 1-234`

and `Store = 1`

. If it is not there, it is difficult for us to tell the difference between `Product = 1-234`

and `Store = 1`

and `Product = 1-23`

from `Store = 41`

, for example.

I’ve included a solution to your request using all three methods here: Multiple Criteria Lookup for Margaret (RK 2014-03-04).xls

Hope this helps.

]]>I would like to match a set of values (product codes in table 1) to another set of values (in several tables as shown in table 2, 3) to see if they match. If yes, then return a value. I appreciate your suggestion. Thank you.

For example,

Table 1.

Store Product Return

1 1-234 2

1 2-345 2

1 3-456 2

2 1-234 3

2 4-567 3

2 6-789 3

Table 2.

Return Product

2 1-234

2 2-345

2 3-456

Table 3.

Return Product

3 1-234

3 4-567

3 6-789