Easy Problem For Someone

corppunishment11

Board Regular
Joined
Dec 7, 2018
Messages
51
Am I able to write a formula to use text in one column to match that text in another column and return the amount in another column? The idea being that there would be multiple entries for the A2 data points.

Example:

A2 B2 C2
George Costanza NBC Affiliates 10,000
Jerry Seinfield NBC Networks 2,000
Ron Burgundy Universal Pictures 5,000
Ricky Bobby Wonder Bread 2,500

So, if A2 is Ricky Bobby and B2 is Wonder Bread then return 2,500
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
If you're looking for E1 (e.g., Ricky) and F1 (e.g., Wonder Bread), then G1 could be:
Code:
=SUMPRODUCT((E1=$A$1:$A$4)*(F1=$B$1:$B$4)*($C$1:$C$4))
 
Upvote 0
Alternatively, you might try something like this where the match is based on looking for A1 and B1:

XLOOKUP_info.xlsm
ABC
1Jerry SeinfeldHBO6500
2George CostanzaNBC Affiliates10000
3Jerry SeinfeldNBC Affiliates2000
4Ron BurgundyUniversal Pictures5000
5Ricky BobbyWonder Bread2500
6Jerry SeinfeldHBO6500
Sheet6
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT((A1=$A$2:$A$10)*(B1=$B$2:$B$10)*($C$2:$C$10))
 
Upvote 0
Great! Thank you!. I'll give some additional details.

I need any Jerry's that match HBO that are higher than a 4,000 in column c to kick out as the number 1.

Does that make sense?
 
Upvote 0
Maybe you mean this?

XLOOKUP_info.xlsm
ABC
1Jerry SeinfeldHBO6500
2George CostanzaNBC Affiliates10000
3Jerry SeinfeldNBC Affiliates2000
4Ron BurgundyUniversal Pictures5000
5Ricky BobbyWonder Bread2500
6Jerry SeinfeldHBO6500
7Jerry SeinfeldHBO2000
Sheet6
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT((A1=$A$2:$A$10)*(B1=$B$2:$B$10)*($C$2:$C$10)*($C$2:$C$10>4000))
 
Upvote 0
Hi. Thank you for this. I'm trying to see if this is doing what I need or if I can manipulate it to do so.

I will be sure to report back.
 
Upvote 0

Forum statistics

Threads
1,214,608
Messages
6,120,500
Members
448,968
Latest member
screechyboy79

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