Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
rhani111
 
Posts: n/a
Default Function for more than 1 criteria


Hi All,

If I have to create a function that returns a value but needs two sets
of criteria to return the value, HOW do I do this?

For example

Location Hole Depth Hole Type
Ramp 15 22 OB
Ramp 2 28 PS
Ramp 4 60 IB


The values to return (lookup) has to match the ramp number AND depth
between 15-25 and be a specific TYPE of hole ie OB.....

how can I get the formula to "lookup" whether it matches the three
criteria, look to another table to see what the rate should be...


--
rhani111
------------------------------------------------------------------------
rhani111's Profile: http://www.excelforum.com/member.php...o&userid=19940
View this thread: http://www.excelforum.com/showthread...hreadid=386331

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

You could try something like:

=vlookup(a2&b2&c2,lookuprange,4)

However, you'd have to have a lookup range that ALSO concatenates the 3
columns, and that has to be the first column in your lookup range.
*******************
~Anne Troy

www.OfficeArticles.com




"rhani111" wrote in
message ...

Hi All,

If I have to create a function that returns a value but needs two sets
of criteria to return the value, HOW do I do this?

For example

Location Hole Depth Hole Type
Ramp 15 22 OB
Ramp 2 28 PS
Ramp 4 60 IB


The values to return (lookup) has to match the ramp number AND depth
between 15-25 and be a specific TYPE of hole ie OB.....

how can I get the formula to "lookup" whether it matches the three
criteria, look to another table to see what the rate should be...


--
rhani111
------------------------------------------------------------------------
rhani111's Profile:

http://www.excelforum.com/member.php...o&userid=19940
View this thread: http://www.excelforum.com/showthread...hreadid=386331



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You might be able to use a Sumproduct formula:

=SUMPRODUCT(--(A1:A50=ramp_number),--(B1:B50=15),--(B1:B50<=25),--(C1:C50="OB"),Rate_to_Return)

Biff

"rhani111" wrote in
message ...

Hi All,

If I have to create a function that returns a value but needs two sets
of criteria to return the value, HOW do I do this?

For example

Location Hole Depth Hole Type
Ramp 15 22 OB
Ramp 2 28 PS
Ramp 4 60 IB


The values to return (lookup) has to match the ramp number AND depth
between 15-25 and be a specific TYPE of hole ie OB.....

how can I get the formula to "lookup" whether it matches the three
criteria, look to another table to see what the rate should be...


--
rhani111
------------------------------------------------------------------------
rhani111's Profile:
http://www.excelforum.com/member.php...o&userid=19940
View this thread: http://www.excelforum.com/showthread...hreadid=386331



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
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Using ADD function within DCOUNT criteria DaveF2002 Excel Discussion (Misc queries) 4 June 19th 05 09:48 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 05:04 AM.

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"