Getting a #DIV/0!I had some things backwards above. So, I seeded the tank contents in descending order.
this may look better:
Mr excel questions 39.xlsm
A B C D 1 timestamp(CDT) Bulk Tank Day 2 2023-05-25 00:00 3,543.684 2023-05-25 2883.350433 3 2023-05-25 00:15 3,481.526 2023-05-26 539.4528357 4 2023-05-25 00:30 3,423.444 2023-05-27 98.78095707 5 2023-05-25 00:45 3,357.695 2023-05-28 6 2023-05-25 01:00 3,295.218 7 2023-05-25 01:15 3,239.219 8 2023-05-25 01:30 3,181.075 9 2023-05-25 01:45 3,127.670 10 2023-05-25 02:00 3,071.047 11 2023-05-25 02:15 3,009.704 12 2023-05-25 02:30 2,953.658 13 2023-05-25 02:45 2,907.594 14 2023-05-25 03:00 2,861.550 15 2023-05-25 03:15 2,806.744 16 2023-05-25 03:30 2,763.302 17 2023-05-25 03:45 2,718.554 18 2023-05-25 04:00 2,671.225 19 2023-05-25 04:15 2,621.220 20 2023-05-25 04:30 2,578.079 21 2023-05-25 04:45 2,537.090 22 2023-05-25 05:00 2,489.378 23 2023-05-25 05:15 2,448.983 24 2023-05-25 05:30 2,408.421 25 2023-05-25 05:45 2,369.325 26 2023-05-25 06:00 2,322.043 27 2023-05-25 06:15 2,277.456 28 2023-05-25 06:30 2,233.533 29 2023-05-25 06:45 2,193.327 30 2023-05-25 07:00 2,160.076 31 2023-05-25 07:15 2,122.096 32 2023-05-25 07:30 2,090.101 33 2023-05-25 07:45 2,057.172 34 2023-05-25 08:00 2,020.368 35 2023-05-25 08:15 1,988.729 36 2023-05-25 08:30 1,956.276 37 2023-05-25 08:45 1,918.235 38 2023-05-25 09:00 1,880.979 39 2023-05-25 09:15 1,849.040 40 2023-05-25 09:30 1,821.186 41 2023-05-25 09:45 1,792.604 42 2023-05-25 10:00 1,765.008 43 2023-05-25 10:15 1,737.434 44 2023-05-25 10:30 1,709.425 45 2023-05-25 10:45 1,675.923 46 2023-05-25 11:00 1,648.149 47 2023-05-25 11:15 1,620.518 48 2023-05-25 11:30 1,593.028 49 2023-05-25 11:45 1,564.644 50 2023-05-25 12:00 1,537.275 51 2023-05-25 12:15 1,509.294 52 2023-05-25 12:30 1,481.326 53 2023-05-25 12:45 1,451.944 54 2023-05-25 13:00 1,423.428 55 2023-05-25 13:15 1,399.174 56 2023-05-25 13:30 1,374.462 57 2023-05-25 13:45 1,351.779 58 2023-05-25 14:00 1,327.644 59 2023-05-25 14:15 1,306.928 60 2023-05-25 14:30 1,282.221 61 2023-05-25 14:45 1,257.867 62 2023-05-25 15:00 1,234.237 63 2023-05-25 15:15 1,212.420 64 2023-05-25 15:30 1,188.988 65 2023-05-25 15:45 1,169.669 66 2023-05-25 16:00 1,151.749 67 2023-05-25 16:15 1,129.315 68 2023-05-25 16:30 1,110.815 69 2023-05-25 16:45 1,093.057 70 2023-05-25 17:00 1,071.972 71 2023-05-25 17:15 1,051.794 72 2023-05-25 17:30 1,035.846 73 2023-05-25 17:45 1,019.684 74 2023-05-25 18:00 1,001.477 75 2023-05-25 18:15 985.945 76 2023-05-25 18:30 969.944 77 2023-05-25 18:45 953.126 78 2023-05-25 19:00 936.942 79 2023-05-25 19:15 919.641 80 2023-05-25 19:30 901.791 81 2023-05-25 19:45 887.483 82 2023-05-25 20:00 870.422 83 2023-05-25 20:15 854.003 84 2023-05-25 20:30 839.062 85 2023-05-25 20:45 825.233 86 2023-05-25 21:00 812.463 87 2023-05-25 21:15 799.998 88 2023-05-25 21:30 786.141 89 2023-05-25 21:45 772.974 90 2023-05-25 22:00 758.446 91 2023-05-25 22:15 745.195 92 2023-05-25 22:30 733.432 93 2023-05-25 22:45 720.713 94 2023-05-25 23:00 709.510 95 2023-05-25 23:15 695.898 96 2023-05-25 23:30 684.321 97 2023-05-25 23:45 671.477 98 2023-05-26 00:00 660.334 99 2023-05-26 00:15 649.796 100 2023-05-26 00:30 638.543 101 2023-05-26 00:45 626.526 102 2023-05-26 01:00 616.706 103 2023-05-26 01:15 606.068 104 2023-05-26 01:30 594.212 105 2023-05-26 01:45 582.400 106 2023-05-26 02:00 573.168 107 2023-05-26 02:15 562.428 108 2023-05-26 02:30 552.770 109 2023-05-26 02:45 542.009 110 2023-05-26 03:00 531.185 111 2023-05-26 03:15 521.546 112 2023-05-26 03:30 513.633 113 2023-05-26 03:45 505.478 114 2023-05-26 04:00 497.394 115 2023-05-26 04:15 487.907 116 2023-05-26 04:30 479.983 117 2023-05-26 04:45 472.192 118 2023-05-26 05:00 464.580 119 2023-05-26 05:15 455.750 120 2023-05-26 05:30 448.539 121 2023-05-26 05:45 440.665 122 2023-05-26 06:00 432.816 123 2023-05-26 06:15 425.686 124 2023-05-26 06:30 417.535 125 2023-05-26 06:45 410.638 126 2023-05-26 07:00 403.995 127 2023-05-26 07:15 396.040 128 2023-05-26 07:30 389.116 129 2023-05-26 07:45 382.132 130 2023-05-26 08:00 374.628 131 2023-05-26 08:15 368.145 132 2023-05-26 08:30 361.310 133 2023-05-26 08:45 355.041 134 2023-05-26 09:00 349.219 135 2023-05-26 09:15 342.345 136 2023-05-26 09:30 336.263 137 2023-05-26 09:45 329.960 138 2023-05-26 10:00 324.835 139 2023-05-26 10:15 318.774 140 2023-05-26 10:30 313.177 141 2023-05-26 10:45 308.057 142 2023-05-26 11:00 303.320 143 2023-05-26 11:15 297.707 144 2023-05-26 11:30 292.744 145 2023-05-26 11:45 286.902 146 2023-05-26 12:00 281.424 147 2023-05-26 12:15 276.664 148 2023-05-26 12:30 271.995 149 2023-05-26 12:45 267.291 150 2023-05-26 13:00 262.175 151 2023-05-26 13:15 257.836 152 2023-05-26 13:30 253.037 153 2023-05-26 13:45 248.602 154 2023-05-26 14:00 244.132 155 2023-05-26 14:15 240.252 156 2023-05-26 14:30 235.912 157 2023-05-26 14:45 231.569 158 2023-05-26 15:00 227.715 159 2023-05-26 15:15 224.059 160 2023-05-26 15:30 219.733 161 2023-05-26 15:45 215.752 162 2023-05-26 16:00 211.795 163 2023-05-26 16:15 208.316 164 2023-05-26 16:30 204.839 165 2023-05-26 16:45 200.835 166 2023-05-26 17:00 197.746 167 2023-05-26 17:15 194.324 168 2023-05-26 17:30 191.075 169 2023-05-26 17:45 187.850 170 2023-05-26 18:00 184.631 171 2023-05-26 18:15 181.804 172 2023-05-26 18:30 179.019 173 2023-05-26 18:45 176.302 174 2023-05-26 19:00 172.914 175 2023-05-26 19:15 169.778 176 2023-05-26 19:30 166.878 177 2023-05-26 19:45 164.338 178 2023-05-26 20:00 161.601 179 2023-05-26 20:15 158.464 180 2023-05-26 20:30 155.548 181 2023-05-26 20:45 152.621 182 2023-05-26 21:00 150.130 183 2023-05-26 21:15 147.176 184 2023-05-26 21:30 144.666 185 2023-05-26 21:45 142.396 186 2023-05-26 22:00 139.715 187 2023-05-26 22:15 137.143 188 2023-05-26 22:30 134.564 189 2023-05-26 22:45 132.490 190 2023-05-26 23:00 130.058 191 2023-05-26 23:15 127.659 192 2023-05-26 23:30 125.371 193 2023-05-26 23:45 122.912 194 2023-05-27 00:00 120.881 195 2023-05-27 00:15 118.680 196 2023-05-27 00:30 116.393 197 2023-05-27 00:45 114.615 198 2023-05-27 01:00 112.431 199 2023-05-27 01:15 110.446 200 2023-05-27 01:30 108.749 201 2023-05-27 01:45 106.846 202 2023-05-27 02:00 105.186 203 2023-05-27 02:15 103.085 204 2023-05-27 02:30 101.439 205 2023-05-27 02:45 99.787 206 2023-05-27 03:00 97.990 207 2023-05-27 03:15 96.460 208 2023-05-27 03:30 94.961 209 2023-05-27 03:45 93.087 210 2023-05-27 04:00 91.683 211 2023-05-27 04:15 90.108 212 2023-05-27 04:30 88.351 213 2023-05-27 04:45 86.774 214 2023-05-27 05:00 85.362 215 2023-05-27 05:15 83.900 216 2023-05-27 05:30 82.471 217 2023-05-27 05:45 80.981 218 2023-05-27 06:00 79.554 219 2023-05-27 06:15 77.971 220 2023-05-27 06:30 76.701 221 2023-05-27 06:45 75.283 222 2023-05-27 07:00 73.902 223 2023-05-27 07:15 72.774 224 2023-05-27 07:30 71.424 225 2023-05-27 07:45 70.046 226 2023-05-27 08:00 68.834 227 2023-05-27 08:15 67.573 228 2023-05-27 08:30 66.554 229 2023-05-27 08:45 65.370 230 2023-05-27 09:00 64.187 231 2023-05-27 09:15 63.006 232 2023-05-27 09:30 61.869 233 2023-05-27 09:45 60.659 234 2023-05-27 10:00 59.520 235 2023-05-27 10:15 58.624 236 2023-05-27 10:30 57.640 237 2023-05-27 10:45 56.675 238 2023-05-27 11:00 55.818 239 2023-05-27 11:15 54.729 240 2023-05-27 11:30 53.814 241 2023-05-27 11:45 52.941 242 2023-05-27 12:00 52.057 243 2023-05-27 12:15 51.109 244 2023-05-27 12:30 50.256 245 2023-05-27 12:45 49.264 246 2023-05-27 13:00 48.385 247 2023-05-27 13:15 47.610 248 2023-05-27 13:30 46.875 249 2023-05-27 13:45 45.943 250 2023-05-27 14:00 45.150 251 2023-05-27 14:15 44.438 252 2023-05-27 14:30 43.583 253 2023-05-27 14:45 42.893 254 2023-05-27 15:00 42.074 255 2023-05-27 15:15 41.316 256 2023-05-27 15:30 40.570 257 2023-05-27 15:45 39.884 258 2023-05-27 16:00 39.131 259 2023-05-27 16:15 38.353 260 2023-05-27 16:30 37.596 261 2023-05-27 16:45 36.864 262 2023-05-27 17:00 36.310 263 2023-05-27 17:15 35.671 264 2023-05-27 17:30 35.083 265 2023-05-27 17:45 34.513 266 2023-05-27 18:00 33.825 267 2023-05-27 18:15 33.211 268 2023-05-27 18:30 32.548 269 2023-05-27 18:45 32.050 270 2023-05-27 19:00 31.559 271 2023-05-27 19:15 30.959 272 2023-05-27 19:30 30.494 273 2023-05-27 19:45 29.906 274 2023-05-27 20:00 29.384 275 2023-05-27 20:15 28.879 276 2023-05-27 20:30 28.394 277 2023-05-27 20:45 27.914 278 2023-05-27 21:00 27.357 279 2023-05-27 21:15 26.829 280 2023-05-27 21:30 26.347 281 2023-05-27 21:45 25.873 282 2023-05-27 22:00 25.438 283 2023-05-27 22:15 25.016 284 2023-05-27 22:30 24.587 285 2023-05-27 22:45 24.110 286 2023-05-27 23:00 23.651 287 2023-05-27 23:15 23.198 288 2023-05-27 23:30 22.837 289 2023-05-27 23:45 22.485 290 2023-05-28 00:00 22.100 291 2023-05-28 00:15 21.671 292 2023-05-28 00:30 21.341 293 2023-05-28 00:45 20.980 294 2023-05-28 01:00 20.601 295 2023-05-28 01:15 20.266 296 2023-05-28 01:30 19.933 297 2023-05-28 01:45 19.550 298 2023-05-28 02:00 19.216 299 2023-05-28 02:15 18.924 300 2023-05-28 02:30 18.548 301 2023-05-28 02:45 18.187 302 2023-05-28 03:00 17.875 303 2023-05-28 03:15 17.605 304 2023-05-28 03:30 17.332 305 2023-05-28 03:45 16.990 306 2023-05-28 04:00 16.671 307 2023-05-28 04:15 16.350 308 2023-05-28 04:30 16.047 309 2023-05-28 04:45 15.729 310 2023-05-28 05:00 15.476 311 2023-05-28 05:15 15.167 312 2023-05-28 05:30 14.888 313 2023-05-28 05:45 14.595 314 2023-05-28 06:00 14.323 315 2023-05-28 06:15 14.088 316 2023-05-28 06:30 13.858 317 2023-05-28 06:45 13.584 318 2023-05-28 07:00 13.371 319 2023-05-28 07:15 13.138 320 2023-05-28 07:30 12.916 321 2023-05-28 07:45 12.706 322 2023-05-28 08:00 12.511 323 2023-05-28 08:15 12.299 324 2023-05-28 08:30 12.064 325 2023-05-28 08:45 11.874 326 2023-05-28 09:00 11.660 327 2023-05-28 09:15 11.475 328 2023-05-28 09:30 11.277 329 2023-05-28 09:45 11.106 330 2023-05-28 10:00 10.922 331 2023-05-28 10:15 10.754 332 2023-05-28 10:30 10.586 333 2023-05-28 10:45 10.384 334 2023-05-28 11:00 10.183 335 2023-05-28 11:15 10.015 336 2023-05-28 11:30 9.835 337 2023-05-28 11:45 9.672 338 2023-05-28 12:00 9.493 339 2023-05-28 12:15 9.317 340 2023-05-28 12:30 9.159 341 2023-05-28 12:45 9.001 342 2023-05-28 13:00 8.838 343 2023-05-28 13:15 8.691 344 2023-05-28 13:30 8.557 345 2023-05-28 13:45 8.404 346 2023-05-28 14:00 8.274 347 2023-05-28 14:15 8.120 348 2023-05-28 14:30 7.965 349 2023-05-28 14:45 7.811 350 2023-05-28 15:00 7.666 351 2023-05-28 15:15 7.545 fuelguy
Cell Formulas Range Formula D2:D4 D2 = INDEX(B2:B351,MATCH((1/LARGE(IFERROR(1/((--($C2=INT(A2:A351)))*(A2:A351)),0),1)),A2:A351,0),1)- INDEX(B2:B351,MATCH((1/LARGE(IFERROR(1/((--($C2+1=INT(A2:A351)))*(A2:A351)),0),1)),A2:A351,0),1)
If you 1) have no blank cells) 2) use the formula I have above EXACTLY you should not get any #DIV/0 errors.Getting a #DIV/0!
How to I get a copy of the spreadsheet to you?
If you 1) have no blank cells) 2) use the formula I have above EXACTLY you should not get any #DIV/0 errors.
Copy the entire mini worksheet I sent into new worksheet in your workbook (or the same sheet if that works, its better).
If you don't get the errors then move just change the cell references to where your data is.
If you have drop box or other file share services you can post your workbook there. Sanitize your data as needed.
data (4).xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Timestamp (CDT) | Bulk Tank | Day | ||||
2 | 2023-03-01 15:07 | 7983.964 | 2023-03-01 00:00 | #DIV/0! | 615.1807 | ||
3 | 2023-03-01 15:22 | 7965.939 | 2023-03-02 00:00 | #DIV/0! | 1072.062 | ||
4 | 2023-03-01 15:37 | 7900.111 | 2023-03-03 00:00 | #DIV/0! | 1119.082 | ||
5 | 2023-03-01 15:52 | 7809.205 | 2023-03-04 00:00 | #DIV/0! | 61.12598 | ||
6 | 2023-03-01 16:07 | 7744.944 | 2023-03-05 00:00 | #DIV/0! | -3.91846 | ||
7 | 2023-03-01 16:22 | 7697.140 | 2023-03-06 00:00 | #DIV/0! | 1162.184 | ||
8 | 2023-03-01 16:37 | 7697.140 | 2023-03-07 00:00 | #DIV/0! | 1133.971 | ||
9 | 2023-03-01 16:52 | 7588.210 | 2023-03-08 00:00 | #DIV/0! | -6159.65 | ||
10 | 2023-03-01 17:07 | 7551.378 | 2023-03-09 00:00 | #DIV/0! | 1401.203 | ||
11 | 2023-03-01 17:22 | 7531.003 | 2023-03-10 00:00 | #DIV/0! | 1118.297 | ||
data (4) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2 | D2 | =INDEX(B2:B8955,MATCH((1/LARGE(IFERROR(1/((--($C2=INT(A2:A8955)))*(A2:A8955)),0),1)),A2:A8955,0),1)-INDEX(B2:B8955,MATCH((1/LARGE(IFERROR(1/((--($C2+1=INT(A2:A8955)))*(A2:A8955)),0),1)),A2:A8955,0),1) |
E2:E11 | E2 | =INDEX($B$2:$B$8955,MATCH((1/LARGE(IFERROR(1/((--($C2=INT($A$2:$A$8955)))*($A$2:$A$8955)),0),1)),$A$2:$A$8955,0),1)-INDEX($B$2:$B$8955,MATCH((1/LARGE(IFERROR(1/((--($C2+1=INT($A$2:$A$8955)))*($A$2:$A$8955)),0),1)),$A$2:$A$8955,0),1) |
C3:C11 | C3 | =C2+1 |
D3:D11 | D3 | =INDEX(B3:B8956,MATCH((1/LARGE(IFERROR(1/((--($C3=INT(A3:A8956)))*(A3:A8956)),0),1)),A3:A8956,0),1)-INDEX(B3:B856,MATCH((1/LARGE(IFERROR(1/((--($C3+1=INT(A3:A8956)))*(A3:A8956)),0),1)),A3:A8956,0),1) |
What is the purpose of the @ sign in your formula?
Without that, I get this:
data (4).xlsx
A B C D E 1 Timestamp (CDT) Bulk Tank Day 2 2023-03-01 15:07 7983.964 2023-03-01 00:00 #DIV/0! 615.1807 3 2023-03-01 15:22 7965.939 2023-03-02 00:00 #DIV/0! 1072.062 4 2023-03-01 15:37 7900.111 2023-03-03 00:00 #DIV/0! 1119.082 5 2023-03-01 15:52 7809.205 2023-03-04 00:00 #DIV/0! 61.12598 6 2023-03-01 16:07 7744.944 2023-03-05 00:00 #DIV/0! -3.91846 7 2023-03-01 16:22 7697.140 2023-03-06 00:00 #DIV/0! 1162.184 8 2023-03-01 16:37 7697.140 2023-03-07 00:00 #DIV/0! 1133.971 9 2023-03-01 16:52 7588.210 2023-03-08 00:00 #DIV/0! -6159.65 10 2023-03-01 17:07 7551.378 2023-03-09 00:00 #DIV/0! 1401.203 11 2023-03-01 17:22 7531.003 2023-03-10 00:00 #DIV/0! 1118.297 data (4)
Cell Formulas Range Formula D2 D2 =INDEX(B2:B8955,MATCH((1/LARGE(IFERROR(1/((--($C2=INT(A2:A8955)))*(A2:A8955)),0),1)),A2:A8955,0),1)-INDEX(B2:B8955,MATCH((1/LARGE(IFERROR(1/((--($C2+1=INT(A2:A8955)))*(A2:A8955)),0),1)),A2:A8955,0),1) E2:E11 E2 =INDEX($B$2:$B$8955,MATCH((1/LARGE(IFERROR(1/((--($C2=INT($A$2:$A$8955)))*($A$2:$A$8955)),0),1)),$A$2:$A$8955,0),1)-INDEX($B$2:$B$8955,MATCH((1/LARGE(IFERROR(1/((--($C2+1=INT($A$2:$A$8955)))*($A$2:$A$8955)),0),1)),$A$2:$A$8955,0),1) C3:C11 C3 =C2+1 D3:D11 D3 =INDEX(B3:B8956,MATCH((1/LARGE(IFERROR(1/((--($C3=INT(A3:A8956)))*(A3:A8956)),0),1)),A3:A8956,0),1)-INDEX(B3:B856,MATCH((1/LARGE(IFERROR(1/((--($C3+1=INT(A3:A8956)))*(A3:A8956)),0),1)),A3:A8956,0),1)
That is just probably because you are opening the file in 365.What is the purpose of the @ sign in your formula?
I wasn't using column E. However, between your formula and Fluff's Control Shift Enter it works now. Did notice that the daily totals are off by 5 - 10 gallons but that's good enough for my purposes. Thanks to everybody!It looks like you tried to take the @ sign out in the next row. But, you did not lock your ranges as absolute (with the $ signs).
Column E has a consistent formula all the way down.