HawaiianShirts
New Member
- Joined
- Jul 19, 2014
- Messages
- 15
- Office Version
- 365
- Platform
- Windows
I'm working with a spreadsheet that is used for data gathering. I've been asked to create an error checker for when data is pasted into the spreadsheet and overwrites the data validation rules.
In cells X3:AO33, I have a block of formulas. Most of them check for a blank cell, then check for valid entry in another cell. If the result is valid or not needed, it returns a blank. Otherwise, it returns a message. Here's an example:
Now I need to put something in B2 that looks for messages in the X3:AO33 range. I want it to return the value of the first non-blank cell. If Z5 has the first found error, then B2 should display the text in Z5. Then the user can fix the problem, which makes Z5 turn blank, and if the next error is in AB7, B2 should then display the text in AB7.
I've tried this.
And this.
And this.
And this.
I've tried them all as arrays and not as arrays. And they all bring back the #N/A error.
Any ideas what I'm doing wrong?
In cells X3:AO33, I have a block of formulas. Most of them check for a blank cell, then check for valid entry in another cell. If the result is valid or not needed, it returns a blank. Otherwise, it returns a message. Here's an example:
Excel Formula:
=IF(OR(AND(D3<>"",OR(F3="",G3="",H3="")),AND(U3<>"",V3="")),CONCATENATE("Required fields are missing in row ",ROW(),"."),"")
Now I need to put something in B2 that looks for messages in the X3:AO33 range. I want it to return the value of the first non-blank cell. If Z5 has the first found error, then B2 should display the text in Z5. Then the user can fix the problem, which makes Z5 turn blank, and if the next error is in AB7, B2 should then display the text in AB7.
I've tried this.
Excel Formula:
=INDEX(X3:AO33,MATCH(FALSE,ISBLANK(X3:AO33),0))
And this.
Excel Formula:
=INDEX(X3:AO33,MATCH(TRUE,INDEX((X3:AO33<>0),0),0))
And this.
Excel Formula:
=INDEX(X3:AO33,MATCH(TRUE,LEN(X3:AO33)>0,0))
And this.
Excel Formula:
=MATCH("*",X3:AO33,0)
I've tried them all as arrays and not as arrays. And they all bring back the #N/A error.
Any ideas what I'm doing wrong?