PC Review


Reply
Thread Tools Rate Thread

How do I Lookup and SUM multiple "finds?"

 
 
=?Utf-8?B?eHJiYmFrZXI=?=
Guest
Posts: n/a
 
      20th Mar 2007
How do I Lookup values from another sheet, knowing that there will be
multiple occurances of those values, and sum the offset cells?

For example:

Lookup value is:
BAKER

Table is:
SMITH BAKER JONES BROWN BAKER HODGES
4 5 6 3 8 10
7 5 9 56 3 1


I want a forumla that uses the Lookup "Baker" and SUMS the second row of 5+3
to yield 8? Can I do this w/out using VBA? (He asked hopefully...)

Thanks for any insight.

Russ

 
Reply With Quote
 
 
 
 
jan
Guest
Posts: n/a
 
      20th Mar 2007
Russ,

=SUMPRODUCT(--(A1:F1="BAKER"),A2:F2)

will do, if your data are in A1 to F3

Jan


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      20th Mar 2007
As a formula in your worksheet, you could use:

=sumif($a$1:$x$1,"baker",$a2:$x2)
or
=sumif(sheet2!$a$1:$x$1,"baker",sheet2!$a2:$x2)



xrbbaker wrote:
>
> How do I Lookup values from another sheet, knowing that there will be
> multiple occurances of those values, and sum the offset cells?
>
> For example:
>
> Lookup value is:
> BAKER
>
> Table is:
> SMITH BAKER JONES BROWN BAKER HODGES
> 4 5 6 3 8 10
> 7 5 9 56 3 1
>
> I want a forumla that uses the Lookup "Baker" and SUMS the second row of 5+3
> to yield 8? Can I do this w/out using VBA? (He asked hopefully...)
>
> Thanks for any insight.
>
> Russ


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?eHJiYmFrZXI=?=
Guest
Posts: n/a
 
      20th Mar 2007
Never mind! I figured it out with a SUM(IF array) formula. I was getting
hung up trying to get HLOOKUP to do the trick.

=SUM(IF('[RM Data Entry_ Release.xls]Management Summary'!$D$2:$AG$2=C$1,'[RM
Data Entry_ Release.xls]Management Summary'!$D43:$AG43,0))

"xrbbaker" wrote:

> How do I Lookup values from another sheet, knowing that there will be
> multiple occurances of those values, and sum the offset cells?
>
> For example:
>
> Lookup value is:
> BAKER
>
> Table is:
> SMITH BAKER JONES BROWN BAKER HODGES
> 4 5 6 3 8 10
> 7 5 9 56 3 1
>
>
> I want a forumla that uses the Lookup "Baker" and SUMS the second row of 5+3
> to yield 8? Can I do this w/out using VBA? (He asked hopefully...)
>
> Thanks for any insight.
>
> Russ
>

 
Reply With Quote
 
=?Utf-8?B?eHJiYmFrZXI=?=
Guest
Posts: n/a
 
      20th Mar 2007
Cool Jan. thanks I just figured out another way, but very similar to yours.

Cheers!

"jan" wrote:

> Russ,
>
> =SUMPRODUCT(--(A1:F1="BAKER"),A2:F2)
>
> will do, if your data are in A1 to F3
>
> Jan
>
>
>

 
Reply With Quote
 
=?Utf-8?B?eHJiYmFrZXI=?=
Guest
Posts: n/a
 
      20th Mar 2007
Thanks Dave. Many ways to skin the cat!

"Dave Peterson" wrote:

> As a formula in your worksheet, you could use:
>
> =sumif($a$1:$x$1,"baker",$a2:$x2)
> or
> =sumif(sheet2!$a$1:$x$1,"baker",sheet2!$a2:$x2)
>
>
>
> xrbbaker wrote:
> >
> > How do I Lookup values from another sheet, knowing that there will be
> > multiple occurances of those values, and sum the offset cells?
> >
> > For example:
> >
> > Lookup value is:
> > BAKER
> >
> > Table is:
> > SMITH BAKER JONES BROWN BAKER HODGES
> > 4 5 6 3 8 10
> > 7 5 9 56 3 1
> >
> > I want a forumla that uses the Lookup "Baker" and SUMS the second row of 5+3
> > to yield 8? Can I do this w/out using VBA? (He asked hopefully...)
> >
> > Thanks for any insight.
> >
> > Russ

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Find" finds text but "Replace" doesn't Eric Microsoft Word Document Management 18 11th Nov 2009 06:47 AM
Selecting Multiple "Values" without lookup tables & Other question Rob Microsoft Access Forms 0 26th Mar 2009 02:48 AM
Access 2000 multiple "Finds" gives Invalid Argument error M Stanley Microsoft Access 2 12th Sep 2008 12:18 PM
i have about 100 worksheets, how do i "lookup" multiple criteria kp0250 Microsoft Excel Misc 8 27th Jul 2008 06:25 PM
How VBA Excel handling the Lookup with multiple "index"? =?Utf-8?B?Sm9oYW4yMDAw?= Microsoft Excel Programming 0 4th Nov 2006 03:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:38 AM.