Vlookup and sum help

Gohar Shahab

Active Member
Joined
May 17, 2006
Messages
339
I am using this formula to match values but at the same time i want to sum all the values matched in the formula..

=VLOOKUP(A11,$A$1:$D$7,MATCH($B$9,$A$1:$D$1,0),0)

The above formula picks up first value but there are other values for same matched value that i want to add with this.

please assist..

Code 31/01/2011 28/02/2011 31/03/2011
Micl 1
Pirt 2
Micl 1
Pirt 2
Micl 1
Pirt 2

I want to add all matching values for "Micl"
31/01/2011
Micl 1 =VLOOKUP(A11,$A$1:$D$7,MATCH($B$9,$A$1:$D$1,0),0)
Pirt 2
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

truskawa

New Member
Joined
Jan 27, 2011
Messages
27
Hi, unfortunatelly vlookup picks only first value. I don't know how complicated your problem is but what I would try would be:
1. Pivot table
2. SUMIF function
3. writing own fuction in VBA if above do not help
 

Gohar Shahab

Active Member
Joined
May 17, 2006
Messages
339
Hi, unfortunatelly vlookup picks only first value. I don't know how complicated your problem is but what I would try would be:
1. Pivot table
2. SUMIF function
3. writing own fuction in VBA if above do not help

Yes, it picks up but i have reports which work on date value on the column and sum of all the values matching criteria..

any other solution.
thanks
 

Forum statistics

Threads
1,143,676
Messages
5,720,242
Members
422,272
Latest member
ginkgoVil

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
Top