Formula to Retrieve Value base on specific text.

Kingkoopa

Board Regular
Joined
Aug 7, 2014
Messages
94
Hi Guys,

I am using Excel 2016. Its been awhile since I posted would appreciate some help on the following problem. :(

I have the following list :

FruitPrice
Apple5.00
Watermelon6.00
Mango4.50

<tbody>
</tbody>

FruitPrice
Watermelone 5KG
Banana 300G
Red Apple 300G
Mango 2.50KG
Green Apple 200G
Mango 10KG
Watermelone 500G
Pear 5KG

<tbody>
</tbody>


Would like to get the following result :

FruitPrice
Watermelone 5KG 6.00
Banana 300G#N/A
Red Apple 300G 5.00
Mango 2.50KG 4.50
Green Apple 200G 5.00
Mango 10KG 4.50
Watermelone 500G 6.00
Pear 5KG#N/A

<tbody>
</tbody>


Basically if the text is found in the table it would list the corresponding price. Been messing around with a lot of lookup, search, countif combination of formula's. But can't seem to figure out a way to get the price :(.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about


Book1
ABCDEF
1FruitPriceFruitPrice
2Apple5Watermelone 5KG6
3Watermelon6Banana 300G0
4Mango4.5Red Apple 300G5
5Mango 2.50KG4.5
6Green Apple 200G5
7Mango 10KG4.5
8Watermelone 500G6
9Pear 5KG0
Test
Cell Formulas
RangeFormula
F2=SUMPRODUCT((ISNUMBER(SEARCH($A$2:$A$4,E2)))*($B$2:$B$4))
 
Last edited:
Upvote 0
Or............

In F2, copied down :

=LOOKUP(1,-FIND($A$2:$A$4,E2),$B$2:$B$4)

Regards
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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