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

Typr of Cardate sold
20 LX01-Nov-15
16 SL01-Dec-15
18 SE01-Jan-16
20 SE01-Feb-16
18 LX01-Mar-16
20 LX01-Apr-16
16 SL01-May-16
18 SE01-Jun-16
20 SE01-Jul-16
18 LX01-Aug-16
20 SE01-Sep-16
18 LX01-Oct-16
20 LX01-Nov-16
16 SL01-Dec-16
18 SE01-Jan-17
16 SL01-Feb-17
18 SE01-Mar-17
20 SE01-Apr-17

<tbody>
</tbody>

<tbody>
</tbody>
 
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,215,681
Messages
6,126,194
Members
449,298
Latest member
Jest

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