Need to return 2 digits in the last cell.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
Hi everyone,

I'm looking for a formula that will return 1 or 2 digits according to a number, not sure if it can be done ?
I have this number 4511 in PH8 and I'm separating the first 2 digits in individual cell but after the 2 digits it could be 1 or 2 digits left in that number that I would like to be separated into only 1 cell
4511 =MID(TEXT(PH8,"000"),1,1)+0 PI8= 4
4511 =MID(TEXT(PH8,"000"),2,1)+0 PJ8= 5
What formula should be use in PK8 to return 11 ? Thank you.

259.PNG
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Maybe...

Book2
PHPIPJPK
8451111
95177
10291010
112888
Sheet1
Cell Formulas
RangeFormula
PK8:PK11PK8=--MID(PH8, 3, LEN(PH8))
]
 
Upvote 0
Thank you so much MARK858, it works very well, I appreciate you.
 
Upvote 0

Forum statistics

Threads
1,215,407
Messages
6,124,723
Members
449,184
Latest member
COrmerod

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