Number Formatting

Reec0n

New Member
Joined
Jan 30, 2017
Messages
20

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi, here is one way you can try:


Excel 2013/2016
AB
1TimeWorkedMinutes
215 minutes15
32.5 hours (150 minutes)150
425 minutes25
515 minutes15
646 minutes46
73.03 hours (182 minutes)182
81.42 hours (85 minutes)85
930 minutes30
1055 minutes55
1110 minutes10
1215 minutes15
1320 minutes20
1415 minutes15
1515 minutes15
Sheet1
Cell Formulas
RangeFormula
B2=IF(A2="","",0+RIGHT(SUBSTITUTE(LEFT(A2,FIND("m",A2)-1),"(",REPT(" ",99)),99))
 
Upvote 0
Hi, here is one way you can try:

Excel 2013/2016
AB
TimeWorkedMinutes
15 minutes
2.5 hours (150 minutes)
25 minutes
15 minutes
46 minutes
3.03 hours (182 minutes)
1.42 hours (85 minutes)
30 minutes
55 minutes
10 minutes
15 minutes
20 minutes
15 minutes
15 minutes

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: right"]15[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]150[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]25[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]15[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]46[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]182[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"]85[/TD]

[TD="align: center"]9[/TD]

[TD="align: right"]30[/TD]

[TD="align: center"]10[/TD]

[TD="align: right"]55[/TD]

[TD="align: center"]11[/TD]

[TD="align: right"]10[/TD]

[TD="align: center"]12[/TD]

[TD="align: right"]15[/TD]

[TD="align: center"]13[/TD]

[TD="align: right"]20[/TD]

[TD="align: center"]14[/TD]

[TD="align: right"]15[/TD]

[TD="align: center"]15[/TD]

[TD="align: right"]15[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B2[/TH]
[TD="align: left"]=IF(A2="","",0+RIGHT(SUBSTITUTE(LEFT(A2,FIND("m",A2)-1),"(",REPT(" ",99)),99))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Thank you. This worked perfectly. Much appreciated
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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