Ignoring a vlookup if no data

Dazlancs

New Member
Joined
Sep 10, 2011
Messages
28
Hi All,

I am trying to write a formula to create the sum of multiple VLOOKUPs. This is pretty simple with the basic knowledge i have however, i have a problem whereby the data points change on a daily basis so i need the vlookup to ignore any values that are not found and then countinue to count the sum.....

My current formula looks like this:

=IF('Raw Data'!A1=0,"N/A",IFERROR(VLOOKUP('Look Ups'!$A$67,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$68,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$69,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$70,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$71,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$72,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$73,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$74,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$75,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$76,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$77,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$78,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$79,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$80,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$81,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$82,'Raw Data'!C:I,2,FALSE)+IFERROR(VLOOKUP('Look Ups'!$A$83,'Raw Data'!C:I,2,FALSE),0),0),0),0),0),0),0),0),0),0),0),0),0),0),0),0),0))

This should total up all of the data points requested however, when it hits any of the lookups where there is no valid data, it stops the formula dead and gives the number at that point.

The above should total 1302 but only counts the first number of 406 from cell $A$67 and then stops (as the lookup for $A$68 doesn't exist today (but may tomorrow).

I need the formula to skip any formulas that can't find the lookup and move on to the next one.

Can anyone help please as this is doing my nut in :confused:
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,217,301
Messages
6,135,720
Members
449,959
Latest member
choy96

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