How to dynamically populate columns with the delta values

jpravin

New Member
Joined
Jan 29, 2015
Messages
2
I have a worksheet with rows containing the following columns

Start ValueDurationEnd Value
14351121547
7024311133

<tbody>
</tbody>

Now i want the data in the duration column(which is essentially in milliseconds(ms) to be represented as below

0-100101-200201-300301-400401-500501-600601-700701-800801-900901-10001001-11001101-12001201-13001301-14001401-15001501-1600
6547
9810010010033

<tbody>
</tbody>

which represents the difference as progress in time along the columns.

Please help me with how to get this in a separate sheet

thanks in advance :)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi,
Are the data divided randomly or is there a specific ratio to respect? Hence why 65 - 47 and not 100-12?
 
Upvote 0
The data (difference) is not randomly spread but as per logic as explained below

For eg in 1st row for 1435 (start),112(difference) and 1547(end)

In the x axis for time in milliseconds ie 0 100...... 1400, 1500,1600...
the difference value is to be represented as spread across in splits between each 100th milliseconds.

Hence the difference value that needs to split in time slots 1400-1500, 1501- 1600 would be 65 and 47 respectively.

Hope I cleared your doubt.
 
Upvote 0
Not very elegant and certainly could be made faster:
Given in A1:

Excel 2013
ABCDEFGHIJKLMNOP
1Start ValueDurationEnd Value
214351121547
37024311133
456234290
5
6
70-100101-200201-300301-400401-500501-600601-700701-800801-900901-10001001-11001101-12001201-13001301-14001401-15001501-1600
86547
99810010010033
104410090
jpravin




Formula in A8 is =IF(AND($A2 > = TRIM(MID(SUBSTITUTE(A$7,"-",REPT(" ",19)),1*19-18,19))*1,$A2 < = TRIM(MID(SUBSTITUTE(A$7,"-",REPT(" ",19)),2*19-18,19))*1),100-$A2,"")copied down till needed.
Formula in B8 is <trim(mid(substitute(b$7,"-",rept(" ",19)),1*19-18,19))*1,"",if(and(isnumber(a8),$b2-sum($a8:a8)="">=IFERROR(IF($C2 < TRIM(MID(SUBSTITUTE(B$7,"-",REPT(" ",19)),1*19-18,19))*1,"",IF(AND(ISNUMBER(A8),$B2-SUM($A8:A8) > 100),100,IF(AND(ISNUMBER(A8),$B2-SUM($A8:A8),100),$B2-SUM($A8:A8),IF(AND($A2 > TRIM(MID(SUBSTITUTE(B$7,"-",REPT(" ",19)),1*19-18,19))*1,$A2 < TRIM(MID(SUBSTITUTE(B$7,"-",REPT(" ",19)),2*19-18,19))*1),TRIM(MID(SUBSTITUTE(B$7,"-",REPT(" ",19)),2*19-18,19))*1-$A2,"")))),"") Copied right and down till needed.</trim(mid(substitute(b$7,"-",rept(">
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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