Calculating from two tables where only unique record match

cqcqcq

New Member
Joined
Feb 1, 2017
Messages
12
I'm struggling on how to do this. I have list of search engine keywords, thousands of them with amount of searches. In another table I have search phrases that led to sales. Those two tables are not connected in any way from their source.

So my question is, how can I look up the unique phrase from one table, see if it exists in the other, then calculate based on only matching records?
Below, and I hope it keeps its formatting, is a simple example. List 2 has searches, and only two of them match what is in list one. Therefore, those two get calculated for a conversion number.

I have the Fuzzy Match plugin, but I feel there's a better way to do this without using that.


List 1SoldList 2Searchesconversion
Apples10Pineapples1000
Oranges15Bananas1503.33%
Pears20Apples1258.00%
Bananas5Lemons2000

<tbody>
</tbody>
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi there, this should do the trick:

Assuming your data start in column A1, put this formula in E2 (the conversion percentage for the Pineapples line):

=IF(ISNA(VLOOKUP(C2,A:A,1,FALSE)),0,VLOOKUP(C2,A:B,2,FALSE)/D2)

then copy down. Set the cell format to percentage.

To explain, the first part sees if there is a match and returns 0 if not. If there is a match, the second vlookup returns the sold value and calculates the percentage from that.

Hope this helps.

John
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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