Stuck with Truncate and mod

Vtookup

Board Regular
Joined
May 30, 2017
Messages
124
Office Version
  1. 2016
  2. 2013
Hello.
I'm confused how to deal with E5 and F5. I know truncates, mod and ifs can be applied here, but still cannot get it. hoping to get help.
Thanks.
 

Attachments

  • 2024-05-04_0-40-22.png
    2024-05-04_0-40-22.png
    14.5 KB · Views: 10

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Can you explain in words what you are trying to accomplish?
 
Upvote 0
How about
Fluff.xlsm
ABCDEF
1
2
349049
4500
51010
6
7
81350
92727
Data
Cell Formulas
RangeFormula
D5D5=INT(B4/D3)
E5E5=INT((B4-D3*D5)/E3)
F5F5=B4-D3*D5-E3*E5
D9D9=INT(B8/D3)
E9E9=INT((B8-D3*D9)/E3)
F9F9=B8-D3*D9-E3*E9
 
Upvote 1
Solution
How about
Fluff.xlsm
ABCDEF
1
2
349049
4500
51010
6
7
81350
92727
Data
Cell Formulas
RangeFormula
D5D5=INT(B4/D3)
E5E5=INT((B4-D3*D5)/E3)
F5F5=B4-D3*D5-E3*E5
D9D9=INT(B8/D3)
E9E9=INT((B8-D3*D9)/E3)
F9F9=B8-D3*D9-E3*E9
Hello Fluff.
There's first time for everything. haven't use INT function before.
I'm about to check more of this online and Youtube.
Thank you very much for the help.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Hi, here's another option, the slight advantage here is that the results don't rely on the results of the previous calculations.

Book1
ABCDEF
1
2
349049
4500
51010
6
7
81350
92727
Sheet1
Cell Formulas
RangeFormula
D5,D9D5=INT(B4/$D$3)
E5,E9E5=INT(MOD(B4,$D$3)/$E$3)
F5,F9F5=MOD(MOD(B4,$D$3),$E$3)
 
Upvote 1
Hi, here's another option, the slight advantage here is that the results don't rely on the results of the previous calculations.

Book1
ABCDEF
1
2
349049
4500
51010
6
7
81350
92727
Sheet1
Cell Formulas
RangeFormula
D5,D9D5=INT(B4/$D$3)
E5,E9E5=INT(MOD(B4,$D$3)/$E$3)
F5,F9F5=MOD(MOD(B4,$D$3),$E$3)
Hello FormR

It's nice to have more options.
Originally I have TRUNC(B4/D3) on racks and just got lost in trays and pcs.
Have it been 2 columns like trays and pcs. TRUNC and MOD is my always go to functions
Thanks to Fluff's introduction to INT. and to your MOD application.
Now I have apply them to my past works and future works for shorter formulas.
Thanks Again.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top