Counting rows with minimums

brakiachi

New Member
Joined
Jan 7, 2016
Messages
20
Office Version
  1. 2010
Platform
  1. Windows
Can't think of a good way to do this.
I have table with about 200 columns and rows.
What I would like to do is count how many instances in a column that a minimum for a exists.
A simplified version of this would be

1234
2341
1324
221

What I want is a formula that for column a, would return 2 (A1 is minimum for row 1, A3 is minimum for row 3), column b would return 0, column c would return 0, column d would return 2 (D2 in minimum for row 2, D4 is minimum for row 4)

I have tried doing a conditional formatting that highlights the minimum for each how, and then using a UDF to count the number of instances that color appears in a column, but I can't figure out how to get the UDF to count cells that are colored by conditional formatting. And I can't think of a way to get a countifs to work without having about 200 criteria (a criteria for each row). I'm certain there is any easy way to do this.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
2010. My profile should be updated now
 
Upvote 0
Ok, thanks for that, try
+Fluff 1.xlsm
ABCDE
1
212345
323417
413240
52212
6
710021
Master
Cell Formulas
RangeFormula
A7:E7A7=SUM(--(A$2:A$5=SUBTOTAL(5,OFFSET($A$2,ROW($A$2:$E$5)-ROW($A$2),,,COLUMNS($A$2:$E$5)))))


It may need to be array entered in your version of xl.
 
Upvote 0
Perfect. That works. I don't quite understand what the offset is actually doing though, but it works. Thank you
 
Upvote 0
You're welcome & thanks for the feedback.
The subtotal returns the minimum value for each row.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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