Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
galv2
 
Posts: n/a
Default Lookup Function and Match

Hey
Im a final yr degree student .
Loading (KN)
4kN 5kN 6kN 7kN
Depth
100 2.5 2.3 2.4 2.5
150 2.9 2.5 2.7 2.8
200 2.6 2.7 2.4 2.2
250 2.7 2.7 2.7 2.7

The Left Hand Column contains the Depth of the Slab Required in mm
The Top Row is The MAX Loading Applied in Kn
The internal values are the distance the slab must span in metres

My problem is that if I were to pick a load value of 6kn over a slab
distance of 2.6m then i would like it to return the corresponding slab depth;
in this case 150mm or 250mm is sufficent. Similarily if i was to choose a
load of 7Kn and a slab span of 2.8m then it would return a depth value of
150mm
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default Lookup Function and Match

With your posted example in A1 to E5, and your slab distance entered in F1,
and your Kn load entered in F2, try this *array* formula:

=INDEX(A1:A5,MAX(IF((A2:E5=F1)*(A1:E1=F2),ROW(2:5 ))))

*OR*

=INDEX(A1:A5,MAX(IF((A2:E5<=F1)*(A1:E1=F2),ROW(2:5 ))))

Which ever one comes closer to your specs.
--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter, instead of
the regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"galv2" wrote in message
...
Hey
Im a final yr degree student .
Loading (KN)
4kN 5kN 6kN 7kN
Depth
100 2.5 2.3 2.4 2.5
150 2.9 2.5 2.7 2.8
200 2.6 2.7 2.4 2.2
250 2.7 2.7 2.7 2.7

The Left Hand Column contains the Depth of the Slab Required in mm
The Top Row is The MAX Loading Applied in Kn
The internal values are the distance the slab must span in metres

My problem is that if I were to pick a load value of 6kn over a slab
distance of 2.6m then i would like it to return the corresponding slab

depth;
in this case 150mm or 250mm is sufficent. Similarily if i was to choose a
load of 7Kn and a slab span of 2.8m then it would return a depth value of
150mm


  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Lookup Function and Match

Try this:

First, create this table in Cells A1:E5

Depth 4kN 5kN 6kN 7kn
100 2.5 2.3 2.4 2.5
150 2.9 2.5 2.7 2.8
200 2.6 2.7 2.4 2.2
250 2.7 2.7 2.7 2.7


Select that range
InsertNamesCreate
Check:Top Row and Click OK

You'll now have these range names: Depth, _4Kn, _5Kn, _6Kn, _7Kn

F1: 2.6
G1: 6Kn
H1: 1
H2: 2
H3: 3
H4: 4

I1: =LARGE(--(--((INDIRECT("_"&$G$1)=$F$1)*(ROW(Depth)-1))0)*Depth,H1)
Note: Commit that array formula by Holding down [Ctrl][Shift] when you press
enter

Copy that formula down to I4

Changing combination of distance and load should return valid depths.
2.6 and 6kn returns: 250 and 150
2.8 and 7Kn returns: 150
2.5 and 7Kn returns: 250, 150, and 100

Does that do what you want?

***********
Regards,
Ron

XL2002, WinXP-Pro


"galv2" wrote:

Hey
Im a final yr degree student .
Loading (KN)
4kN 5kN 6kN 7kN
Depth
100 2.5 2.3 2.4 2.5
150 2.9 2.5 2.7 2.8
200 2.6 2.7 2.4 2.2
250 2.7 2.7 2.7 2.7

The Left Hand Column contains the Depth of the Slab Required in mm
The Top Row is The MAX Loading Applied in Kn
The internal values are the distance the slab must span in metres

My problem is that if I were to pick a load value of 6kn over a slab
distance of 2.6m then i would like it to return the corresponding slab depth;
in this case 150mm or 250mm is sufficent. Similarily if i was to choose a
load of 7Kn and a slab span of 2.8m then it would return a depth value of
150mm

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
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
I want to use the MATCH function with the AVERAGE function but I . Miguel Excel Worksheet Functions 2 April 23rd 05 05:29 PM
Lookup Function - Specific Values Steve Elliott Excel Worksheet Functions 6 April 9th 05 07:15 PM
Match Function arguments Stan Altshuller Excel Worksheet Functions 3 March 11th 05 08:48 PM
Lookup then Match and insert value from next column Tenacity Excel Worksheet Functions 3 March 4th 05 02:49 AM


All times are GMT +1. The time now is 07:54 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"