Formula for showing the age range when dates are given

Miguelluis

New Member
Joined
Jan 29, 2013
Messages
45
Hi,

I'm trying to create a simple table that counts dates that fall into a specific age range:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]0-10 days old[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]10-20 days old[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]Over 20 days old[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]

The easiest way would be to add a column to where the dates are and insert the networkdays formula but I need to avoid and add columns to my core data. The column I'll be counting only contains dates.

Is there a way to do this?

Thank you
Miguel
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Excel 2010
ABC
11/5/2018
22/7/2018
32/13/2018
43/14/2018
53/30/2018
64/2/2018
7
8
9
100102
1111201
12213
Sheet5
Cell Formulas
RangeFormula
C10=SUMPRODUCT(--(NETWORKDAYS($A$1:$A$6+0,TODAY())<=B10),--(NETWORKDAYS($A$1:$A$6+0,TODAY())>A10))
C11=SUMPRODUCT(--(NETWORKDAYS($A$1:$A$6+0,TODAY())<=B11),--(NETWORKDAYS($A$1:$A$6+0,TODAY())>A11))
C12=SUMPRODUCT(--(NETWORKDAYS($A$1:$A$6+0,TODAY())>=B12))
 
Upvote 0
Ah, I overlooked the part of Networkdays.
That may necessitate the use of SUMPRODUCT instead of COUNTIFS, like Scott showed.
 
Upvote 0
Thank you both, Scott's formulas work almost perfectly, however the over 20 days counts all the blanks too, is there a way to ignore blanks but use these formulas?
 
Upvote 0
Add a is not blank condition.
Code:
=SUMPRODUCT(--(NETWORKDAYS($A$1:$A$7+0,TODAY())>=B12),--($A$1:$A$7<>""))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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