LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLOOKUP & Array

Assuming you enter the formula on Sheet2:

=SUMPRODUCT(COUNTIF(A1:A9,Sheet1!A1:A9),Sheet1!B1: B9)

--
Biff
Microsoft Excel MVP


"AlanR" wrote in message
...
So Sheet 2 would add up to:

A
a =1
a =1
a =1
a =1
b =2
c =3
d =4
g =7
i =9

So the total would be (1+1+1+1+2+3+4+7+9) = 29

"T. Valko" wrote:

Based on the sample you posted what result do you expect?

--
Biff
Microsoft Excel MVP


"AlanR" wrote in message
...
Sorry, I wasn't clear when I asked the question:

I have a table of names (Column A) and values (Column B).

I want to take a list of cells, (eg A1:A9) and translate them into
values,
then add them up.

So in Sheet1 I have:

A B
a 1
b 2
c 3
d 4
e 5
f 6
g 7
h 8
i 9

In Sheet2 I have:
A
a
a
a
a
b
c
d
g
i

So I want to total up the names by getting the values from Sheet1.

"AlanR" wrote:

I have a sheet that looks like:
A B
a 1
b 2
c 3

=vlookup("a",A1:B3,2,0)=1
=vlookup("b",A1:B3,2,0)=2
=vlookup("c",A1:B3,2,0)=3

I want to add values {"a","b","c"}, so

=sum(vlookup({"a","b","c"},A1:B3,2,0))=sum({1,2,3} )=6






 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
array table and vlookup DV Excel Worksheet Functions 7 October 25th 07 04:09 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
vlookup with a sum of array Jerry (the latin men) Excel Worksheet Functions 5 January 17th 07 02:31 AM
VLOOKUP ARRAY Dave Excel Discussion (Misc queries) 2 November 21st 06 04:08 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM


All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"