rjgtavares

New Member
Joined
Jun 17, 2019
Messages
9
Good morning, I'm using the following formula:
= DATA! $ BL $ 2: $ BL $ 995, "Alex", DATA! $ E $ 2: $ E $ 995, "MTM50)
which is working perfectly, but I need to add a date criterion, which only counts the cells that are common to: "JULY", "ALEX" and MTM50 (machine).

in other words, I want excel to count the cells that exist with the "July" date and with the name "Alex" and the machine MTM50. You must understand the 3 requirements.

If you can help me i would apreciate.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

assuming you're having a date column on sheet DATA in column A!

Thry this:

=SUMPRODUCT((DATA! $ BL $ 2: $ BL $ 995="Alex")*(DATA! $ E $ 2: $ E $ 995="MTM50")*(MONTH(DATA! $ A $ 2: $ A $ 995=7))
 
Upvote 0
Hello!

Did you try CountIfs Formula?, you can use text function to extract the month of the date if needed.
 
Upvote 0
Hi,

assuming you're having a date column on sheet DATA in column A!

Thry this:

=SUMPRODUCT((DATA! $ BL $ 2: $ BL $ 995="Alex")*(DATA! $ E $ 2: $ E $ 995="MTM50")*(MONTH(DATA! $ A $ 2: $ A $ 995=7))


the date has this format: "16-07-2019 15:41:23"

I did thatbut it still appliesto every months and doesn’t specify to July, can it be the Date configurations?The date is being imported from VBA, and is with the NOW formula.



 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,556
Members
449,735
Latest member
Gary_M

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