I need to find the mininum number from a column. My range needs to start with cell b2 and stop with first cell it encounters that has text. "TOT"
I need to find the mininum number from a column. My range needs to start with cell b2 and stop with first cell it encounters that has text. "TOT"
Try this
![]()
=MIN(B2:INDEX(B:B,MATCH("TOT",B:B,0)))
If you need any more information, please feel free to ask.
However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....
Also
اس کی مدد کرتا ہے اگر
شکریہ کہنے کے لئے سٹار کلک کریں
If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.
We need a better description of your problem/worksheet. Will there be more numbers below the cell with "tot"?
Ben Van Johnson
one column only-- has TOT at top and TOT at bottom with numbers in between, then it repeats with a different set of numbers and TOT at bottom again.....I need smallest number from each group of numbers between the TOT
Post a typical workbook.
My first response should have solved your initial query, but now you have to handle groups of data, that's an entirely different problem.My range needs to start with cell b2 and stop with first cell it encounters that has text. "TOT"
I need a formula that will find the smallest number in each group between TOT. That will stay the same, if I delete a row, or add a row, or sort numbers,
answer for each group will be in cell beside the top TOT of that group.
TOT
56
54
48
62
63
TOT
45
64
66
69
55
48
TOT
63
44
55
TOT
Last edited by dloe; 04-13-2012 at 09:40 PM.
Why not post a sample of your workbook as an attachment? It makes life easier all round.
Try this example workbook.
With your data in Column B as shown.
In A1
Drag/Fill Down as required![]()
=IF(ROW()=1,1,IF(B1="TOT",ROW(),""))
In C2
Drag/Fill Down as required.![]()
=IF(B2="TOT",MIN(INDEX(B:B,MAX($A$1:$A1)):INDEX(B:B,ROW())),"")
The helper, Column A, can be hidden, or use a grouping button as in this example.
Note the conditional formatting in Columns B & C.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks