Need help about formula

ybr_15

Board Regular
Joined
May 24, 2016
Messages
204
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Hi, I need help with the sum of dividing values. I am a little confused to explain it, so I use the following table. In general, I want to get values based on division of 4 and/or 2. In the 'Result' column are the results I want. Can I be helped by a formula so that I don't need to create a dummy table like the one in the table? Thank you
Book1
HIJKLMNOPQ
20ValueDivide by 4WholeDecimalWhole (Decimal)Divide by 2 (or not)WholeDecimalWhole (Decimal)Result
21358.7580.7531.510.5110
2216440000004
2371.7510.7531.510.513
247418.5180.52110019
2544111100000011
265112.75120.7531.510.5114
276716.75160.7531.510.5118
2816440000004
296115.25150.251110016
3092.2520.25111003
314711.75110.7531.510.5113
3240101000000010
334511.25110.251110012
34307.570.5211008
Sheet1
Cell Formulas
RangeFormula
I21:I34I21=H21/4
J21:J34,N21:N34J21=TRUNC(I21)
K21:K34,O21:O34K21=I21-TRUNC(J21)
L21:L34L21=K21*4
M21:M34M21=IF(L21>1,L21/2,L21)
P21:P34P21=O21*2
Q21:Q34Q21=J21+N21+P21
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Does the following work

=INT(H21/4)+ROUNDUP(MOD(H21/4,1)*2,0)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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