Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default "#N/A" -- can I convert to a "0" (zero)?

I have just learned to pull query data into a spreadsheet through VLOOKUP.
However some years have no data in the query and it returns an #N/A in the
cell. I cannot figure out how to convert those to a '0'. Any master of
Excel out there have any suggestions?

Thanks in Advance!
Branchie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default "#N/A" -- can I convert to a "0" (zero)?

You need to trap the error: =IF(ISNA(VLOOKUP([your vlookup
formula])),0,VLOOKUP([your vlookup formula]))

Dave
--
Brevity is the soul of wit.


"Branchie" wrote:

I have just learned to pull query data into a spreadsheet through VLOOKUP.
However some years have no data in the query and it returns an #N/A in the
cell. I cannot figure out how to convert those to a '0'. Any master of
Excel out there have any suggestions?

Thanks in Advance!
Branchie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default "#N/A" -- can I convert to a "0" (zero)?

=IF(ISNA(VLOOKUP(G2,C1:E24,2,FALSE)),0,VLOOKUP(G2, C1:E24,2,FALSE))


Gord Dibben MS Excel MVP


On Thu, 7 Dec 2006 12:56:01 -0800, Branchie
wrote:

I have just learned to pull query data into a spreadsheet through VLOOKUP.
However some years have no data in the query and it returns an #N/A in the
cell. I cannot figure out how to convert those to a '0'. Any master of
Excel out there have any suggestions?

Thanks in Advance!
Branchie


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
convert "yes" and "no" to "1" and "0", respectively dcses Excel Worksheet Functions 2 March 3rd 06 12:47 AM
want to return "n/a" or "0" edrachel New Users to Excel 2 January 27th 06 10:14 PM
Convert decimal degree (lattitude/longitude) into Degree, Tim Ashcom Excel Discussion (Misc queries) 5 August 17th 05 04:53 PM
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM


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