basic excel formula

  • Thread starter Thread starter kable58
  • Start date Start date
K

kable58

Hi, here is what I am trying to do.
In Cell A2 I have the number 90379614070
I want Cell B2 to take the last number in that cell, the 0 and paste it there
I have 962 rows of numbers so you can see why i want a formula

2nd thing i want to do is after i have completed the first thing, i want a
formula to remove that last 0 and the last number from every number in the A
column.

Thanks
 
If all of the values are the same length,
you can do both things at once....

Try this:
Select the Col_A values

From the Excel Main Menu:
<data><text-to-columns>
....Click: Fixed Width...Click [Next]
....Insert a breakpoint before the last character (by clicking there)
....Click [Finish]

That will remove the last char from each cell in Col_A
and put it in Col_B

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
Formula for part 1: =right(a1) - whereas a1 is the cell with the
number. This will return only one digit.

Not sure what you are looking for in part two.
 
Formula for part 1: =right(a1) - whereas a1 is the cell with the
number. This will return only one digit.

Not sure what you are looking for in part two.
I think the 'right' formula works better than setting length/
demlimited if numbers are different sizes.

Am I wrong?
 
To extract the last digit from an 11 digit number in A1 use =--RIGHT(A1,1)
Your second part is achieved with =INT(A1/10)

OR: Select all the numbers; use Data | Text to Column; specify Fixed width;
click between the last two digits to split the numbers into two columns

best wishes
 
Back
Top