Range of Days

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am looking for a formula to search the range AC3:AC502 and

count the rows that are between 1 and 7
count the rows that are between 8 and 31
count the rows over 7

Any help appreaciated
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
The COUNTIFS would work just fine but that requires you'd use double quotations around the "greater than or equal" symbols so I'd prefer something like

=SUMPRODUCT(--($AC$3:$AC$502>=1);--($AC$3:$AC$502<8))

With some minor adjustments the same formula can be used for the other two as well.

The formula above counts the number of values found in the rows but if it's the actual row numbers you're interested in just wrap the ranges in ROW()-function. ;)
 
Upvote 0
How about
=SUMIFS(AC3:AC502,">=1",AC3AC502,"<=7")
 
Upvote 0
Hi Misca & Fluff,

Sorry but both formuals "contains an error"

Sorry for late reply!
 
Upvote 0
Not quite sure why used Sumif, it should be
=COUNTIFS(AC3:AC502,">=1",AC3:AC502,"<=7")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,241
Messages
6,123,823
Members
449,127
Latest member
Cyko

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