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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

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