I need a formula that looks up unique values on a separate sheet based on two value on another sheet. For example:
Sheet1:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Domain[/TD]
[TD]xyz.com[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Search term[/TD]
[TD]hello[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]xyz.com[/TD]
[TD]hello[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]xyz.com[/TD]
[TD]hello[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]abc.com[/TD]
[TD]hello[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]xyz.com[/TD]
[TD]goodbye[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]abc.com[/TD]
[TD]goodbye[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]def.com[/TD]
[TD]hello[/TD]
[/TR]
</tbody>[/TABLE]
So in the above example cell C2 in sheet1 would contain the formula and return the number of values matching B2 on sheet2 column B where B1 on sheet1 matches in column A on sheet2.
Sheet1:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Domain[/TD]
[TD]xyz.com[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Search term[/TD]
[TD]hello[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]xyz.com[/TD]
[TD]hello[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]xyz.com[/TD]
[TD]hello[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]abc.com[/TD]
[TD]hello[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]xyz.com[/TD]
[TD]goodbye[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]abc.com[/TD]
[TD]goodbye[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]def.com[/TD]
[TD]hello[/TD]
[/TR]
</tbody>[/TABLE]
So in the above example cell C2 in sheet1 would contain the formula and return the number of values matching B2 on sheet2 column B where B1 on sheet1 matches in column A on sheet2.