Help!

Multiple Lookup with Criteria

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions RSS
Next:  standard error of regression coefficient  
Author Message
RYGUY30
External


Since: Nov 02, 2009
Posts: 1



PostPosted: Mon Nov 02, 2009 2:05 pm    Post subject: Multiple Lookup with Criteria
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

Hi,
I am trying to do a lookup and having problems! Multiple Companies with
multiple products with different prepay dates. Wanting to use today's date
as the main criteria and return the correct % based if the order was placed
prior to the date below here is the example:

DATE IS 10/15 ON ORDER WANT IT TO LOOKUP PROD A/MFG A / CASH AND CHECK WHICH
DATE IS > THEN 10/15 AND RETURN THE CORRECT % FOR A DISCOUNT

PROD A MFG A CASH 10/10/09 10%
PROD A MFG A CASH 11/10/09 8%
PROD B MFG A CASH 10/10/09 10%
PROD B MFG B CASH 11/15/09 7%
PROD B MFG A CR CARD 11/15/09 6%

HELP
Back to top
Jacob Skaria
External


Since: Mar 04, 2009
Posts: 441



PostPosted: Mon Nov 02, 2009 5:56 pm    Post subject: RE: Multiple Lookup with Criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

With date 10/15 in cell F1 and your data in colA:E try the below array
formula. You create array formulas in the same way that you create other
formulas, except you press CTRL+SHIFT+ENTER to enter the formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula>}"

=INDEX(E1:E10,SMALL(IF((A1:A10="Prod A")*(B1:B10="MFG a")*
(C1:C10="Cash")*(D1:D10>F1),ROW(A1:A10)),1))

If this post helps click Yes
---------------
Jacob Skaria


"RYGUY30" wrote:

> Hi,
> I am trying to do a lookup and having problems! Multiple Companies with
> multiple products with different prepay dates. Wanting to use today's date
> as the main criteria and return the correct % based if the order was placed
> prior to the date below here is the example:
>
> DATE IS 10/15 ON ORDER WANT IT TO LOOKUP PROD A/MFG A / CASH AND CHECK WHICH
> DATE IS > THEN 10/15 AND RETURN THE CORRECT % FOR A DISCOUNT
>
> PROD A MFG A CASH 10/10/09 10%
> PROD A MFG A CASH 11/10/09 8%
> PROD B MFG A CASH 10/10/09 10%
> PROD B MFG B CASH 11/15/09 7%
> PROD B MFG A CR CARD 11/15/09 6%
>
> HELP
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum