Query & Countif Formula

yvettew78

New Member
Joined
Aug 23, 2020
Messages
34
Platform
  1. Windows
  2. Web
I need to report daily stats in google sheets and need help with the formula.

For example, In the data sheet, column A is the "DATE" column and column G is the "LEAD SOURCE" column. I want it to find "TODAY'S" date first (Column A), then count how many "FACEBOOK" leads we have received on that date (Column G).
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
=COUNTIFS(A:A,TODAY(),G:G,"Facebook")
Hi there - thanks for your help.

I have slightly changed it to:-

=COUNTIFS('Data'!A:A,TODAY(),'Data'!G:G,"Facebook"))

However it still doesn't populate the total "FACEBOOK" leads. It shows "0".

Any idea why?
 
Upvote 0
Try =A2=INT(A2) to test
A4 is the first cell that contains a date, so I changed it to A4, instead of A2 and it says Function INT parameter 1 expects number values. But '24.08.2020' is a text and cannot be coerced to a number.
 
Upvote 0

Forum statistics

Threads
1,223,637
Messages
6,173,488
Members
452,515
Latest member
archcalx

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