Count Between

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
129
Office Version
  1. 2016
Platform
  1. Windows
I'm soooo close. I have items that have been in work for "X" number of days from certian customers. (this is probably really simple but I can't see it):

IF it's simply "less than 30 days" this forumula works GREAT:
=COUNTIFS(S:S,"<30",N:N,"<>Air Force",N:N,"<>Navy",N:N,"<>ARMY"). This formula will return "x" number or widgets for any customer that is NOT Air Force, Navy or Army...However...

IF it's between "31 and 90" days this forumula FAILS somewhere: =COUNTIFS(S:S,"31><90",N:N,"<>Air Force",N:N,"<>Navy",N:N,"<>ARMY")

Obviously the BETWEEN 31><90 is not right.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try:

Excel Formula:
=COUNTIFS(S:S,">=31",S:S,"<=90",N:N,"<>Air Force",N:N,"<>Navy",N:N,"<>ARMY")
 
Upvote 0
Solution
Bingo. That worked. I just wish excel would read my mind a bit more LOL. I was trying for just one step but it needed more. THANK YOU
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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