Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Count the highest number of days without “errors”

Dear all

I want to count, the highest number of days without “errors” in the table below (this is a subset of the overall table).

"Yes" means no error and "NO" means one or more errors.
The table is dynamic and gets data from underlying tables.

I want an automatic counting, showing the highest number of days without error. As an example in this table, there is a continuous period from 09.nov to 13.nov without error - 5 days.
This number should only be overwritten when a continuous period of “YES’s” is higher.

- Thank you in advance for your help. Best Hans

Date Check
05. nov 2013* Yes
06. nov 2013* Yes
07. nov 2013* Yes
08. nov 2013* No
09. nov 2013* Yes
10. nov 2013* Yes
11. nov 2013* Yes
12. nov 2013* Yes
13. nov 2013* Yes
14. nov 2013* No
15. nov 2013* Yes
16. nov 2013* Yes
17. nov 2013* No
18. nov 2013* Yes
19. nov 2013* Later
20. nov 2013* Later
21. nov 2013* Later
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Count the highest number of days without ?errors?

Hi Claus

Sorry for this late reply - It works and I am happy !

- Thanks

Best Hans





On Monday, 18 November 2013 17:56:39 UTC+1, Claus Busch wrote:
Hi Hans,



Am Mon, 18 Nov 2013 08:01:44 -0800 (PST) schrieb

:



"Yes" means no error and "NO" means one or more errors.


The table is dynamic and gets data from underlying tables.




Date Check


05. nov 2013* Yes


06. nov 2013* Yes


07. nov 2013* Yes


08. nov 2013* No




try:

=MAX(LARGE((B2:B1000<"Yes")*(B1:B999="Yes")*ROW(1 :999),ROW(1:999))-LARGE((B2:B1000="Yes")*(B1:B999<"Yes")*ROW(1:999) ,ROW(1:999)))

and array-enter the formula with CTRL+Shift+Enter





Regards

Claus B.

--

Win XP PRof SP2 / Vista Ultimate SP2

Office 2003 SP2 /2007 Ultimate SP2

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to count number of errors? Faraz A. Qureshi Excel Programming 4 July 31st 09 08:39 AM
Count number of cells with data validation errors Gareth[_2_] Excel Programming 3 October 28th 08 07:16 PM
COUNT how many ROWS ago out of 10 days that the highest high in 10 days was made rhhince Excel Worksheet Functions 1 January 14th 07 09:56 PM
I want to count the highest number of equal cells fiur Excel Worksheet Functions 6 October 16th 06 04:47 AM
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates John Excel Worksheet Functions 3 August 11th 06 04:34 AM


All times are GMT +1. The time now is 08:57 AM.

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

About Us

"It's about Microsoft Excel"