Multiple Criteria Lookup

J

JIMCREWE

Hi,

I have a sheet in which I am trying to use mutliple criteria to define
result.

The premis is that a Company is selected in Col A, then a Role i
selected in Col B, then a Shift Time is selected in Col B, this wil
then generate the relevant hourly rate using a table of rates on th
second worksheet.

The formula works sort of for the first entry but once I start to mix u
the Company / Role / Shift Time info it does not calc, same when copyin
down the sheet.

Can anyone help please ? :)

Thanks

Ji

+-------------------------------------------------------------------
|Filename: Multiple Criteria Lookup.zip
|Download: http://www.excelbanter.com/attachment.php?attachmentid=628
+-------------------------------------------------------------------
 
C

Claus Busch

Hi Jim,

Am Thu, 18 Oct 2012 12:30:30 +0000 schrieb JIMCREWE:
The premis is that a Company is selected in Col A, then a Role is
selected in Col B, then a Shift Time is selected in Col B, this will
then generate the relevant hourly rate using a table of rates on the
second worksheet.

in F10 try:
=IF(C10="Day Shift",INDEX(Rates!$C$6:$C$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),IF(C10="Night Shift",INDEX(Rates!$D$6:$D$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),IF(C10="Weekend",INDEX(Rates!$E$6:$E$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),"Data Not Found")))


Regards
Claus Busch
 
C

Claus Busch

Hallo Jim,

Am Thu, 18 Oct 2012 16:05:59 +0200 schrieb Claus Busch:
in F10 try:
=IF(C10="Day Shift",INDEX(Rates!$C$6:$C$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),IF(C10="Night Shift",INDEX(Rates!$D$6:$D$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),IF(C10="Weekend",INDEX(Rates!$E$6:$E$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),"Data Not Found")))

a little bit shorter:
=IFERROR(INDEX(IF(C10="Day Shift",Rates!$C$6:$C$274,IF(C10="Night Shift",Rates!$D$6:$D$274,Rates!$E$6:$E$274)),MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),"Data Not Found")


Regards
Claus Busch
 
J

JIMCREWE

Claus said:
Hallo Jim,

Am Thu, 18 Oct 2012 16:05:59 +0200 schrieb Claus Busch:
-
Shift",INDEX(Rates!$C$6:$C$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),IF(C10="Nigh
Shift",INDEX(Rates!$D$6:$D$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),IF(C10="Weekend",INDEX(Rates!$E$6:$E$274,MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),"Dat
Not Found")))-

a little bit shorter:
=IFERROR(INDEX(IF(C10="Day Shift",Rates!$C$6:$C$274,IF(C10="Nigh
Shift",Rates!$D$6:$D$274,Rates!$E$6:$E$274)),MATCH(A10&"|"&B10,Rates!$H$6:$H$274,0)),"Dat
Not Found")


Regards
Claus Busch

Thanks Claus that works great !

Appreciate your time

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top