Index Match Wiildcard Partial Match

moscott75

New Member
Joined
Jan 17, 2008
Messages
25
I am trying to use a formula similar to match index that will allow me to index based like/similar words in cell. I want the result in Table 2. Table 2 does contain the exact words in Table 1, fruit column I am unable to use index to bring over the totals to Table 2

Table 1
Table 2
Fruit
Total
Color
TOTAL
Apples
12Apples are red 12
Oranges15Banana are yellow7
Watermelon 25Brown pear29
Banana 7Oranges are round15
Pear29Watermelon are green25

<colgroup><col><col span="3"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I am trying to use a formula similar to match index that will allow me to index based like/similar words in cell. I want the result in Table 2. Table 2 does contain the exact words in Table 1, fruit column I am unable to use index to bring over the totals to Table 2

Table 1
Table 2
Fruit
Total
Color
TOTAL
Apples12Apples are red12
Oranges15Banana are yellow7
Watermelon25Brown pear29
Banana7Oranges are round15
Pear29Watermelon are green25

<tbody>
</tbody>

Code:
using index+match
=INDEX($J$7:$J$9,MATCH("APPLES*",$I$7:$I$9,0))
=INDEX($J$7:$J$9,MATCH("BANANA*",$I$7:$I$9,0))
=INDEX($J$7:$J$9,MATCH("ORANGE*",$I$7:$I$9,0))

using vlookup

=VLOOKUP("Apples*",$I$14:$J$16,2,FALSE)
=VLOOKUP("BANANA*",$I$14:$J$16,2,FALSE)
=VLOOKUP("ORANGE*",$I$14:$J$16,2,FALSE)

modify as required.
 
Upvote 0
Maybe this...


A
B
C
D
E
1
Fruit​
Total​
Color​
TOTAL​
2
Apples​
12​
Apples are red​
12​
3
Oranges​
15​
Banana are yellow​
7​
4
Watermelon​
25​
Brown pear​
29​
5
Banana​
7​
Oranges are round​
15​
6
Pear​
29​
Watermelon are green​
25​

Formula in E2 copied down
=SUMPRODUCT(--ISNUMBER(SEARCH($A$2:$A$6,D2)),$B$2:$B$6)

M.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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