ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do I get excel to change the last digit in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/69252-how-do-i-get-excel-change-last-digit-cell.html)

Mulina

how do I get excel to change the last digit in a cell
 
After performing a series of calculations on a column of numbers in excel
(2002), I need to change the last digit in each answer to 9. Is there a
function or formula that will help me do this?

Nikki

how do I get excel to change the last digit in a cell
 
see if this help:
=LEFT(A1,LEN(A1)-1)&"9"
nikki

"Mulina" wrote:

After performing a series of calculations on a column of numbers in excel
(2002), I need to change the last digit in each answer to 9. Is there a
function or formula that will help me do this?


Nikki

how do I get excel to change the last digit in a cell
 
this might work better. the other one gives awrong answer if you have a whole
number.
put your number in A1.
=IF(ISERROR(SEARCH(".",A1,1)),A1,LEFT(A1,LEN(A1)-1)&"9")

"Nikki" wrote:

see if this help:
=LEFT(A1,LEN(A1)-1)&"9"
nikki

"Mulina" wrote:

After performing a series of calculations on a column of numbers in excel
(2002), I need to change the last digit in each answer to 9. Is there a
function or formula that will help me do this?


Dave Peterson

how do I get excel to change the last digit in a cell
 
If they are whole numbers:

=int(a1/10)*10+9

Mulina wrote:

After performing a series of calculations on a column of numbers in excel
(2002), I need to change the last digit in each answer to 9. Is there a
function or formula that will help me do this?


--

Dave Peterson


All times are GMT +1. The time now is 12:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com