A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

COUNTBLANK MAX question



 
 
Thread Tools Display Modes
  #1  
Old January 3rd 07, 07:30 PM posted to microsoft.public.excel.misc
Vasilis Tergen
external usenet poster
 
Posts: 25
Default COUNTBLANK MAX question

I need a formula (not a macro) so as to find the maximum number of blank
rows, appearing between text entries found between rows 1 & 100.
This, in refference to column A.
Ex:

Column A
Row 1 DATA
Row 2
Row 3 DATA (1 Blank cell appeared)
Row 4
Row 5
Row 6 DATA (2 Blank cells appeared)


So, in this case, I'd need for a formula to tell me that the
maximum number
of blank cells appearing between Row 1 & Row 6= 2.
Remember that any non blank cells appearing in column A will
contain text,
not numbers.


Ads
  #2  
Old January 3rd 07, 08:20 PM posted to microsoft.public.excel.misc
Ron Coderre
external usenet poster
 
Posts: 2,118
Default COUNTBLANK MAX question

With
A1:A100 containing values or blanks

I'm guessing this can be more streamlined, but...
Try this ARRAY FORMULA:

B1:
=MAX(LARGE(ISBLANK(A1:A100)*NOT(ISBLANK(A2:A101))* ROW(A1:A100),ROW(A1:A99))-LARGE(ISBLANK(A2:A101)*NOT(ISBLANK(A1:A100))*ROW(A 2:A101),ROW(A2:A100)))+1

Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Vasilis Tergen" wrote:

> I need a formula (not a macro) so as to find the maximum number of blank
> rows, appearing between text entries found between rows 1 & 100.
> This, in refference to column A.
> Ex:
>
> Column A
> Row 1 DATA
> Row 2
> Row 3 DATA (1 Blank cell appeared)
> Row 4
> Row 5
> Row 6 DATA (2 Blank cells appeared)
>
>
> So, in this case, I'd need for a formula to tell me that the
> maximum number
> of blank cells appearing between Row 1 & Row 6= 2.
> Remember that any non blank cells appearing in column A will
> contain text,
> not numbers.
>
>

  #3  
Old January 4th 07, 08:38 AM posted to microsoft.public.excel.misc
Leo Heuser
external usenet poster
 
Posts: 266
Default COUNTBLANK MAX question

"Vasilis Tergen" > skrev i en
meddelelse ...
>I need a formula (not a macro) so as to find the maximum number of blank
> rows, appearing between text entries found between rows 1 & 100.
> This, in refference to column A.
> Ex:
>
> Column A
> Row 1 DATA
> Row 2
> Row 3 DATA (1 Blank cell appeared)
> Row 4
> Row 5
> Row 6 DATA (2 Blank cells appeared)
>
>
> So, in this case, I'd need for a formula to tell me that the
> maximum number
> of blank cells appearing between Row 1 & Row 6= 2.
> Remember that any non blank cells appearing in column A will
> contain text,
> not numbers.
>
>


Vasilis

Here's another option. Also an array formula:

=MAX(LARGE(IF(A1:A100<>"",ROW(A1:A100),0),ROW(INDI RECT("1:"&ROWS(A1:A100)-1)))-
LARGE(IF(A1:A100<>"",ROW(A1:A100),0),ROW(INDIRECT( "2:"&ROWS(A1:A100)))))-1

To be entered with <Shift><Ctrl><Enter>, also if edited later.

If the value to look for is in e.g. B1 (in your example B1 would be empty),
the generic formula is:

=MAX(LARGE(IF(A1:A100<>B1,ROW(A1:A100),0),ROW(INDI RECT("1:"&ROWS(A1:A100)-1)))-
LARGE(IF(A1:A100<>B1,ROW(A1:A100),0),ROW(INDIRECT( "2:"&ROWS(A1:A100)))))-1

--
Best regards
Leo Heuser

Followup to newsgroup only please.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possibly a loaded question, but I think mileslit Excel Discussion (Misc queries) 1 September 10th 05 01:18 AM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM
Anybody Help with previous question Anthony Excel Discussion (Misc queries) 1 July 26th 05 01:26 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM


All times are GMT +1. The time now is 07:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004-2013 ExcelBanter.
The comments are property of their posters.