Specific LookUp Value

IoanZ

Board Regular
Joined
Mar 2, 2018
Messages
51
Hello to everyone.
I have this situation (products / quantity / year)

In column "I" i want to put quantity for these products which corresponding with year 2018 (cell "M2")

Thansk's


ABBDEFGHIJKLMNO
ProductsQuantity [kg]Year00000000000000000
ProductsQnty [kg]000000000
Year2018
Apples 3002017Orange
Orange 6002017Grapes
Grapes 2502017Appels
Bananas 1802017Bananas
Apples 2002018
Orange 5502018
Grapes 2002018
Bananas 1502018



<tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

You can use SUMIFS:


Book1
ABCDEFGHIJKLM
1ProductsQuantity [kg]Year0000ProductsQnty [kg]00Year2018
2Apples3002017Orange550
3Orange6002017Grapes200
4Grapes2502017Apples200
5Bananas1802017Bananas150
6Apples2002018
7Orange5502018
8Grapes2002018
9Bananas1502018
Sheet164
Cell Formulas
RangeFormula
I2=SUMIFS(B$2:B$9,A$2:A$9,H2,C$2:C$9,M$1)


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,213,583
Messages
6,114,490
Members
448,575
Latest member
hycrow

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