Find #VALUE! using MATCH formula

BigDelGooner

Board Regular
Joined
Aug 17, 2009
Messages
197
Hi all

I am trying to return the first row in a range where the value is #VALUE!.

I am currently using the following formula but it doesn't seem to be working... =MATCH(ERROR.TYPE(3),Indices!$Z:$Z,0).

It works when I am searching for a text string, say.... =MATCH("TEST",Indices!$Z:$Z,0).

Any ideas?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try this array formula

=MATCH(TRUE,ERROR.TYPE(Indices!$Z:$Z)=3,0)

confirmed with CTRL+SHIFT+ENTER

In versions of Excel before 2007 you can't use the whole column, e.g. in Excel 2003 replace Indices!$Z:$Z with a specific range like Indices!$Z2:$Z100
 
Upvote 0
Hi all

I am trying to return the first row in a range where the value is #VALUE!.

I am currently using the following formula but it doesn't seem to be working... =MATCH(ERROR.TYPE(3),Indices!$Z:$Z,0).

It works when I am searching for a text string, say.... =MATCH("TEST",Indices!$Z:$Z,0).

Any ideas?
Assuming that #VALUE! is the only error value in the range.

This array formula**:

=MATCH(TRUE,ISERROR(Z1:Z20),0)

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

Note that unless you're using Excel 2007 or later you can't use entire columns as references in certain types of array functions.
 
Upvote 0
Thank you v much guys.

I was struggling at first because I was entering the entire 'Z' column which Excel doesn't seem to like. However if you specify the Z column but rows 1 to 65535 (instead of 65536) it work fine.

Thanks again.
 
Upvote 0
Thank you v much guys.

I was struggling at first because I was entering the entire 'Z' column which Excel doesn't seem to like. However if you specify the Z column but rows 1 to 65535 (instead of 65536) it work fine.

Thanks again.
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top