Count basing on multiple matching criteria

Venkatesh1414

New Member
Joined
May 25, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hi,

I had a excel workbook .with 2 sheets.
Sheet1 consists of data as below:
From A4 to A6 vehicle info(Lorry, Minivan & Truck), B1 to B6 Fruit(Apple, Mango & Lemon) Info and C1 to C6(1/11/2023,1/11/2023 & 1/10/2023) dates
Sheet 2 is having the info from Sheet 1 like as below:
From A4 to A6 Fruit info, B1is having =TODAY() and C3 to E3 vehicle names.

Now i need the count of Particular Fruit in sheet2 in respective cells from C4 to E6 , basing on Matching criteria of Sheet1 dates with Sheet2 B1 cell and Sheet1 Vehicle info with Sheet 2 Vehicle Info . I am using the below formula but it's giving the correct data.
=COUNTIF(Sheet1!B:B,INDEX(Sheet1!B:B,MATCH(Sheet2!B1&Sheet2!C3&Sheet2!A4,(Sheet1!C:C&Sheet1!A:A&Sheet1!B:B),0)))


Kindy someone help me on this.

Best Regards,
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
How about
Excel Formula:
=COUNTIFS(Sheet1!$B:$B,$A4,Sheet1!$C:$C,$B$1,Sheet1!$A:$A,C$3)
 
Upvote 0
That suggests that you don't have anything that has a date of today that also matches the other criteria.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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