Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default #N/A Error Reference

I currently have a look up table and use the following formula:

=VLOOKUP(C2&D2&E2,All_prices!$A$2:$H$33,8,FALSE)

However, if any of the attributes in columns C D and E do not match, then
#N/A is returned (in this case Cell G2). This is causing a problem when I try
to total colum G. Is there a way of returning 0 instead of #N/A? I hope this
makes sense...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default #N/A Error Reference

Handle that using ISNA() ...

=IF(ISNA(VLOOKUP(C2&D2&E2,All_prices!$A$2:$H$33,8, 0)),0,
VLOOKUP(C2&D2&E2,All_prices!$A$2:$H$33,8,0))

If this post helps click Yes
---------------
Jacob Skaria


"Sergio" wrote:

I currently have a look up table and use the following formula:

=VLOOKUP(C2&D2&E2,All_prices!$A$2:$H$33,8,FALSE)

However, if any of the attributes in columns C D and E do not match, then
#N/A is returned (in this case Cell G2). This is causing a problem when I try
to total colum G. Is there a way of returning 0 instead of #N/A? I hope this
makes sense...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #N/A Error Reference

One way...

=IF(COUNTIF(All_Prices!A$2:A$33,C2&D2&E2),VLOOKUP( C2&D2&E2,All_Prices!A$2:H$33,8,0),0)

--
Biff
Microsoft Excel MVP


"Sergio" wrote in message
...
I currently have a look up table and use the following formula:

=VLOOKUP(C2&D2&E2,All_prices!$A$2:$H$33,8,FALSE)

However, if any of the attributes in columns C D and E do not match, then
#N/A is returned (in this case Cell G2). This is causing a problem when I
try
to total colum G. Is there a way of returning 0 instead of #N/A? I hope
this
makes sense...



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
Deleted row reference error helpless Excel Discussion (Misc queries) 3 June 5th 08 05:39 PM
Circular Reference Error Even Though There Is No C.R. Excelenator Excel Worksheet Functions 0 July 25th 06 07:42 PM
Circular reference error Rick Excel Discussion (Misc queries) 1 October 5th 05 08:45 PM
reference #value error DrXerox Excel Worksheet Functions 0 July 22nd 05 03:56 AM
Maddening reference error Wowbagger New Users to Excel 2 May 23rd 05 02:48 PM


All times are GMT +1. The time now is 11:52 PM.

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

About Us

"It's about Microsoft Excel"