Calculation with changes in time. Update.

Davebro

Board Regular
Joined
Feb 22, 2018
Messages
135
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
I am trying to find a way to use the Rank in column E to work when the calculation is carried down to the different times

TimeBCCalcRank
15:35:00​
131​
105​
-4​
9​
15:35:00​
128​
89​
9​
3​
15:35:00​
128​
0​
98​
1​
15:35:00​
128​
93​
5​
4​
15:35:00​
128​
89​
9​
2​
15:35:00​
128​
89​
9​
2​
15:35:00​
128​
97​
1​
3​
15:35:00​
128​
95​
3​
2​
15:35:00​
128​
74​
24​
1​
19:30:00​
128​
97​
19:30:00​
128​
0​
19:30:00​
128​
0​
19:30:00​
128​
99​
19:30:00​
128​
96​
19:30:00​
128​
0​
19:30:00​
128​
99​
19:30:00​
128​
0​
19:30:00​
128​
95​
19:30:00​
128​
0​
19:30:00​
128​
0​
19:30:00​
128​
95​
20:20:00​
135​
50​
20:20:00​
135​
47​
20:20:00​
135​
50​
20:20:00​
135​
42​
20:20:00​
135​
50​
20:20:00​
125​
44​
20:20:00​
125​
48​
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You need to provide us with some additional information to work with. For example:
  • Is the rank value a formula? If yes what is it?
  • As above for the calc value, B and C.
  • Show an example of your desired result.
Ideally if you could post some data as a minisheet using XL2BB.
 
Upvote 0
You need to provide us with some additional information to work with. For example:
  • Is the rank value a formula? If yes what is it?
  • As above for the calc value, B and C.
  • Show an example of your desired result.
Ideally if you could post some data as a minisheet using XL2BB.
Sorry for being vague, I am trying to carry the formulas down to adjust to the next times in A

Book2a.xlsx
ABCDEFGHIJKL
1TimeBCCalcRank
215:35:0013110501D =(MAX($C$2:$C$10) - C2) - (MAX($B$2:$B$10) - B
315:35:0012889136E =RANK(D2,$D$2:$D$10,1)
415:35:001289932
515:35:001289395
615:35:0012989148
715:35:0012889136
815:35:001289753
915:35:001289574
1015:35:0012874289
1119:30:0012897
1219:30:001280
1319:30:001280
1419:30:0012899
1519:30:0012896
1619:30:001280
1719:30:0012899
1819:30:001280
1919:30:0012895
2019:30:001280
2119:30:001280
2219:30:0012895
2320:20:0013550
2420:20:0013547
2520:20:0013550
2620:20:0013542
2720:20:0013550
2820:20:0012544
2920:20:0012548
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=(MAX($C$2:$C$10) - C2) - (MAX($B$2:$B$10) - B2)
E2:E10E2=RANK(D2,$D$2:$D$10,1)
 
Upvote 0
See formulas in columns G and H

junk.xlsx
ABCDEFGH
1TimeBCCalcRank
23:35:00 PM1311050101
33:35:00 PM12889136136
43:35:00 PM128993232
53:35:00 PM128939595
63:35:00 PM12989148148
73:35:00 PM12889136136
83:35:00 PM128975353
93:35:00 PM128957474
103:35:00 PM12874289289
117:30:00 PM128972323
127:30:00 PM1280997997
137:30:00 PM1280997997
147:30:00 PM128990101
157:30:00 PM128963434
167:30:00 PM1280997997
177:30:00 PM128990101
187:30:00 PM1280997997
197:30:00 PM128954545
207:30:00 PM1280997997
217:30:00 PM1280997997
227:30:00 PM128954545
238:20:00 PM135500303
248:20:00 PM135473636
258:20:00 PM135500303
268:20:00 PM135428787
278:20:00 PM135500303
288:20:00 PM12544-42-42
298:20:00 PM12548-81-81
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=(MAX($C$2:$C$10) - C2) - (MAX($B$2:$B$10) - B2)
E2:E10E2=RANK(D2,$D$2:$D$10,1)
D11:D22D11=(MAX($C$11:$C$22) - C11) - (MAX($B$11:$B$22) - B11)
E11:E22E11=RANK(D11,$D$11:$D$22,1)
D23:D29D23=(MAX($C$23:$C$29) - C23) - (MAX($B$23:$B$29) - B23)
E23:E29E23=RANK(D23,$D$23:$D$29,1)
G2:G29G2=(MAXIFS($C$2:$C$29,$A$2:$A$29,A2)-C2)-(MAXIFS($B$2:$B$29,$A$2:$A$29,A2)-B2)
H2:H29H2=COUNTIFS($A$2:$A$29,A2,$D$2:$D$29,"<"&D2)+1
 
Upvote 1
Solution
See formulas in columns G and H

junk.xlsx
ABCDEFGH
1TimeBCCalcRank
23:35:00 PM1311050101
33:35:00 PM12889136136
43:35:00 PM128993232
53:35:00 PM128939595
63:35:00 PM12989148148
73:35:00 PM12889136136
83:35:00 PM128975353
93:35:00 PM128957474
103:35:00 PM12874289289
117:30:00 PM128972323
127:30:00 PM1280997997
137:30:00 PM1280997997
147:30:00 PM128990101
157:30:00 PM128963434
167:30:00 PM1280997997
177:30:00 PM128990101
187:30:00 PM1280997997
197:30:00 PM128954545
207:30:00 PM1280997997
217:30:00 PM1280997997
227:30:00 PM128954545
238:20:00 PM135500303
248:20:00 PM135473636
258:20:00 PM135500303
268:20:00 PM135428787
278:20:00 PM135500303
288:20:00 PM12544-42-42
298:20:00 PM12548-81-81
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=(MAX($C$2:$C$10) - C2) - (MAX($B$2:$B$10) - B2)
E2:E10E2=RANK(D2,$D$2:$D$10,1)
D11:D22D11=(MAX($C$11:$C$22) - C11) - (MAX($B$11:$B$22) - B11)
E11:E22E11=RANK(D11,$D$11:$D$22,1)
D23:D29D23=(MAX($C$23:$C$29) - C23) - (MAX($B$23:$B$29) - B23)
E23:E29E23=RANK(D23,$D$23:$D$29,1)
G2:G29G2=(MAXIFS($C$2:$C$29,$A$2:$A$29,A2)-C2)-(MAXIFS($B$2:$B$29,$A$2:$A$29,A2)-B2)
H2:H29H2=COUNTIFS($A$2:$A$29,A2,$D$2:$D$29,"<"&D2)+1
Many thanks for you time and solution, this works fine, I did some combinations with countifs but could not get it right. Much appreciated.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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