count number of items in column 'D' where cell 'G' [in same row] is not blank

Happy new Year EE community

is there a formula to do this?

column 'D' contains text. i.e. Mon, Tues, Wed, etc

so, if D6=Mon and G6 is blank do not count

if D6=Mon and G6 is not blank count it

so, if D16=Wed and G16 is blank do not count

if D16=Wed and G16 is not blank count it

So what I want to end up with is a table that will show me

Mon = 10
Tues = 4
Wed = 9

etc

Obviously I can't use Countblank as I need to count items in two columns

Thanks
JagwarmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dhoffman_98Commented:
You can do an if statement that says IF column D has a value, and column G has a value then to place a 1 in a hidden column farther to the right in the spreadsheet, and then have a SUM statement where you want your total count to show up that counts the values in the hidden column.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JagwarmanAuthor Commented:
that works for me. Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.