You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how to find invalid date formatted row in my table

I have a 3400x14 table i have a invalid formatted date i dont know where it is. Is there a way to find it easily?

Mac mini, macOS 10.13

Posted on Jun 2, 2022 10:24 AM

Reply
2 replies

Jun 2, 2022 2:56 PM in response to onqun

Does your "invalid formatted date" create an error or how did you know it is there?


You could try a "Conditional Highlighting" to find the date.

One of these dates is formatted as text.


If I set the rule for the last 10 years all other "dates" will show.


You have to play with the conditions, but you should find it.


Ralf

Jun 2, 2022 12:10 PM in response to onqun

I'm assuming you know the column that the invalid date is in. For the example, I'll assume it is column A.


Add a column to your table. In the first non-header row of that column enter a formula that will throw an error when confronted by a non-Date and Time value.


Example:



Column A shows one sign that there is a non-date and time value in Row 9. If no text alignment setting has been set by the user, D&T values (and Numbers) will be aligned to the right , while Text values will be aligned to the left.


The upper formula shown below the table is entered in cell O2 as shown, then filled down to all cells in the column.


When asked to add a Duration value (2 days) to a D&T value, it returns a D&T value with the same format as the one in column A.

When asked to add a Duration value (2 days) to a Text value, it returns an error, which displays the error triangle shown in O9.


The second formula, entered as shown in cell P2, and filled down to the end of that column, used the same A2+DURATION expression (compacted by removing the 'weeks token and all of the commas and tokens after the 2 days)to create an error in the non-D&T row.


The formula passes the error message to ISERROR, and IF uses the resulting True or False to place either the Row number or a 1 in the cell containing that copy of the formula.


At the top of the table, Cell P1 contains a simple formula that gets the Maximum value in column P.


This value will be the number of the furthest down row of the table containing an error in the 'D&T+DURATION expression.


Regards,

Barry

how to find invalid date formatted row in my table

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.