Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default logical test for an #N/A condition in a cell

I have a VLOOKUP that returns a dollar value from another spreadsheet. If an
entry is not found, the cell value becomes #N/A, which affects the summary of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default logical test for an #N/A condition in a cell

-IF(ISNA(YOURVLOOKUPFORMULA),0,YOURVLOOKUPFORMULA)

Vaya con Dios,
Chuck, CABGx3



"F.Rosario" wrote:

I have a VLOOKUP that returns a dollar value from another spreadsheet. If an
entry is not found, the cell value becomes #N/A, which affects the summary of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default logical test for an #N/A condition in a cell

To test for #N/A, you can use "ISNA":

=IF(ISNA(VLOOKUP(A1,Sheet2!B1:C20,2,0)),0,VLOOKUP( A1,Sheet2!B1:C20,2,0))

Laura

"F.Rosario" wrote in message
...
I have a VLOOKUP that returns a dollar value from another spreadsheet. If
an
entry is not found, the cell value becomes #N/A, which affects the summary
of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default logical test for an #N/A condition in a cell

This works for #N/A as well as other orrors:

=IF(ISERROR(A1),0,A1)

--
Gary''s Student - gsnu200761


"F.Rosario" wrote:

I have a VLOOKUP that returns a dollar value from another spreadsheet. If an
entry is not found, the cell value becomes #N/A, which affects the summary of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default logical test for an #N/A condition in a cell

Thank you very much, that solved my problem!

"CLR" wrote:

-IF(ISNA(YOURVLOOKUPFORMULA),0,YOURVLOOKUPFORMULA)

Vaya con Dios,
Chuck, CABGx3



"F.Rosario" wrote:

I have a VLOOKUP that returns a dollar value from another spreadsheet. If an
entry is not found, the cell value becomes #N/A, which affects the summary of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default logical test for an #N/A condition in a cell

Thank you very much, that solved my problem as well!

"Gary''s Student" wrote:

This works for #N/A as well as other orrors:

=IF(ISERROR(A1),0,A1)

--
Gary''s Student - gsnu200761


"F.Rosario" wrote:

I have a VLOOKUP that returns a dollar value from another spreadsheet. If an
entry is not found, the cell value becomes #N/A, which affects the summary of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default logical test for an #N/A condition in a cell

Thank you very much!

"Laura Cook" wrote:

To test for #N/A, you can use "ISNA":

=IF(ISNA(VLOOKUP(A1,Sheet2!B1:C20,2,0)),0,VLOOKUP( A1,Sheet2!B1:C20,2,0))

Laura

"F.Rosario" wrote in message
...
I have a VLOOKUP that returns a dollar value from another spreadsheet. If
an
entry is not found, the cell value becomes #N/A, which affects the summary
of
that column. I want to test for the #N/A condition and make it 0, but I
haven't figured out the syntax to compare the value of a cell to #N/A. Any
suggestions?




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
Logical test if cell uses formatting.. Mac Excel Worksheet Functions 2 November 6th 07 03:45 PM
IF functionality, Logical Test = Nonbalnk Cell Reebis Excel Worksheet Functions 1 April 23rd 07 02:28 PM
Logical Test comparison using cell color chamuko Excel Discussion (Misc queries) 2 November 9th 05 03:09 AM
logical test for each and every cell in range matt Excel Discussion (Misc queries) 4 September 16th 05 06:11 AM
=IF logical test to search only part of a cell Robbie in Houston Excel Worksheet Functions 2 March 5th 05 05:09 AM


All times are GMT +1. The time now is 06:16 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"