50
50
40
10
I have the above on , a1 to a6 , i need a formula to count and give me result 3
50
50
40
10
I have the above on , a1 to a6 , i need a formula to count and give me result 3
Try this:
=MAX(FREQUENCY(IF(A1:A6<>"",ROW(A1:A6)),IF(A1:A6="",ROW(A1:A6)))) Ctrl Shift Enter
Last edited by 63falcondude; 05-23-2017 at 02:42 PM.
Use this array formula:
=MIN(IF(A1:A6="",ROW(A1:A6)-ROW(A1)+1))-1
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Ignore my formula: it breaks down!! use 63 falcon..... 's one instead!!
Thank you 63 falcon dude , it sorted me out
Last edited by makinmomb; 05-23-2017 at 02:59 PM.
Falcon's doesn't work, either, You need this array formula:
=IF(MIN(IF(A1:A6="",ROW(A1:A6)-ROW(A1)+1))=0,ROW(A6),MIN(IF(A1:A6="",ROW(A1:A6)-ROW(A1)+1))-1)
On the attached sheet, delete the value in either A2 or A3...
The formula suggested in post #2 returns the maximum number of consecutive non-blank cells. I am assuming that is what the OP wanted.
If the OP was looking for the number of consecutive non-blank cells from the top of the column, then you are correct in saying that my formula will not do that.
Agreed, but I'll bet that he'd want 1, if a2 is blank. We'll see.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks