Sorry I know is 101 but need 2 functions

Ludovico

Board Regular
Joined
Apr 3, 2002
Messages
71
1) Column B is names, Column C is status. Need formula to return number of incidences where "Smith" in B matches with "Customer" in C.

2) Column F is dates (but some cells will be blank). Need formula to return number of incidences where date in F will fall within current calendar year.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
1) =SUMPRODUCT(--(B:B="Smith"); --(C:C="Customer"))

2) =SUM(--(YEAR(F:F)=2011)) or
=SUM(--(YEAR(F:F)=YEAR(TODAY()))) insert with CTRL + SHIFT + ENTER both
 
Last edited:
Upvote 0
1) Column B is names, Column C is status. Need formula to return number of incidences where "Smith" in B matches with "Customer" in C.

2) Column F is dates (but some cells will be blank). Need formula to return number of incidences where date in F will fall within current calendar year.
Try these...

1) If you're using Excel 2007 or later:

=COUNTIFS(B2:B100,"Smith",C2:C100,"Customer")

For earlier versions:

=SUMPRODUCT(--(B2:B100="Smith"),--(C2:C100="Customer"))

2)

=SUMPRODUCT(--(YEAR(F2:F100)=YEAR(NOW())))
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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