RIGHT and TRIM functions

Up Your Microsoft Excel Skills Formulas and Functions
1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€85.31
List Price:  €119.44
You save:  €34.13
£73.93
List Price:  £103.51
You save:  £29.57
CA$137.38
List Price:  CA$192.33
You save:  CA$54.95
A$152.49
List Price:  A$213.50
You save:  A$61
S$128.32
List Price:  S$179.66
You save:  S$51.33
HK$779.61
List Price:  HK$1,091.49
You save:  HK$311.87
CHF 79.92
List Price:  CHF 111.90
You save:  CHF 31.97
NOK kr1,001.53
List Price:  NOK kr1,402.19
You save:  NOK kr400.65
DKK kr636.88
List Price:  DKK kr891.66
You save:  DKK kr254.77
NZ$169.27
List Price:  NZ$236.99
You save:  NZ$67.71
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,129.61
List Price:  ৳16,981.94
You save:  ৳4,852.32
₹8,820.96
List Price:  ₹12,349.69
You save:  ₹3,528.73
RM422.45
List Price:  RM591.45
You save:  RM169
₦153,119.68
List Price:  ₦214,373.68
You save:  ₦61,254
₨28,298.07
List Price:  ₨39,618.43
You save:  ₨11,320.36
฿3,229.82
List Price:  ฿4,521.88
You save:  ฿1,292.06
₺4,110.80
List Price:  ₺5,755.29
You save:  ₺1,644.48
B$544.74
List Price:  B$762.66
You save:  B$217.92
R1,757.93
List Price:  R2,461.17
You save:  R703.24
Лв166.73
List Price:  Лв233.43
You save:  Лв66.70
₩139,315.16
List Price:  ₩195,046.79
You save:  ₩55,731.63
₪334.96
List Price:  ₪468.96
You save:  ₪133.99
₱5,718.72
List Price:  ₱8,006.44
You save:  ₱2,287.71
¥14,711.57
List Price:  ¥20,596.79
You save:  ¥5,885.22
MX$1,860.71
List Price:  MX$2,605.07
You save:  MX$744.36
QR363.54
List Price:  QR508.98
You save:  QR145.43
P1,342.87
List Price:  P1,880.08
You save:  P537.20
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,858.40
List Price:  E£6,801.95
You save:  E£1,943.55
ብር14,207.39
List Price:  ብር19,890.91
You save:  ብር5,683.52
Kz91,186.38
List Price:  Kz127,664.58
You save:  Kz36,478.20
CLP$97,077.66
List Price:  CLP$135,912.62
You save:  CLP$38,834.95
CN¥713
List Price:  CN¥998.24
You save:  CN¥285.23
RD$6,289.01
List Price:  RD$8,804.87
You save:  RD$2,515.85
DA12,972.12
List Price:  DA18,161.49
You save:  DA5,189.37
FJ$225.10
List Price:  FJ$315.15
You save:  FJ$90.05
Q764.55
List Price:  Q1,070.41
You save:  Q305.85
GY$20,859.58
List Price:  GY$29,204.24
You save:  GY$8,344.66
ISK kr12,234.77
List Price:  ISK kr17,129.17
You save:  ISK kr4,894.40
DH899.20
List Price:  DH1,258.92
You save:  DH359.71
L1,662.76
List Price:  L2,327.94
You save:  L665.17
ден5,253.59
List Price:  ден7,355.25
You save:  ден2,101.65
MOP$800.90
List Price:  MOP$1,121.29
You save:  MOP$320.39
N$1,770.60
List Price:  N$2,478.91
You save:  N$708.31
C$3,675.04
List Price:  C$5,145.20
You save:  C$1,470.16
रु14,078.16
List Price:  रु19,709.99
You save:  रु5,631.82
S/353.04
List Price:  S/494.27
You save:  S/141.23
K420.89
List Price:  K589.26
You save:  K168.37
SAR375.22
List Price:  SAR525.32
You save:  SAR150.10
ZK2,352.53
List Price:  ZK3,293.64
You save:  ZK941.10
L432.72
List Price:  L605.83
You save:  L173.10
Kč2,084.93
List Price:  Kč2,918.98
You save:  Kč834.05
Ft33,719.57
List Price:  Ft47,208.75
You save:  Ft13,489.17
SEK kr940.77
List Price:  SEK kr1,317.11
You save:  SEK kr376.34
ARS$134,685.39
List Price:  ARS$188,564.93
You save:  ARS$53,879.54
Bs689.25
List Price:  Bs964.97
You save:  Bs275.72
COP$401,007.86
List Price:  COP$561,427.04
You save:  COP$160,419.18
₡50,407.82
List Price:  ₡70,572.96
You save:  ₡20,165.14
L2,619.12
List Price:  L3,666.88
You save:  L1,047.75
₲721,152.50
List Price:  ₲1,009,642.35
You save:  ₲288,489.85
$U4,000.21
List Price:  $U5,600.46
You save:  $U1,600.24
zł363.06
List Price:  zł508.30
You save:  zł145.24
Already have an account? Log In

Transcript

Okay, we like to do is get the last four social security numbers out here. So I can do that using the right function. The text group right here is under, right. And what it's going to ask me is what text do I want to work with this case Celsius? And then how many characters from the right do I want to pull out for? maybe look at the last four characters.

8455 Is what I get here. copy this down. And we start to see a problem here. And that might be that sometimes you might have data that's not properly entered. In this case, there's an extra space here. So if I were to backspace that hit enter, you're gonna see that that popped up here.

Well, what if you have lots of data to do instead, you can use the trim function and the trim functions purpose is to remove extra spaces. And I can easily use the trim function and park it right here to the cell C to copy this down. And I know that all of these social security numbers here, these fake ones are going to have no spaces. So if I copy that, and then paste it, the values on top of the originals. Notice in column E, my social security numbers are going to come back to life right there and those are the correct ones that we see here. So often, you'll use the trim function to help you prepare the data cleaned up before you use any text character extractions, such as the right function.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.