Combine countifs with match for greater than or less than values

mmcmillin

New Member
Joined
Jan 8, 2015
Messages
5
I need to count up all the machines that are less than 181 days old and older than 149 days. I can do this with sumifs, but not countifs. The sumifs formula I used that worked is below. I just need a count and not a sum.

=SUMIFS(April!$O$2:$O$1080,April!$B$2:$B$1080,Sheet1!A3,April!$O$2:$O$1080,">149",April!$O$2:$O$1080,"<181")
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try

=COUNTIFS(April!$B$2:$B$1080,Sheet1!A3,April!$O$2:$O$1080,">149",April!$O$2:$O$1080,"<181")

M.
 
Upvote 0
I need a formula that can search for a location number on two spreadsheets (there are over 6,000 locations on each spreadsheet), which may be on each spreadsheet multiple times, then confirm the next column (representing one of several elements at that location) there may be 3-4 of this same element at each location, then I need the formula to return a response based on matching that location and that element and pull in the 1st outcome for that element at that location, 2nd outcome for the second of the same type of element at that location, then 3rd etc, then move down spreadsheet to the next type of element and then to the next location and set of elements. Help?

Example

Storeelement
last year's price
Store elementThis year's price
54662137 sm20054667137 sm250
54662137 sm25054667137 sm275
54667137 sm30054667137 sm315
54667137 sm30054667137 sm310
54677137sm50054677137sm510
54677137sm45054677137sm460
5445385 sm3005467785 sm310
5435685 sm3005467785 sm315
5467712 sm2505467712 sm270
5467724 sm1755467724 sm180
5467732 sm1805467732 sm190
55766137 sm2505544285 sm260
55766137 sm2755544285 sm285
55766137 sm2755544270 sm 285
5576655 sm1505544212 sm160
5576675 sm1755544224 sm 185
5576685 sm1855544255 sm195
5576685 sm1955544255 sm190
55766137 sm2505544240 sm260
5544285 sm18055766137 sm190
5544285 sm17055766137 sm160
5544270 sm 16055766137 sm180
5544212 sm905576655 sm100
5544224 sm 1305576675 sm140
5544255 sm1505576685 sm160
55442
55 sm1555576685 sm175
5544240 sm14055766137 sm155

<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>



<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,548
Members
449,038
Latest member
Guest1337

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