COUNT Cells

mypig7

Active Member
Joined
Sep 27, 2004
Messages
285
I have 2 columns on Sheet 2

In column 1 it says Mon all the way down to A10
Then Tues for a few more cells below, then Weds for a few cells and so on.
The list is sorted in order

To the right in Column B some cells have numbers in them and some are blank
On Sheet 1 I want a summary, so it would say:

"Mon" in one cell
And to the right of Mon a count of how many cells next to Mon in Column B (Sheet 2) that have something in them.

How do I do it?

Tried a combination of AND, COUNTIF...
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
9,543
Try:

=COUNTIFS(Sheet2!A:A,"Mon",Sheet2!B:B,">0")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,095,215
Messages
5,443,131
Members
405,216
Latest member
joshuapaul

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top