Re: Summing vlookups?
From: Peo Sjoblom (PeoSjoblom_at_discussions.microsoft.com)
Date: 12/17/04
- Next message: Patti: "Re: Summing vlookups?"
- Previous message: Patti: "Re: Summing vlookups?"
- In reply to: Patti: "Re: Summing vlookups?"
- Next in thread: Patti: "Re: Summing vlookups?"
- Reply: Patti: "Re: Summing vlookups?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 11:23:01 -0800
You can still do it, assume the named range is MyTable, then use
=SUMPRODUCT(--(INDEX(MyTable,,1)=B1),INDEX(MyTable,,B2))
the first 1 in index tells it to find the match in the first column just
like in a vlookup, then B2 tells what column to sum where A is the lookup
value
Regards,
Peo Sjoblom
"Patti" wrote:
> Thanks for the quick reply Frank, but the number in cell B2 is the column for
> the Vlookup and it changes. The problem that I had with the simple SumIf is
> that the column to sum will change.
>
> "Frank Kabel" wrote:
>
> > Hi
> > try something like
> > =SUMIF('sheet1'!A1:A100,B2,'sheet1'!B1:B100)
> >
> > --
> > Regards
> > Frank Kabel
> > Frankfurt, Germany
> > "Patti" <Patti@discussions.microsoft.com> schrieb im Newsbeitrag
> > news:774121E7-9E21-462E-BFB7-4E6723667E8E@microsoft.com...
> > > I'm stuck! Here's what I'm trying to do:
> > >
> > > Vlookup($B$1,Named Range,$B$2,False)
> > >
> > > This works, but there's more than one match for $B$1 in column A. I want
> > > to
> > > sum the values in the column indicated in cell B2 if the data in column A
> > > match the data in cell B1 --
> > >
> > > Sumif(A:A,B1,[Column indicated in cell B2])
> > >
> > > The problem is that the column with the values to be summed will change,
> > > so
> > > a simple Sumif won't work. Thanks!
> >
> >
> >
- Next message: Patti: "Re: Summing vlookups?"
- Previous message: Patti: "Re: Summing vlookups?"
- In reply to: Patti: "Re: Summing vlookups?"
- Next in thread: Patti: "Re: Summing vlookups?"
- Reply: Patti: "Re: Summing vlookups?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|