Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can i change the #N/A error for a 0 value

I have a list of people......
a1:a3 b1:b3
7 Ana
8 Marie
9 Susan

I have the following formula:
=index(a1:b3,match("susan",b1:b3,0),1)
The result is: 9 But if the list does not have Susan, it gave me #N/A
error value.... i need to add the result in a formula...... but with the
error value it is not possible. is there any way to get 0 instead of #N/A
when the formula does not mach the list?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How can i change the #N/A error for a 0 value

=if(isna(match("susan",b1:b3,0)),0,index(a1:a3,mat ch("susan",b1:b3,0)))

(I changed your =index() a bit.)

And if you're using xl2007, look at =iferror() in excel's help.

Teresita wrote:

I have a list of people......
a1:a3 b1:b3
7 Ana
8 Marie
9 Susan

I have the following formula:
=index(a1:b3,match("susan",b1:b3,0),1)
The result is: 9 But if the list does not have Susan, it gave me #N/A
error value.... i need to add the result in a formula...... but with the
error value it is not possible. is there any way to get 0 instead of #N/A
when the formula does not mach the list?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default How can i change the #N/A error for a 0 value

Try the following IF variation:

=IF(ISNA(INDEX(A1:B13,MATCH("susan",B1:B3,0),1)),0 ,INDEX(A1:B13,MATCH("susan",B1:B3,0),1))

--
Kevin Backmann


"Teresita" wrote:

I have a list of people......
a1:a3 b1:b3
7 Ana
8 Marie
9 Susan

I have the following formula:
=index(a1:b3,match("susan",b1:b3,0),1)
The result is: 9 But if the list does not have Susan, it gave me #N/A
error value.... i need to add the result in a formula...... but with the
error value it is not possible. is there any way to get 0 instead of #N/A
when the formula does not mach the list?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change an #N/A error to display other text? Nelly Excel Worksheet Functions 1 August 31st 08 06:05 AM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
How to change and error message to text NEWB Excel Worksheet Functions 4 December 1st 05 09:21 PM
Tab Name Change Error .xls] inserted Alayna Excel Discussion (Misc queries) 1 June 14th 05 01:31 PM


All times are GMT +1. The time now is 06:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"