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 / June 2006

Tip: Looking for answers? Try searching our database.

Match 2 criteria with 2 criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LJoe - 19 Jun 2006 17:21 GMT
I am looking for a function that will look at 2 criteria and then match the 2
on the other sheet to get the margin/ price.  In B and C, I have the market
and product type.  Following those is the pricing based on different pricing
groups (which have a different percent off list depending on who you are). On
sheet 2, I have market and product type in A and B.  These are followed by
the percent difference between the price groups.  I want to be able to
reference sheet 2 matching the market and product type to bring over the
correct price.  Any assistance would be excellent.  Thank You!!
VBA Noob - 19 Jun 2006 17:37 GMT
Can you post a example
LJoe - 19 Jun 2006 19:50 GMT
I ended up re-posting the question under index/ match formulas orice (price).
There's a chart set up there.  Thank you for the reply!

> Can you post a example.
Dave Peterson - 20 Jun 2006 03:07 GMT
=index(othersheet!$c$1:$c$100,
  match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet!$b$1:$b$100),0))

(all in one cell)

This is an array formula.  Hit ctrl-shift-enter instead of enter.  If you do it
correctly, excel will wrap curly brackets {} around your formula.  (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
  match(1,(a2=othersheet!$a$1:$a$100)
         *(b2=othersheet!$b$1:$b$100)
         *(c2=othersheet!$c$1:$c$100),0))

> I am looking for a function that will look at 2 criteria and then match the 2
> on the other sheet to get the margin/ price.  In B and C, I have the market
[quoted text clipped - 4 lines]
> reference sheet 2 matching the market and product type to bring over the
> correct price.  Any assistance would be excellent.  Thank You!!

Signature

Dave Peterson

LJoe - 20 Jun 2006 14:14 GMT
Thank you for the response!  Also, with the index, can I index cells A1:B100
or do I have to put in A1:A100, B1:B100?

> =index(othersheet!$c$1:$c$100,
>    match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet!$b$1:$b$100),0))
[quoted text clipped - 26 lines]
> > reference sheet 2 matching the market and product type to bring over the
> > correct price.  Any assistance would be excellent.  Thank You!!
LJoe - 22 Jun 2006 16:33 GMT
Thank you so much!!  It works perfecty!

> =index(othersheet!$c$1:$c$100,
>    match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet!$b$1:$b$100),0))
[quoted text clipped - 26 lines]
> > reference sheet 2 matching the market and product type to bring over the
> > correct price.  Any assistance would be excellent.  Thank You!!
Dave Peterson - 23 Jun 2006 03:26 GMT
A little testing, huh?

Glad you got your answer.

> Thank you so much!!  It works perfecty!
>
[quoted text clipped - 32 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

 
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



©2009 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.