Formula required for a data range

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,215
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
MATCH.xlsx
DEFGHIJKL
440829.99305040799.9940750
54083130504080140800
64080030504077040750
74090025604087540840
84100020704098040930
941000.01106040990.0140930
Sheet1
Cell Formulas
RangeFormula
J4:J9J4=D4-F4

Formula required for L4:L9 please
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Care to explain what you are after?
 
Upvote 0
Looking at column L, it looks like maybe you want some sort of "round down" functionality.
But we cannot tell what values to round down to, based on your examples.
I do not see any discernable pattern, so I think you will need to explain it to us.
 
Upvote 0
Care to explain what you are after?
I’ll try to explain my requirement (in raw language, please excuse me for this):

Consider D4 & arrive at a value (for reference sake I’ll call here new D4) which has FIRST 3 digits of D4 & then suffixed by 00.
Subtract F4 from D4
IF D4-F4<new D4 then ROUNDDOWN or FLOOR the integer value of (new D4-H4) to nearest multiple of H4 with respect to new D4
IF D4-F4>=new D4 then ROUNDDOWN or FLOOR the integer value of (D4-F4) to nearest multiple of H4 with respect to new D4
 
Upvote 0
I'm afraid I am none the wiser, can you post the expected results?
 
Upvote 0
I'm afraid I am none the wiser, can you post the expected results?
MATCH.xlsx
DEFGHIJKL
2ChangedAdded Helper column
3
440829.9930504080040799.9940750
5408313050408004080140800
6408003050408004077040750
7409002560408604087540860
8410002070409504098040950
941000.0110604098040990.0140980
Sheet1
Cell Formulas
RangeFormula
J4:J9J4=FLOOR(D4,H4)
K4:K9K4=D4-F4
L4:L9L4=IF(K4<J4,J4-H4,J4)

Explaining THE REQUIREMENT (needed in Excel) is sometimes ‘more difficult’ than to solve.
Anyway, I changed the formula of J column & ADDED 1 helper column K column to derive my requirement (in L column), somehow.
Can the formulas be stitched to make a consolidated one?
 
Upvote 0
How about
Excel Formula:
=IF((D4-F4)<FLOOR(D4,H4),FLOOR(D4,H4)-H4,FLOOR(D4,H4))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,652
Members
449,245
Latest member
PatrickL

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