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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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