# Time greater than

#### hajiali

##### Board Regular
Im trying to writer a code to pull all names that have a start time of 11 or greater cell B2 has the following code

Code:
``=IFERROR(INDEX('Bid Results'!\$X\$6:\$X\$253,SMALL([B]IF('Bid Results'!\$Z\$6:\$Z\$253=>TIME(11,0,0)[/B],ROW('Bid Results'!\$Z\$6:\$Z\$253)-ROW('Bid Results'!\$Z\$6)+1),ROWS('Bid Results'!\$Z\$6:'Bid Results'!\$Z6))),"")``
What im notice the code is doing is that is recognizing all the "OFF" times as Greater than or equal too 11 Im needing it to Ignore all cells that have "OFF"

#### jasonb75

##### Well-known Member
Time is numeric and any text is greater than any number, for this to work correctly you need to eliminate any non-numeric values from the array first.
This formula should do it, array confirmation is not needed.
Code:
``=IFERROR(INDEX('Bid Results'!\$X:\$X,AGGREGATE(15,6,ROW('Bid Results'!\$Z\$6:\$Z\$253)/(VALUE('Bid Results'!\$Z\$6:\$Z\$253)>=TIME(11,0,0)),ROWS(Z\$6:Z6))),"")``

Last edited:

#### Drrellik

##### Well-known Member
So, on your sheet Bid Results in column Z some of the rows have OFF rather than a time and your array formula is evaluating those cells as greater than 11 and returning the rows as a result.

did I understand you correctly?

and your example did not show as an array but you are using Ctrl+Shift+Enter correct?

#### hajiali

##### Board Regular
Thank you SO much Jasonb75 that worked.

Threads
1,082,371
Messages
5,365,066
Members
400,821
Latest member
kezza123

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
• Listbox Header
Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
• Complex Heat Map using conditional formatting
Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
• Conditional formatting
Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...