VLOOKUP formula

MrStressed

Board Regular
Joined
Mar 25, 2002
Messages
65
All, sorry in advance for the length of this post.

I have a sheet that i am trying to populate by using a VLOOKUP formula, searching for a numeric string in 12 sheets and populating the result of the search in my front sheet. After writing the formula I have got results where i should'nt have i.e. the numeric string has no related values (apart from 0) to populate as a total to the front sheet.
Additionally I'm confused as to the term 'Range_lookup' which appears as the fourth section of the VLOOKUP formula wizard. what should I be using here ? my original range of numeric strings from my front sheet or ranges from the sheets of data I am looking at.

Heres my formula at present..
=VLOOKUP($B11,midsSALCOM!B$3:$V$905,H$2,$B11)+VLOOKUP($B11,birmSALCOM!B$3:$V$912,H$2,$B11)+VLOOKUP($B11,avctSALCOM!B$3:$V$900,H$2,$B11)+VLOOKUP($B11,lseSALCOM!$B$3:$V$886,H$2,$B11)+VLOOKUP($B11,edSALCOM!$B$3:$V$936,H$2,$B11)+VLOOKUP($B11,glSALCOM!$B$3:$V$918,H$2,$B11)+VLOOKUP($B11,udSALCOM!$B$3:$V$934,H$2,$B11)+VLOOKUP($B11,neSALCOM!$B$3:$V$913,H$2,$B11)+VLOOKUP($B11,nwSALCOM!$B$3:$V$914,H$2,$B11)+VLOOKUP($B11,wlSALCOM!$B$3:$V$908,H$2,$B11)+VLOOKUP($B11,ykSALCOM!$B$3:$V$904,H$2,$B11)+VLOOKUP($B11,clSALCOM!$B$3:$V$906,H$2,$B11)

Any help you can offer would be great.
 
Aladin

Sorry about this -

both the results for the =ISNUMBER(XX) formulas was TRUE.

I typed the formula into the wrong sheet - DOH!

Sorry
Simon
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
On 2002-04-30 03:47, MrStressed wrote:
Aladin

=ISNUMBER(B3) - my result - TRUE

Cheers
Simon

What we have here a data type mismatch that also leads to #N/A's when unexpected.

Go to the front sheet.
Copy an empty, unused cell.
Select all of the lookup values in B from B11 on.
Activate the option Edit|Paste Special >Add.

Now test again:

=ISNUMBER(B11)

which should return TRUE.

When you're thru with this, I'll propose a layout for your front sheet to compute the desired sums/totals for each of your lookup values.
 
Upvote 0
In your front sheet:

In C11 enter:

=SUMIF(D11:O11,"<>#N/A")

Double click on the fill handle (the little black square) in the lower right corner of C11.

In D11 enter and double click on its fill handle:

=VLOOKUP($B11,midsSALCOM!B$3:$V$905,H$2,0)

In E11 enter and double click on its fill handle:

VLOOKUP($B11,birmSALCOM!B$3:$V$912,H$2,0)

In F11 enter and double click on its fill handle:

=VLOOKUP($B11,avctSALCOM!B$3:$V$900,H$2,0)

Follow up the above logic until you have all of your 12 lookup tables.

The above is more efficient than trying to avoid #N/A's in a single mega-formula.

Aladin
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

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