PuntingJawa
Board Regular
- Joined
- Feb 25, 2021
- Messages
- 158
- Office Version
- 365
- 2019
- Platform
- Windows
I would like to try a couple of functions along the lines of the following but no matter what combination I can't seem to get it to work due to lack of knowledge on patterns and restrictions of =IF formula combinations. So I am open to suggestions and changes.
1. If C4 is positive subtract that amount from 1272. The remaining gets divided by G4 which should leave the quantity or less than H4 has.
If the final is even then half would show in I4 and half in J4.
If odd then the even half to I4 and the odd to J4.
If the item has a decimal, I would like to round down to the nearest whole.
2. If C4 is negative it should show zero in I4/J4.
Are my criteria viable or are there other formulas that would be better suited to what I am trying t accomplish?
1. If C4 is positive subtract that amount from 1272. The remaining gets divided by G4 which should leave the quantity or less than H4 has.
If the final is even then half would show in I4 and half in J4.
If odd then the even half to I4 and the odd to J4.
If the item has a decimal, I would like to round down to the nearest whole.
2. If C4 is negative it should show zero in I4/J4.
Are my criteria viable or are there other formulas that would be better suited to what I am trying t accomplish?
Book2 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | |||
2 | REQ Total | Req Per | QTY | ||||||||||||
3 | |||||||||||||||
4 | 252 | 1020 | X | X | 42 | 6 | 3 | 3 | X | X | X | X | |||
5 | 0 | 1020 | X | X | 44 | 0 | 0 | 0 | X | X | X | X | |||
6 | 70 | 950 | 1272 | 1272 | 70 | 1 | 0.5 | 0.5 | 0 | 0 | |||||
7 | 1560 | -610 | 662 | 1272 | 65 | 24 | 7.307692 | 7.307692 | -4.83077 | ||||||
8 | 96 | -706 | -44 | 1228 | 96 | 1 | 0 | 0 | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I4:I5 | I4 | =IF(C4<0,0,B4/G4/2) |
J4:J5 | J4 | =IF(C4<0,0,B4/G4/2) |
C4 | C4 | =1272-B4 |
C5:C8 | C5 | =C4-B5 |
D6:E6 | D6 | =IF(C6>0,0,C6)+1272 |
D7:E8 | D7 | =IF(C7>0,0,C7)+D6 |
I6 | I6 | =IF(C5<0,0,B6/G6/2) |
J6 | J6 | =IF(C5<0,0,B6/G6/2) |
K6 | K6 | =IF(D6>0,0,D6/G7/2) |
L6 | L6 | =IF(D6>0,0,D6/G7/2) |
I7 | I7 | =IF(C6<0,0,C6/G7/2)*ROUNDDOWN(1,1) |
J7:J8 | J7 | =IF(C6<0,0,C6/G7/2) |
K7 | K7 | =IF(D6<0,0,D6/G7/2)-(I7+J7) |
I8 | I8 | =IF(C7<0,0,C7/G7/2) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
E4:E8 | Cell Value | <0 | text | NO |
E4:E8 | Cell Value | between 0 and 9999 | text | NO |
D4:D8 | Cell Value | <0 | text | NO |
C4:C8 | Cell Value | <0 | text | NO |
D4:D8 | Cell Value | between 0 and 9999 | text | NO |
C4:C8 | Cell Value | between 0 and 9999 | text | NO |