JetEscamilla
Board Regular
- Joined
- Apr 17, 2006
- Messages
- 91
- Office Version
- 2016
- Platform
- Windows
Hello, I have a need to pull approximate values by using an index/match type array function with multiple variables. I have output with the following column headings
Case Type - Min or Max
M3 - Number (this is what I want for output)
Girder # - Numbers 1 to 13 (These will be output in clusters and in order)
Girder Location (ft) - Number (again, will be in numerical order but with the girders, for example when girder is 2 these rows will start at 0 and work their way up, then girder 3, etc...)
My goal is to use the variables of Case, Girder, and Location to pull the approximate M3 force value closest to the location.
I've tried {Index(D3:D22, Match(Location,(CaseType=A3:A22)*(Girder=B3:B22)*(C3:C22),1)}
With Location = 12, CaseType = Max, Girder = 2 I should return 80 for my force. However this formula is always returning the last row of my index (row 22). I believe this is because the array that is made by my multiplication has zeros at the end. The match case I showed above would give {0,0,0,0,0,0,0,4,8,16,20,0,0,0,0,0,0,0,0}. Does index not work with trailing zeros in the array? My locations may not be exact matches, instead I always want to pull the row that is lower, never above.
Does anyone have a suggestion for another work around?
Case Type - Min or Max
M3 - Number (this is what I want for output)
Girder # - Numbers 1 to 13 (These will be output in clusters and in order)
Girder Location (ft) - Number (again, will be in numerical order but with the girders, for example when girder is 2 these rows will start at 0 and work their way up, then girder 3, etc...)
My goal is to use the variables of Case, Girder, and Location to pull the approximate M3 force value closest to the location.
I've tried {Index(D3:D22, Match(Location,(CaseType=A3:A22)*(Girder=B3:B22)*(C3:C22),1)}
With Location = 12, CaseType = Max, Girder = 2 I should return 80 for my force. However this formula is always returning the last row of my index (row 22). I believe this is because the array that is made by my multiplication has zeros at the end. The match case I showed above would give {0,0,0,0,0,0,0,4,8,16,20,0,0,0,0,0,0,0,0}. Does index not work with trailing zeros in the array? My locations may not be exact matches, instead I always want to pull the row that is lower, never above.
Does anyone have a suggestion for another work around?
A | B | C | D | |
1 | CaseType | Girder | Location | M3 |
2 | Text | Kip-ft | Kip-ft | |
3 | Max | 1 | 0 | 0 |
4 | Max | 1 | 4 | 33 |
5 | Max | 1 | 8 | 52 |
6 | Max | 1 | 12 | 48 |
7 | Max | 1 | 16 | 15 |
8 | Max | 1 | 20 | 0 |
9 | Max | 2 | 0 | 0 |
10 | Max | 2 | 4 | 40 |
11 | Max | 2 | 8 | 80 |
12 | Max | 2 | 16 | 74 |
13 | Max | 2 | 20 | 35 |
14 | Max | 2 | 24 | 0 |
15 | Max | 3 | 0 | 0 |
16 | Max | 3 | 4 | 14 |
17 | Max | 3 | 8 | 28 |
18 | Max | 3 | 12 | 17 |
19 | Max | 3 | 16 | 0 |
20 | Min | 1 | 0 | 0 |
21 | Min | 1 | 4 | -25 |
22 | Min | 1 | 8 | 0 |