find and replace text from result not from the formula

ashish514

New Member
Joined
Feb 10, 2011
Messages
47
I have a column which contains a certain formula. In some of the cells in the same column there is the error message #N/A. I need to replace such cells with blank cells. But when i am using the find and replace feature, it looks into the formula in the cells and not the results and thus is unable to replace #N/A. Is there some method by which i can do that?? Please help..
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
If your formula is something like:
Code:
=1/0
Which returns "#DIV/0"

You can change the formula to:
Code:
=IF(ISERROR(1/0),"","No error")
This will return what appears to be a blank cell because 1/0 results in an error
Code:
=IF(ISERROR(1/1),"","No error")
Will return "No error"

Play with it and adapt to your formula, unless you care to provide your formula
 
Upvote 0
Well, this is my formula
{=INDEX(Fam!$D$2:$D$1974,MATCH(1,(Fam!$A$2:$A$1974=A1)*(Fam!$B$2:$B$1974=B1),0))}

And the error is #N/A and not #DIV/0

And I need to use the resulting column as a reference in another SUMPRODUCT formula. But sumproduct will give the same error unless the whole column is error free. Only if the cells having errors could be cleared and left blank, it would work.
 
Upvote 0
TRY THIS


=IF(ISERROR(INDEX(Fam!$D$2:$D$1974,MATCH(1,(Fam!$A$2:$A$1974=A1)*(Fam!$B$2:$B$1974=B1),0))),"",INDEX(Fam!$D$2:$D$1974,MATCH(1,(Fam!$A$2:$A$1974=A1)*(Fam!$B$2:$B$1974=B1),0)))

ISNA also works... but only for N/A errors

:)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,500
Messages
6,125,168
Members
449,211
Latest member
ykrcory

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