Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Match Lookup question

Hey everyone, I am not sure what the best way is to handle this so I thought
that maybe some of you could help point me in the right direction. In my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d e
f
1 Promo1 Promo1 Promo2 Promo2 Promo2
2 Week1 Week2 Week3 Week4 Week5
3 Menu Item1 .2 .3 .15 .26 .16
4 Menu Item2 .4 .28 .56 .6
..68
5 Menu Item3 .25 .32 .45 .8 .15

And just to specifiy there are many more promo's and many more menu items in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific Menu Item based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default Match Lookup question

=SUMPRODUCT((Sheet1!B1:M1=A1)*(Sheet1!A3:A20=Sheet 2!B1)*(Sheet1!B3:M20))

adjust the ranges to suit

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Chad" wrote in message
...
Hey everyone, I am not sure what the best way is to handle this so I

thought
that maybe some of you could help point me in the right direction. In my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d e
f
1 Promo1 Promo1 Promo2 Promo2 Promo2
2 Week1 Week2 Week3 Week4 Week5
3 Menu Item1 .2 .3 .15 .26

..16
4 Menu Item2 .4 .28 .56 .6
.68
5 Menu Item3 .25 .32 .45 .8

..15

And just to specifiy there are many more promo's and many more menu items

in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific Menu Item

based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Match Lookup question

I can't figure out why the unary fails!

Might you explain Bob?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Bob Phillips" wrote in message
...
=SUMPRODUCT((Sheet1!B1:M1=A1)*(Sheet1!A3:A20=Sheet 2!B1)*(Sheet1!B3:M20))

adjust the ranges to suit

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Chad" wrote in message
...
Hey everyone, I am not sure what the best way is to handle this so I

thought
that maybe some of you could help point me in the right direction. In

my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d e
f
1 Promo1 Promo1 Promo2 Promo2 Promo2
2 Week1 Week2 Week3 Week4 Week5
3 Menu Item1 .2 .3 .15 .26

.16
4 Menu Item2 .4 .28 .56 .6
.68
5 Menu Item3 .25 .32 .45 .8

.15

And just to specifiy there are many more promo's and many more menu

items
in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific Menu Item

based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Match Lookup question

Ragdyer wrote:
I can't figure out why the unary fails!

Might you explain Bob?

[...]

SumProduct with the comma-syntax requires equally sized objects. Put
otherwise:

SumProduct(Vector1,Vector2,...)
SumProduct(Matrix1,Matrix2,...)

but not:

SumProduct(Vector1,Vector2,...,Matrix1,...)

If you switch to using the multiplication operator ("the star syntax"),
it behaves like MMult.

BTW, the OP's question doesn't require SumProduct at all.

"Bob Phillips" wrote in message
...

=SUMPRODUCT((Sheet1!B1:M1=A1)*(Sheet1!A3:A20=Sheet 2!B1)*(Sheet1!B3:M20))

adjust the ranges to suit

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Chad" wrote in message
...
Hey everyone, I am not sure what the best way is to handle this so I

thought
that maybe some of you could help point me in the right

direction. In
my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d

e
f
1 Promo1 Promo1 Promo2 Promo2

Promo2
2 Week1 Week2 Week3 Week4

Week5
3 Menu Item1 .2 .3 .15 .26

.16
4 Menu Item2 .4 .28 .56 .6
.68
5 Menu Item3 .25 .32 .45 .8

.15

And just to specifiy there are many more promo's and many more menu

items
in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific

Menu Item
based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Match Lookup question

Being an AVID proponent of using the asterisk form of SumProduct, mainly
because the "regular" asterisk syntax in these groups always exposes
(coerces) the numerical range to a mathematical operator, I would *never*
have attempted a unary solution to this post.

In fact, I answered a similar post a couple of days ago with almost the
exact same type solution:

http://tinyurl.com/gt8f3

Where the ranges varied.

The only reason I gave this thread a second thought was because Bob was the
author of the suggestion, and Bob doesn't use the asterisk form.
I just wondered why he did use it here, and I soon found out when I tried
the unary in his formula.

Thanks for the explanation.

Just another reason why I feel the asterisk form should be the primary
syntax of choice.<bg

--
Regards,

RD

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



"Aladin Akyurek" wrote in message
...
Ragdyer wrote:
I can't figure out why the unary fails!

Might you explain Bob?

[...]

SumProduct with the comma-syntax requires equally sized objects. Put
otherwise:

SumProduct(Vector1,Vector2,...)
SumProduct(Matrix1,Matrix2,...)

but not:

SumProduct(Vector1,Vector2,...,Matrix1,...)

If you switch to using the multiplication operator ("the star syntax"), it
behaves like MMult.

BTW, the OP's question doesn't require SumProduct at all.

"Bob Phillips" wrote in message
...

=SUMPRODUCT((Sheet1!B1:M1=A1)*(Sheet1!A3:A20=Sheet 2!B1)*(Sheet1!B3:M20))

adjust the ranges to suit

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Chad" wrote in message
...
Hey everyone, I am not sure what the best way is to handle this so
I
thought
that maybe some of you could help point me in the right

direction. In
my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d

e
f
1 Promo1 Promo1 Promo2 Promo2

Promo2
2 Week1 Week2 Week3 Week4

Week5
3 Menu Item1 .2 .3 .15 .26
.16
4 Menu Item2 .4 .28 .56 .6
.68
5 Menu Item3 .25 .32 .45 .8
.15

And just to specifiy there are many more promo's and many more menu

items
in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific

Menu Item
based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default Match Lookup question

If you recall my paper Rick, I say ... There is no situation that I know of
whereby a solution using -- could not be achieved somehow with a '*'.
Conversely, ...

This is one of those occasions.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"RagDyer" wrote in message
...
Being an AVID proponent of using the asterisk form of SumProduct, mainly
because the "regular" asterisk syntax in these groups always exposes
(coerces) the numerical range to a mathematical operator, I would *never*
have attempted a unary solution to this post.

In fact, I answered a similar post a couple of days ago with almost the
exact same type solution:

http://tinyurl.com/gt8f3

Where the ranges varied.

The only reason I gave this thread a second thought was because Bob was

the
author of the suggestion, and Bob doesn't use the asterisk form.
I just wondered why he did use it here, and I soon found out when I tried
the unary in his formula.

Thanks for the explanation.

Just another reason why I feel the asterisk form should be the primary
syntax of choice.<bg

--
Regards,

RD

--------------------------------------------------------------------------

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

-



"Aladin Akyurek" wrote in message
...
Ragdyer wrote:
I can't figure out why the unary fails!

Might you explain Bob?

[...]

SumProduct with the comma-syntax requires equally sized objects. Put
otherwise:

SumProduct(Vector1,Vector2,...)
SumProduct(Matrix1,Matrix2,...)

but not:

SumProduct(Vector1,Vector2,...,Matrix1,...)

If you switch to using the multiplication operator ("the star syntax"),

it
behaves like MMult.

BTW, the OP's question doesn't require SumProduct at all.

"Bob Phillips" wrote in message
...

=SUMPRODUCT((Sheet1!B1:M1=A1)*(Sheet1!A3:A20=Sheet 2!B1)*(Sheet1!B3:M20))

adjust the ranges to suit

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Chad" wrote in message
...
Hey everyone, I am not sure what the best way is to handle this

so
I
thought
that maybe some of you could help point me in the right

direction. In
my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d

e
f
1 Promo1 Promo1 Promo2 Promo2

Promo2
2 Week1 Week2 Week3 Week4

Week5
3 Menu Item1 .2 .3 .15 .26
.16
4 Menu Item2 .4 .28 .56 .6
.68
5 Menu Item3 .25 .32 .45 .8
.15

And just to specifiy there are many more promo's and many more

menu
items
in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific

Menu Item
based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default Match Lookup question

C1 on Sheet2:

=SUMIF($B$1:$F$1,A1,INDEX($B$3:$F$5,MATCH(B1,$A$3: $A$5,0),0))

Chad wrote:
Hey everyone, I am not sure what the best way is to handle this so I thought
that maybe some of you could help point me in the right direction. In my
worksheet (Sheet1) I have the following data:

Sheet1:

a b c d e
f
1 Promo1 Promo1 Promo2 Promo2 Promo2
2 Week1 Week2 Week3 Week4 Week5
3 Menu Item1 .2 .3 .15 .26 .16
4 Menu Item2 .4 .28 .56 .6
.68
5 Menu Item3 .25 .32 .45 .8 .15

And just to specifiy there are many more promo's and many more menu items in
my sheet so this is an oversimplification of the data.

That being said, I would like to sum the data for a specific Menu Item based
on which promo it falls under. For example:

Sheet2:

a b c
1 Promo2 Menu Item2 1.84


Any help on the best way to do this would be greatly appreciated.

Thanks in advance for all of your help.

Beset,
Chad

Reply
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
Lookup nearest value (Index & Match) [email protected] Excel Worksheet Functions 1 February 6th 06 04:57 PM
Lookup nearest value (Index & Match) [email protected] Excel Worksheet Functions 0 February 6th 06 04:29 PM
can lookup return err if no match found Kim Greenlaw Excel Worksheet Functions 12 January 12th 06 04:27 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM


All times are GMT +1. The time now is 08:21 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"