SumProduct

Emoncada

Active Member
Joined
Mar 23, 2005
Messages
409
I have a list of items going down column A.
Row 1 I have 6 different companies.
That's in sheet2, I want data from sheet one to be pulling into
the correct cell. Example
Looking a sheet1 column D is the Item, column G is the company.
I would like for it to fall into place and add the number in Column E
example

Sheet1

.....D.............E...........F............G
Printer...........4.........Yes..........HP
Monitor..........2.........No............CQ
Printer...........1.........Yes...........HP

Sheet2
...................B................C..............D

..................CQ..............HP...........HS
Hard Drive....0................0..............0
Printer..........0................5..............0
Monitor.........2................0..............0
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Given your example:-

=SUMPRODUCT(--($B2=Sheet1!$D$2:$D$4),--(C$1=Sheet1!$G$2:$G$4),Sheet1!$E$2:$E$4)
 
Upvote 0

Forum statistics

Threads
1,226,588
Messages
6,191,891
Members
453,686
Latest member
vlmiller845

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