Matching items in 2 columns and calculating %

Captain_Bluebear

New Member
Joined
Nov 18, 2015
Messages
14
Hi all,

I was wondering if anyone could assist me with a problem I am having with a formula.

I have “Main Table” with product in Cell A2:A9 and a number in B4:B9
I also have “Lookup Table” (cell range D2:E9). While some of the products appear in Lookup Table from the Main Table, not all of them do

What I am attempting to do is calculate the % from the item in “Lookup Table” if it appears in “Main Table”.

So

Main Table Lookup Table "Desired Result"
Apples 135 Apples 15 11.1%
Bananas 70 Cucumbers 10 33.3%
Cucumbers 30 Pears 7 46.7%
Pears 15 Strawberries 20 8.0%
Strawberries 250

I thought of VLOOKUP as well as MATCH INDEX, but the % calculation at the end is not making it easy for me.

Thanking you in advance.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Maybe something like this?
Excel Workbook
ABCDE
1ProductProductPercent
2Apples135Apples1511.11%
3Bananas70Cucumbers1033.33%
4Cucumbers30Pears746.67%
5Pears15Strawberries208.00%
6Strawberries250
7
Sheet
 
Upvote 0
Yes, excellent.

Thanks for that. I needed to include the IFERROR at the start as well which is what I wasn't doing.
Cheers AhoyNC
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

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