Look for a range within the rows that contain specific criteria

marissa2

New Member
Joined
Apr 23, 2022
Messages
4
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I'm not even sure this is possible and if the answer is no, then that's ok. I'm no worse off than I was before.

My data includes Work Order #s and the $$ sold per work order hour. A helper column has an IF statement that shows me all rows where the $$ sold per work order hour is greater than $100. I need to find a range of 100 consecutive rows in those three columns that have at least 30 of the values I'm looking for. Off to the side I do a COUNTIF on the helper column and a range of row 1 to row 100 and press enter. If it doesn't come up as at least 30, I change the range to row 20 to row 120 and try again. Then repeat until the count hits at least 30 in a range of 100 rows.

Is there a formula that will do that?

I'm picturing something with a combo MAX (on the WO #), IF or COUNTIF with perhaps a FREQUENCY for good measure on the helper column but what my mind is picturing is not coming out in spreadsheet form. "it can't be done" is a perfectly acceptable answer. :)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Why not use the helper column to return the row number of the top cell that fits your criteria and then another cell calculates the minimum value in the column?
 
Upvote 0

Forum statistics

Threads
1,214,430
Messages
6,119,454
Members
448,898
Latest member
drewmorgan128

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