mehidy1437
Active Member
- Joined
- Nov 15, 2019
- Messages
- 348
- Office Version
- 365
- 2016
- 2013
- Platform
- Windows
- Mobile
- Web
Hi Experts,
I need help with the below issue.
I have data in A2:D5, I will divide each cell by a value let say 40 or anything.
What I need is a bit different, kindly see the below example.
*** Range is not fixed
***Range will select through an input box & divided value will also get from another input box
My ultimate result is to get 16 from this example in VB
I need help with the below issue.
I have data in A2:D5, I will divide each cell by a value let say 40 or anything.
What I need is a bit different, kindly see the below example.
2233.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | S | M | L | XL | RESULT DIVIDED BY 40 | REQUREMENT | ULTIMATE RESULT | ||||||
2 | 1 | 80 | 40 | 0.025 | 0 | 2 | 1 | IF RESULT IS <1 OR PRIME NUMBER, THEN IT WILL COUNT 1 FOR FULL ROW RANGE | 1 | ||||
3 | 70 | 1 | 120 | 0 | 1.75 | 0.025 | 3 | IF RESULT IS >1 AND FRACTION NUMBER, THEN IT WILL COUNT 2 FOR EACH CELL | 3 | ||||
4 | 100 | 39 | 123 | 144 | 2.5 | 0.975 | 3.075 | 3.6 | 7 | ||||
5 | 1 | 120 | 100 | 100 | 0.025 | 3 | 2.5 | 2.5 | 5 | ||||
6 | 16 | ||||||||||||
Sheet3 (2) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:I5 | F2 | =A2/40 |
K3 | K3 | =1+2 |
K4 | K4 | =2+1+2+2 |
K5 | K5 | =1+2+2 |
K6 | K6 | =SUM(K2:K5) |
*** Range is not fixed
***Range will select through an input box & divided value will also get from another input box
My ultimate result is to get 16 from this example in VB