Could multiple criteria based on year from another column

bobbych

New Member
Joined
May 22, 2008
Messages
36
Hi all

I need a formula that will count how many 16 SL and 20 SE cars were sold in 2016. just 1 figure adding the 2 cars together. Thanks in advance

[TABLE="width: 100"]
<tbody>[TR]
[TD][TABLE="width: 300"]
<tbody>[TR]
[TD="width: 98"]Typr of Car[/TD]
[TD="width: 70"]date sold[/TD]
[/TR]
[TR]
[TD]20 LX[/TD]
[TD="align: right"]01-Nov-15[/TD]
[/TR]
[TR]
[TD]16 SL[/TD]
[TD="align: right"]01-Dec-15[/TD]
[/TR]
[TR]
[TD]18 SE[/TD]
[TD="align: right"]01-Jan-16[/TD]
[/TR]
[TR]
[TD]20 SE[/TD]
[TD="align: right"]01-Feb-16[/TD]
[/TR]
[TR]
[TD]18 LX[/TD]
[TD="align: right"]01-Mar-16[/TD]
[/TR]
[TR]
[TD]20 LX[/TD]
[TD="align: right"]01-Apr-16[/TD]
[/TR]
[TR]
[TD]16 SL[/TD]
[TD="align: right"]01-May-16[/TD]
[/TR]
[TR]
[TD]18 SE[/TD]
[TD="align: right"]01-Jun-16[/TD]
[/TR]
[TR]
[TD]20 SE[/TD]
[TD="align: right"]01-Jul-16[/TD]
[/TR]
[TR]
[TD]18 LX[/TD]
[TD="align: right"]01-Aug-16[/TD]
[/TR]
[TR]
[TD]20 SE[/TD]
[TD="align: right"]01-Sep-16[/TD]
[/TR]
[TR]
[TD]18 LX[/TD]
[TD="align: right"]01-Oct-16[/TD]
[/TR]
[TR]
[TD]20 LX[/TD]
[TD="align: right"]01-Nov-16[/TD]
[/TR]
[TR]
[TD]16 SL[/TD]
[TD="align: right"]01-Dec-16[/TD]
[/TR]
[TR]
[TD]18 SE[/TD]
[TD="align: right"]01-Jan-17[/TD]
[/TR]
[TR]
[TD]16 SL[/TD]
[TD="align: right"]01-Feb-17[/TD]
[/TR]
[TR]
[TD]18 SE[/TD]
[TD="align: right"]01-Mar-17[/TD]
[/TR]
[TR]
[TD]20 SE[/TD]
[TD="align: right"]01-Apr-17[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I'm sure there is a better way to do this, but I was able to come up with:


Excel 2013/2016
ABCD
1Typr of Cardate soldResult
220 LX1-Nov-155
316 SL1-Dec-15
418 SE1-Jan-16
520 SE1-Feb-16
618 LX1-Mar-16
720 LX1-Apr-16
816 SL1-May-16
918 SE1-Jun-16
1020 SE1-Jul-16
1118 LX1-Aug-16
1220 SE1-Sep-16
1318 LX1-Oct-16
1420 LX1-Nov-16
1516 SL1-Dec-16
1618 SE1-Jan-17
1716 SL1-Feb-17
1818 SE1-Mar-17
1920 SE1-Apr-17
Sheet2
Cell Formulas
RangeFormula
D2{=SUM(IF(A2:A19="16 SL",1,IF(A2:A19="20 SE",1,0))*IF(YEAR(B2:B19)=2016,1,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
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