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).
 
Text, ok. Try

=COUNTIFS( 'Data'! A:A,TEXT(TODAY(),"DD.MM.YYYY"), 'Data'! G:G,"Facebook")
Yay that works - thanks so much.
just one more question, what if the date is merged, rather than noted on each row? For example, I have 5 new rows but I only show the date in the first row and merge them or do I have to enter a date in each row for it to work?
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Would need to be in each, VBA might be an option without but i'm not sure how that works with Google Sheets.
 
Upvote 0
Since they aren't really dates, you should be able to use:

=COUNTIFS( 'Data'! A:A,"01.09.2020", 'Data'! G:G,"Facebook")
 
Upvote 0

Forum statistics

Threads
1,223,636
Messages
6,173,485
Members
452,516
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