How to use {CSE } with VLookup

__Stephenb__

New Member
Joined
Jun 28, 2008
Messages
2
Hi,

I am trying to ( in a single cell ) determine the sum of some "tags" which have a value based on a separate table. Such as

TAGS
------
A
1 tag1
2 tag2

TAG VALUES
------------
A B
5 tag1 1
6 tag2 2

What I am trying is :
={SUM(VLOOKUP( A1:A2, $A5:$B6,2,FALSE))}
with the expected goal to get =3

In my thinking I am expecting to create an {array} of items to lookup and get values like {1,2} and then to sum them, but clearly my understanding is wrong.

The frist part that trips me up is I expect A1:A2 in vlookup to be treated as {"tag1","tag2"} but when I look in the evaluator I see it is just "tag1".

Can someone please put me on the right track.

Thanks
-Steve
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Thanks. Spot on, but that is why you are MrExcel!

Can you possibly explain where my understand is incorrect with my attempted use with the Vlookup ( which is clearly not the best soln ), but I am new to the understanding of excel natively supporting arrays, and how to use them, and given my brief experimenting, that seems like a natural extension ?

-Steve
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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