Request help in extracting mutiple number groups from specific character positions from a varying number size.

Vince_08

New Member
Joined
Mar 6, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, I am working on a spreadsheet with over 140,000 rows that has a column of numbers that range from 1 to 6 digits. I need to extract the first number from the right, second and third numbers from the right, and fourth to sixth numbers from the right. I have had issues due to the number I need to extract from can vary from 1 to 6 digits. The following is what I am trying to achieve:

Example Number String FormatOnly 4th to 6th numbers to right (minutes)Only 2nd and 3rd number from right (seconds)Only 1st number from right (1/10 seconds)
103308​
103​
30​
8​
10280​
10​
28​
0​
8423​
8​
42​
3​
534​
0​
53​
4​
12​
0​
1​
2​
6​
0​
0​
6​
Note: if I get a 1 to 9 in this column it needs to = 1, otherwise stays as a 0.
I then need to convert these numbers to total seconds. I need to multiple a number in the 4th to 6th digit by 60, then add seconds in 2nd and 3rd digit, and add a 1 or 0 from the first digit. The following is an example for the top example of 103308: (103*60)+(30)+(1) = 6,211 seconds.

Thank you for your help.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi & welcome to MrExcel.
If you just want the number of seconds, how about
Fluff.xlsm
AB
1
21033086211
310280628
48423523
553454
6122
761
Data
Cell Formulas
RangeFormula
B2:B7B2=CEILING(DOLLARDE(A2/1000,60)*60,1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,594
Members
452,655
Latest member
goranzoric

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