na error
Microsoft Office Training McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams add this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » #N/A error

#N/A error

The UK's most regular instructor-led training courses.
Training information: microsoft excel courses in · Excel courses london · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · High Priority · Version 2000

#N/A error

Jamie has attended:
No courses

by - delegate Jamie [2 posts] (2008 Jun 4 Wed, 16:09) replyReply

#N/A error

I have a set of data relating to a list of district authorities that is regularly updated to pivot tables (monthly) with new data from related workbooks. The updated data is supplied from an internal database that exports to Excel. However, sometimes there is no new data associated to some of the authorities listed and therefore, the database does not export the names of those local authorities where no new data exists for that month.

The problem is that when I update the pivot table (which has the full list of local authorities), where there is no data that month I keep getting the #N/A error, because Excel cannot find the name of the local authority from the exported data. This is causing me to have to manually deleted the #N/A error in each cell and replace it with a 0 (zero). This has a knock-on effect of deleting the function from that cell, which means that next month, I need to re-enter that function into each cell.

Does anyone know how to add / alter a VLookup function to automatically replace an #N/A error with a zero (0) value? The current function I'm using for cells is: =VLookup (cell refererence, "workbook filename", column ref, false).

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2009 Jan 12 Mon Bayswater 3 book now £224 £224
2007 2009 Jan 13 Tue Bloomsbury 1 book now £224 £224
2002/XP 2009 Jan 13 Tue Tooting 0 FULL    
2003 2009 Jan 15 Thu Southwark 1 book now £215 £215
2007 2009 Jan 20 Tue Bloomsbury 3 book now £224 £224
2003 2009 Jan 20 Tue Southwark 4 book now £207 £215
Full Schedule: See all 134 Excel Intermediate course dates.
Bookings currently available until 30th March 2010.

RE: #N/A error

by - trainer Carlos gold contributer[496 posts] (2008 Jun 12 Thu, 11:51) Edited on 2008 Jun 12 Thu, 11:51 replyReply

Hi Jamie

You could try and combine the VLOOKUP function with an IF function.

THe formula below looks at a cell. If the cell is blank it puts a zero(0). If it has data it runs the VLOOKUP.

=IF(A4="",0,VLOOKUP(A4,Percentages!$A$3:$B$30,2,FALSE))

Hope this helps

Carlos

RE: #N/A error

by - delegate Jamie [2 posts] (2008 Jun 12 Thu, 12:25) replyReply

Thanks Carlos,

I have successfully rectified this error.

Thanks for your help.

Jamie


Related articles

· Advanced level training: Microsoft Excel and the Web
· Excel Course Tips and Tricks to Liven Up Your Excel Spreadsheets
· Microsoft Excel Training Advanced Courses - Making Data Validation Work For You
· Excel in the Home Office
· Prepare for your MOS Certification with MS Excel Courses

Please browse our web site to find out more about
microsoft excel courses in and other Microsoft training courses.

Excel tip:

Use Paint Brush to Format More than one Cell

To copy a format to many cells or ranges

1. Select the cell with the format that you want to copy

2. Double-click on the paint brush

When you move to the cell where you want to paste the format you will notice that a paint brush follows the cursor.

Paste the format to all the cells or ranges you need to format.

When finished go back to the paint brush on the tool bar and single click on it to deactivate the function.

View all Excel hints and tips

Rate this page:
3.0/5 (5 votes cast)
Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London
Microsoft Office training

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
Microsoft access courses · Microsoft training access course
Microsoft+access+training · Access courses in london

Training Information
Training Articles

AddThis Social Bookmark Button What's this?
Add to: Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo