Hi,
I have fruit names in column B which have a related country of origin in column C.
Fruit names can be repeated (eg. have duplicates or more) and country of origin could be different (e.g Strawberries can have Spain but another time they can have UK as country of origin).
I would like to have a macro that adds data for each fruit name into relative cells in column D (see example below).
How would I do that?
Thanks!
N.
I have fruit names in column B which have a related country of origin in column C.
Fruit names can be repeated (eg. have duplicates or more) and country of origin could be different (e.g Strawberries can have Spain but another time they can have UK as country of origin).
I would like to have a macro that adds data for each fruit name into relative cells in column D (see example below).
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | ||||||||
2 | ||||||||
3 | Fruit Names | Contry of origin | Total Countries of origin | |||||
4 | strawberries | Spain | Spain UK | |||||
5 | apples | France | France Italy | |||||
6 | pears | Spain | Spain Italy | |||||
7 | figs | Turkey | Turkey Spain | |||||
8 | cherries | UK | UK Italy | |||||
9 | orange | Italy | Italy Spain | |||||
10 | plums | France | France UK | |||||
11 | grapes | Spain | Spain South Africa | |||||
12 | apples | Italy | France Italy | |||||
13 | pears | Italy | Spain Italy | |||||
14 | figs | Spain | Spain | |||||
15 | cherries | Italy | UK Italy | |||||
16 | orange | Spain | Italy Spain | |||||
17 | plums | UK | France UK | |||||
18 | grapes | South Africa | Spain South Africa | |||||
19 | strawberries | UK | Spain UK | |||||
20 | ||||||||
21 | ||||||||
22 | ||||||||
23 | ||||||||
Sheet1 |
How would I do that?
Thanks!
N.