Spartanjuli1
New Member
- Joined
- Sep 13, 2016
- Messages
- 13
- Office Version
- 365
- Platform
- Windows
Hello everyone,
I have a challenge for you
In the table below, I would like to have a formula (going from D5 to D19) which is giving me the closest upper "Total Hours" value when the C column is in state "TRUE".
Some formulas were tried, but it was always giving me B17 results instead of B14 cell.
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
Thank you a lot !
Julien
****** id="cke_pastebin" style="position: absolute; top: 318px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
<tbody>
</tbody></body>
I have a challenge for you
In the table below, I would like to have a formula (going from D5 to D19) which is giving me the closest upper "Total Hours" value when the C column is in state "TRUE".
Some formulas were tried, but it was always giving me B17 results instead of B14 cell.
- Do you have any ideas ??
A | B | C | D | |
1 | Total Years | Total Hours | ||
2 | 3 | 3650 | ||
3 | ||||
4 | Total Years | Total Hours | "A5 <= $A$2 ?" | "Closest upper value $B$2" |
5 | 2 | 1000 | TRUE | IF A5 <= $A$2 THEN return closest upper value WHERE (B2 <= B5:B19) |
6 | 2 | 1500 | TRUE | FALSE |
7 | 2 | 2000 | TRUE | FALSE |
8 | 2 | 2400 | TRUE | FALSE |
9 | 2 | 3000 | TRUE | FALSE |
10 | 3 | 1500 | TRUE | FALSE |
11 | 3 | 2250 | TRUE | FALSE |
12 | 3 | 3000 | TRUE | FALSE |
13 | 3 | 3600 | TRUE | FALSE |
14 | 3 | 4500 | TRUE | TRUE (because 4500 is the closest upper value to B2) |
15 | 4 | 2000 | FALSE | FALSE |
16 | 4 | 3000 | FALSE | FALSE |
17 | 4 | 3700 | FALSE | FALSE |
18 | 4 | 4800 | FALSE | FALSE |
19 | 4 | 6000 | FALSE | FALSE |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
Thank you a lot !
Julien
****** id="cke_pastebin" style="position: absolute; top: 318px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
IF A5 <= $A$2 THEN return closest upper value WHERE (B2 <= B5:B19) |
<tbody>
</tbody>