vlookup returning #NA as value not found in all ranges

RolandK

New Member
Joined
May 7, 2015
Messages
4
Hello all,

I have a spreadsheet with several tabs for different sites for the company.
Not all sites deliver the same service items, but most do overlap. Service items are provided at several levels, again, not all the same levels are provided by each site. The maximum is 8 levels for any of the service items. Total number of service items is 90.

All the site sheets have identical lay-out to the collation I am trying to set up, so if I want to add the values from Columns D, it will be in Column D on all the site spreadsheets.
I want to add all the returns together, but my vlookup returns a #NA if it cannot find the value on any of the site sheets.

All ranges have the site name attached and are sorted alphabetically.

Can anybody help me to calculate the total for each of the service items and each of the service levels?

Thanks in advance,

RolandK
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Possibly you can use the "Consolidate" functionality on the DATA tab.

A very basic display of my lay out would be as follows:

A B C D E F G H
1
2
3
4

Same layout for all sheets. A1 will have the value for service 1, at level A, B2 will have service B at level 2, C4 will have service 4, upto level C, etc.. The values will be 0 if not offered.

I want all service levels for all servise at all 7 locations to be added up, inserting a zero value for any service or service level that is not available in a particular location.

E.g Location 'Here' has all services, but only upto level E, but location 'There' only has service 1,3 and 4, but at all levels.

The problem arises when a location does not offer the service: it will give me the #NA error, which then means I cannot add the values together.

Hope that explains it better..

RolandK
 
Upvote 0
Hope that explains it better..
Well, not really. The layout is too basic to understand and you are mixing up letters and numbers for services and service levels.

Nevertheless: you might use the IFERROR function to return 0 if your function ends in error, like =IFERROR(your function,0)
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,790
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top