Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2019, 09:20 AM
Logit Logit is offline Count the Number of Cells Containling Dates Windows 10 Count the Number of Cells Containling Dates Office 2007
Expert
 
Join Date: Jan 2017
Posts: 591
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default


CAUTION: This formula will count anything that is a number. If you column has more than dates and those entries are a number, this formula will count them as well.

=COUNTIF(A:A,">1/1/1900")
Reply With Quote
  #2  
Old 05-19-2019, 10:46 AM
xor xor is offline Count the Number of Cells Containling Dates Windows 10 Count the Number of Cells Containling Dates Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

In cell B1:

=(A1>=$C$1)*(A1<=$D$1)*(CELL("format";A1)="D1")

copied down to B10 and then =SUM(B1:B10)

where C1 is the earliest allowed date and D1 the latest allowed date.
Please note that the last "D1" is not a cell reference but a format code.
Reply With Quote
  #3  
Old 05-19-2019, 02:23 PM
skeezix skeezix is offline Count the Number of Cells Containling Dates Windows 10 Count the Number of Cells Containling Dates Office 97-2003
Competent Performer
Count the Number of Cells Containling Dates
 
Join Date: Jan 2019
Posts: 115
skeezix is on a distinguished road
Default

Quote:
Originally Posted by xor View Post
In cell B1:

=(A1>=$C$1)*(A1<=$D$1)*(CELL("format";A1)="D1")

copied down to B10 and then =SUM(B1:B10)
Thank you for your help. Unfortunately I don't understand much about formulas in Excel, and so I don't think that I can use yours. Please see the image below. The formula would go in one of the blank cells at the bottom of each column.
Attached Images
File Type: jpg Excel example.jpg (139.7 KB, 41 views)
Reply With Quote
  #4  
Old 05-19-2019, 02:14 PM
skeezix skeezix is offline Count the Number of Cells Containling Dates Windows 10 Count the Number of Cells Containling Dates Office 97-2003
Competent Performer
Count the Number of Cells Containling Dates
 
Join Date: Jan 2019
Posts: 115
skeezix is on a distinguished road
Default

Quote:
Originally Posted by Logit View Post
CAUTION: This formula will count anything that is a number. If you column has more than dates and those entries are a number, this formula will count them as well.

=COUNTIF(A:A,">1/1/1900")

Thank you for your help. That formula works except I forgot to say that row A has a word in it, and I have 17 rows. Could your formula somehow be changed to eliminate row A in the count? Please see the image in the next post.
Reply With Quote
  #5  
Old 05-20-2019, 03:17 AM
ArviLaanemets ArviLaanemets is offline Count the Number of Cells Containling Dates Windows 8 Count the Number of Cells Containling Dates Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by Logit View Post
=COUNTIF(A:A,">1/1/1900")
OP can as well use
Code:
COUNTIF(A:A,">0")
To get the formula to work for other columns it's enough to drag the formula right (right.clickinf on right lower corner of cell so that a cross is shown there, and then dragging ro right holding mouse tab down. And after that clearing the formula from abundant cells.

Didn't understand a thing about column A having a word in it? Do you mean column header? Or do dates in column A have some text before or after date? Or is in some cells a text instead of date?

And generally it is bad practice to have any summaries at bottom of data! You may have a situation where you must edit formulas whenever you add new row of data into table. Much better is have for any totals rows reserved at top of table. Additional bonus will be to use Freeze Panes feature to be Totals always displayed.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Count the Number of Cells Containling Dates count the number of text in a cell based off a different cells text Kubi Excel 4 08-24-2017 05:53 PM
Count the Number of Cells Containling Dates count a number of cells based on the beginning of a order number Kubi Excel 2 08-06-2017 08:54 PM
Distribute text in one cell across a range of cells (overcoming selection.range.cells.count bug) slaycock Word VBA 0 02-18-2017 07:00 AM
How to Count from Different Cells? Shahzad Excel 3 06-26-2010 01:06 AM
Count range cells eliminating merge cells danbenedek Excel 0 06-15-2010 12:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft