Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

VLOOKUP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 02 Mar 2008 22:31 GMT
If I understand it right, I cannot do this:

={SUM(VLOOKUP(A1:A4,Sheet2!$A$1:$B$8,2,FALSE))}

To get the sum of points in this example

Sheet 1

       A        B etc...
1        1       
2        1
3        1
4        1
5        this is where I put the formula hoping to get 40 (10 + 10 + 10 +
10)

Sheet 2

       A        B        C etc...
1        1        10
2        2        8
3        3        6
4        4        4
5        5        3
6        6        2
7        7        1
8        8        0

If I used the formula =VLOOKUP(A1,Sheet2!$A$1:$B$8,2,FALSE) in Sheet1,
B1, I would get 10 as expected. I could then fill B2:B4 and sum the
values, but I want the total in one cell. There must be a way to do it.

I saw a solution posted here
(http://groups.google.com/group/microsoft.public.excel.worksheet.functio
ns/browse_thread/thread/af784678f7b56f38) that works - but not for
repeated values. Can someone point me in the right direction?

Thanks,
Andrew

Signature

Posted via a free Usenet account from http://www.teranews.com

Ragdyer - 03 Mar 2008 01:27 GMT
Try this in A5 of Sheet1:

=SUMPRODUCT((Sheet2!A1:A8=N(INDIRECT({"A1","A2","A3","A4"})))*Sheet2!B1:B8)
Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> If I understand it right, I cannot do this:
>
[quoted text clipped - 35 lines]
> Thanks,
> Andrew
Andrew Clark - 03 Mar 2008 01:07 GMT
> =SUMPRODUCT((Sheet2!A1:A8=N(INDIRECT({"A1","A2","A3","A4"})))*Sheet2!B1
> :B8)

Thanks! That did the trick.

Why can't I use CELL("address",A1:A4) instead of the array constant?

Signature

Posted via a free Usenet account from http://www.teranews.com

T. Valko - 03 Mar 2008 04:00 GMT
>Why can't I use CELL("address",A1:A4) instead of the array constant?

Because CELL doesn't work on arrays.

Another one:

=SUMPRODUCT(COUNTIF(A1:A4,Sheet2!A1:A8),Sheet2!B1:B8)

Signature

Biff
Microsoft Excel MVP

>> =SUMPRODUCT((Sheet2!A1:A8=N(INDIRECT({"A1","A2","A3","A4"})))*Sheet2!B1
>> :B8)
>
> Thanks! That did the trick.
>
> Why can't I use CELL("address",A1:A4) instead of the array constant?
RagDyer - 03 Mar 2008 22:18 GMT
Nice ... and uncomplicated!<bg>
Signature

Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> >Why can't I use CELL("address",A1:A4) instead of the array constant?
>
[quoted text clipped - 10 lines]
>>
>> Why can't I use CELL("address",A1:A4) instead of the array constant?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.