Help with dynamically dividing and adding

JakkeJakobsen

Board Regular
Joined
Sep 10, 2014
Messages
94
So, I am working with a sheet that has a certain number in each column KL-LM, only if the number in JX is different from the one in the row above. So JX3 is 1850, that means KL to LM will have this number times a factor. In JX43 there is 1450. Now as you can see in the screenshot, KF3 is 6607, and KF43 is 4028. Now, what I want to happen is a linear reduction from KF3 to KF43, so basically there are 38 rows between that should have 6607-4028/rownumber+3 (or there abouts).

But I am unsure how to do this in formulas. This is 100% dynamic, meaning it doesn't have to be 1850 and 1450 in JX, and it doesn't have to be JX3 and JX43 (well it must be JX3 as it is the start). Further down this also happens, JX64 is 1350, so KF64 is 3750.

98dAbew.jpg

Here is how the sheet looks like.

The reason I am doing this is to use Excel to "draw" an image of a bowling lane, to show where the oil on the lane is put down. Since this is done with a machine with a high rpm brush, it gets dragged down the lane and smoothed out, so where the machine puts the oil down isn't equal to where the oil is when the lane is done being conditioned with said oil and machine.
waWAycI.jpg

This is how the sheet looks like with the raw data put in.

blue%20oil%20lanes.jpg

This is how the oil looks like on the lanes in professional bowling as seen on TV. Us mortals don't have access to the blue additive, so for us it is invisible. That is why sheets like the one I made are used to show where the oil is put down, so the players can adjust accordingly. Quick intro: Longer oil means you have to play straighter, shorter means more violent hook, but the width of the pattern also decides where you play, a wide short pattern forces players to play down the edge, while a more narrow pattern lets players play deeper in the lane, hooking it more. The difficulty of a pattern is the ratio between the center and the edge of the lane, sideways. Lengthwise most patterns are around 1/5 to 1/3 in ratio, 3 times more in the start than the end of the pattern.

Cheers for any help!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
DN863FS.jpg


This is how it would look from the side on board 20 (column KT). I need a way to fill in the values between each of the numbers I provided, while the position of them downwards is dynamic.
 
Upvote 0
I was thinking a bit, and this way is just as easy I think, as I use these numbers to multiply the matrix/array I got anyways, so we can use a single column to calculate these. Provided two examples to show how these numbers can appear: Totally random in amount (not totally random, but lets assume that), and totally random in row-number (this is completely random between row 3 and row 243.[TABLE="class: grid, width: 320"]
<tbody>[TR]
[TD]1850[/TD]
[TD]The initial value[/TD]
[/TR]
[TR]
[TD]1783.32[/TD]
[TD]These values need to be calculated.[/TD]
[/TR]
[TR]
[TD]1716.66[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1649.99[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1583.33[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1516.66[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1450[/TD]
[TD]2nd value[/TD]
[/TR]
[TR]
[TD]1350[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1250[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1150[/TD]
[TD]3rd value[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 320"]
<tbody>[TR]
[TD]1850[/TD]
[TD]The initial value[/TD]
[/TR]
[TR]
[TD]1650[/TD]
[TD]These values need to be calculated.[/TD]
[/TR]
[TR]
[TD]1450[/TD]
[TD]2nd value[/TD]
[/TR]
[TR]
[TD]1392.84[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1335.7[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1278.56[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1221.42[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1164.25[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1107.14[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]1050[/TD]
[TD]3rd value[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,739
Messages
6,180,676
Members
452,993
Latest member
FDARYABEE

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