simple vlookup

blademaster

New Member
Joined
Nov 14, 2014
Messages
5
A B C D

[TABLE="width: 343"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][TABLE="width: 343"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Issue Date[/TD]
[TD] Advertisement[/TD]
[TD]CMs[/TD]
[TD]Type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
3 Feb 12 C
3 Feb 6 C
3 Feb 1 D

Hi
Iam trying to figure out how to create a sumif that would calculate the sum of column C but it must only calculate those for a specific issue date (column A) and specific type, whether C or D in column D

I would be grateful for any help
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Yes I understand that but I cannot get it working. Been varying =sumif(vlookup ... for example but cannot get it to total
 
Upvote 0
Why are you trying to use VLOOKUP at all?

Your formula should look something like (for the example you provided):
=
Code:
SUMIFS(C2:C4,A2:A4,DATE(2018,2,3),D2:D4,"C")
 
Upvote 0
WOW!

There are so many ways of achieving the answer, I was working on something like this =SUMIF(A$2:$A$500, H5, C$2:C$500) however your way has worked perfectly.

Thank you very much indeed
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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