need to add .0 after number (as 11 A to 11.0 A)

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
883
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

Need to add .0 if it is in whole number

Data.xlsx
STU
1033.624.544 A
10414.318.644.6 A
10592.9-3.27.1 A
10667.90.8-1.6
10782.1-7.9-1.6
10882.10.710.6
10980.41.311
11073.2-4.511 A
11180.4-5.510.3 A
11280.4-3.514.4 A
11375-7.71.8
11480.4-1.811 A
1 (2)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:

varios 09ene2024.xlsm
STUV
1033.624.544 A44.0 A
10414.318.644.6 A44.6 A
10592.9-3.27.1 A7.1 A
10667.90.8-1.6-1.6
10782.1-7.9-1.6-1.6
10882.10.710.610.6
10980.41.31111
11073.2-4.511 A11.0 A
11180.4-5.510.3 A10.3 A
11280.4-3.514.4 A14.4 A
11375-7.71.81.8
11480.4-1.811 A11.0 A
Hoja6
Cell Formulas
RangeFormula
V103:V114V103=IF(RIGHT(U103)="A",IF(--SUBSTITUTE(U103," A","")=INT(--SUBSTITUTE(U103," A","")),--SUBSTITUTE(U103," A","")&".0 A",U103),U103)



Excel 365:

Excel Formula:
=LET(a,--SUBSTITUTE(U103," A",""),IF(RIGHT(U103)="A",IF(a=INT(a),--a&".0 A",U103),U103))

If you want the ".0" in any value regardless of whether or not it has the letter "A" at the end, then:
Excel Formula:
=LET(b,U103,a,--SUBSTITUTE(b," A",""),IF(RIGHT(b)="A",IF(a=INT(a),--a&".0 A",b),IF(b=INT(b),b&".0",b)))



:)
 
Last edited:
Upvote 1
Try:

varios 09ene2024.xlsm
STUV
1033.624.544 A44.0 A
10414.318.644.6 A44.6 A
10592.9-3.27.1 A7.1 A
10667.90.8-1.6-1.6
10782.1-7.9-1.6-1.6
10882.10.710.610.6
10980.41.31111
11073.2-4.511 A11.0 A
11180.4-5.510.3 A10.3 A
11280.4-3.514.4 A14.4 A
11375-7.71.81.8
11480.4-1.811 A11.0 A
Hoja6
Cell Formulas
RangeFormula
V103:V114V103=IF(RIGHT(U103)="A",IF(--SUBSTITUTE(U103," A","")=INT(--SUBSTITUTE(U103," A","")),--SUBSTITUTE(U103," A","")&".0 A",U103),U103)



Excel 365:

Excel Formula:
=LET(a,--SUBSTITUTE(U103," A",""),IF(RIGHT(U103)="A",IF(a=INT(a),--a&".0 A",U103),U103))

If you want the ".0" in any value regardless of whether or not it has the letter "A" at the end, then:
Excel Formula:
=LET(b,U103,a,--SUBSTITUTE(b," A",""),IF(RIGHT(b)="A",IF(a=INT(a),--a&".0 A",b),IF(b=INT(b),b&".0",b)))



:)
Hello Sir,

Thank you so much for your help.
Now still i can not see the decimal on the number i.e i need Cell V109 11 and i need as "11.0" also. :)
 
Upvote 0
If you want the ".0" in any value regardless of whether or not it has the letter "A" at the end, then:
Maybe you didn't see my update at the end of my post.

Try this for excel 365:

Excel Formula:
=LET(b,U103,a,--SUBSTITUTE(b," A",""),IF(RIGHT(b)="A",IF(a=INT(a),--a&".0 A",b),IF(b=INT(b),b&".0",b)))
 
Upvote 0
Maybe you didn't see my update at the end of my post.

Try this for excel 365:

Excel Formula:
=LET(b,U103,a,--SUBSTITUTE(b," A",""),IF(RIGHT(b)="A",IF(a=INT(a),--a&".0 A",b),IF(b=INT(b),b&".0",b)))
Hi Sir,

I have checked withe above Formula still getting 11 instead of 11.0 i have bold in RHS table (used above formula


424.544.6 A4.024.544.6 A
1418.644.6 A14.018.644.6 A
93-3.27.1 A93.0-3.27.1 A
680.8-1.668.00.8-1.6
82-7.94.7 A82.0-7.94.7 A
820.710.682.00.710.6
801.31180.01.311
73-4.511.2 A73.0-4.511.2 A
80-5.510.3 A80.0-5.510.3 A
80-3.514.4 A80.0-3.514.4 A
75-7.71.875.0-7.71.8
80-1.811 A80.0-1.811.0 A
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,246
Members
449,093
Latest member
Vincent Khandagale

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