Find value of matching columns

nehpets12

Active Member
Joined
Feb 22, 2002
Messages
453
What formula do I need in row 9 to find the value of matching items in column A

Example for cell "B9" 6 Apples @ £1.50 + 3 Orange @ £3.60 + 8 Pear @ £2.50 = £39.80

Book1 (2).xls
ABCDEFG
1DescriptionQtyQtyQtyDescriptionCost
2Apple616Apple1.50
3Orange325Pear2.50
4Bread234Orange3.60
5Pear843Dog4.00
6Ham452Cat23.00
7Cheese961Mouse5.50
8Tiger3.20
9Value
10ThisIsTheAnswerIWant39.8018.7034.50
Sheet1
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
What formula do I need in row 9 to find the value of matching items in column A

Example for cell "B9" 6 Apples @ £1.50 + 3 Orange @ £3.60 + 8 Pear @ £2.50 = £39.80

Book1 (2).xls
ABCDEFG
1DescriptionQtyQtyQtyDescriptionCost
2Apple616Apple1.50
3Orange325Pear2.50
4Bread234Orange3.60
5Pear843Dog4.00
6Ham452Cat23.00
7Cheese961Mouse5.50
8Tiger3.20
9Value
10ThisIsTheAnswerIWant39.8018.7034.50
Sheet1
B9, just enter and copy across:

=SUMPRODUCT(SUMIF($F$2:$F$8,$A$2:$A$7,$G$2:$G$8),B$2:B$7)
 
Upvote 0
That is exactly what I want. But is it possible to move the value into the the middle of the range of data without getting the referance error?



Book1 (2).xls
ABCDEFG
1DescriptionQtyQtyQtyDescriptionCost
2Apple616Apple1.50
3Orange325Pear2.50
4Bread234Orange3.60
5Value000Dog4.00
6Pear843Cat23.00
7Ham452Mouse5.50
8Cheese961Tiger3.20
9
10
11ThisIsTheAnswerIWant39.8018.7034.50
Sheet1


Have a look at my earlier post this shows what I am tring to achieve http://www.mrexcel.com/forum/showthread.php?t=538803
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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