Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Multiple Criteria Lookup

Hi,

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

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.

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

Can anyone help please ? :)

Thanks

Jim
Attached Files
File Type: zip Multiple Criteria Lookup.zip (23.9 KB, 65 views)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Multiple Criteria Lookup

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,R ates!$H$6:$H$274,0)),IF(C10="Night Shift",INDEX(Rates!$D$6:$D$274,MATCH(A10&"|"&B10,R ates!$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
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Multiple Criteria Lookup

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,R ates!$H$6:$H$274,0)),IF(C10="Night Shift",INDEX(Rates!$D$6:$D$274,MATCH(A10&"|"&B10,R ates!$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
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by Claus Busch View Post
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,R ates!$H$6:$H$274,0)),IF(C10="Night Shift",INDEX(Rates!$D$6:$D$274,MATCH(A10&"|"&B10,R ates!$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
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Thanks Claus that works great !

Appreciate your time !
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 and multiple criteria aprendiz Excel Worksheet Functions 0 February 15th 10 03:19 PM
Lookup with multiple criteria Ivan Excel Discussion (Misc queries) 5 March 5th 09 06:26 PM
Lookup by multiple criteria? muster Excel Worksheet Functions 4 March 13th 07 06:32 PM
Lookup using multiple sheets and multiple criteria, sorry if 2 pos kjguillermo Excel Worksheet Functions 4 January 16th 07 03:21 AM
Lookup using multiple sheets and multiple criteria kjguillermo Excel Discussion (Misc queries) 2 January 14th 07 10:28 AM


All times are GMT +1. The time now is 12:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"