Você está na página 1de 15

Left()

Purpose

Write a function in the BU column that will pull out the business unit.

General Ledger
WEST ELECTRONICS' account codes are xx-yyyy-zz where:
xx represents the business unit
yyyy represents the account
zz represents the department
My trans detal has the full account code, but I want the business
unit only (for use in my analysis, my pivot table, graph, ...)
Account#
10-1234-45
15-1234-46
11-6758-47
10-9376-48
11-6758-48
10-9376-49
12-6758-49
13-9376-50
11-6758-50
10-9376-51
11-6758-51
10-9376-52
11-6758-52
10-9376-53
11-6758-53
11-6758-52
10-9376-53
11-6758-53
10-9376-54
11-6758-54
11-6758-53
10-9376-54
11-6758-54
10-9376-55
11-6758-55
11-6758-54
10-9376-55
11-6758-55
11-6758-52
10-9376-53
11-6758-53
10-9376-54
11-6758-51
11-6758-50

Date
Amount
1/1/2007
$4,711
1/21/2007
$4,817
2/10/2007
$4,923
3/2/2007
$5,029
3/22/2007
$5,135
4/11/2007
$5,241
5/1/2007
$5,347
5/21/2007
$5,453
6/10/2007
$5,559
6/30/2007
$5,665
7/20/2007
$5,771
8/9/2007
$5,877
8/29/2007
$5,983
9/18/2007
$6,089
10/8/2007
$6,195
10/28/2007
$6,301
11/17/2007
$6,407
12/7/2007
$6,513
12/27/2007
$6,619
1/16/2008
$6,725
2/5/2008
$6,831
2/25/2008
$6,937
3/16/2008
$7,043
4/5/2008
$7,149
4/25/2008
$7,255
5/15/2008
$7,361
6/4/2008
$7,467
6/24/2008
$7,573
7/14/2008
$7,679
8/3/2008
$7,785
8/23/2008
$7,891
9/12/2008
$7,997
10/2/2008
$8,103
10/22/2008
$8,209

BU

Right()
Product Codes
West Electronics' product codes are AA-BBB where:
AA is the product category
BBB is the product code
Exercise Write a formula in PC that will pull out the product code
Item#
XY-101
AB-556
PR-563
YY-573
UI-233
XY-102
AB-557
PR-564
YY-574
UI-234
XY-103
AB-558
PR-565
YY-575
UI-235
XY-104
AB-559
PR-566
YY-576
UI-236
XY-105
AB-560
PR-567
YY-577
UI-237
XY-106
AB-561
PR-568
YY-578
UI-238
XY-107
AB-562
PR-569
YY-579
UI-239
XY-108
AB-563
PR-570
YY-580
UI-240

Amount
$755
$877
$999
$1,121
$1,243
$1,365
$1,487
$1,609
$1,731
$1,853
$1,975
$2,097
$2,219
$2,341
$2,463
$2,585
$2,707
$2,829
$2,951
$3,073
$3,195
$3,317
$3,439
$3,561
$3,683
$3,805
$3,927
$4,049
$4,171
$4,293
$4,415
$4,537
$4,659
$4,781
$4,903
$5,025
$5,147
$5,269
$5,391
$5,513

PC

XY-109
AB-564
PR-571
YY-581
UI-241
XY-110
AB-565
PR-572
YY-582
UI-242
XY-111
AB-566
PR-573
YY-583
UI-243
XY-112
AB-567
PR-574
YY-584
UI-244
XY-113
AB-568
PR-575
YY-585
UI-245
XY-114
AB-569
PR-576
YY-586
UI-246
XY-115
AB-570
PR-577
YY-587
UI-247
XY-116
AB-571
PR-578
YY-588
UI-248
XY-117
AB-572
PR-579
YY-589
UI-249
XY-118
AB-573
PR-580
YY-590
UI-250
XY-119
AB-574

$5,635
$5,757
$5,879
$6,001
$6,123
$6,245
$6,367
$6,489
$6,611
$6,733
$6,855
$6,977
$7,099
$7,221
$7,343
$7,465
$7,587
$7,709
$7,831
$7,953
$8,075
$8,197
$8,319
$8,441
$8,563
$8,685
$8,807
$8,929
$9,051
$9,173
$9,295
$9,417
$9,539
$9,661
$9,783
$9,905
$10,027
$10,149
$10,271
$10,393
$10,515
$10,637
$10,759
$10,881
$11,003
$11,125
$11,247
$11,369
$11,491
$11,613
$11,735
$11,857

PR-581
YY-591
UI-251
XY-120
AB-575
PR-582
YY-592
UI-252
XY-121
AB-576
PR-583
YY-593
UI-253
XY-122
AB-577
PR-584
YY-594
UI-254
XY-123
AB-578
PR-585
YY-595
UI-255
XY-124
AB-579
PR-586

$11,979
$12,101
$12,223
$12,345
$12,467
$12,589
$12,711
$12,833
$12,955
$13,077
$13,199
$13,321
$13,443
$13,565
$13,687
$13,809
$13,931
$14,053
$14,175
$14,297
$14,419
$14,541
$14,663
$14,785
$14,907
$15,029

Mid()
Employee Codes
West Electronics' Employee codes are X-YY-ZZZZ, where
X represents the Business Unit
YY represents the Department
ZZZZ represents the employee code
Exercise Write a formula in Department that will pull out the Department code
EE Code
1-10-1001
2-12-1345
3-10-1002
2-15-1346
1-25-1003
1-10-1002
2-12-1346
3-10-1003
2-15-1347
1-25-1004
1-10-1003
2-12-1347
3-10-1004
2-15-1348
1-25-1005
1-10-1004
2-12-1348
3-10-1005
2-15-1349
1-25-1006
1-10-1005
2-12-1349
3-10-1006
2-15-1350
1-25-1007
1-10-1006
2-12-1350
3-10-1007
2-15-1351
1-25-1008
1-10-1007
2-12-1351
3-10-1008
2-15-1352
1-25-1009
1-10-1008
2-12-1352
3-10-1009
2-15-1353

Department

1-25-1010
1-10-1009
2-12-1353
3-10-1010

Len()
Exercise Write a formula in the Length column that will reveal how many characters are in the Text column

Text
Jeff
123
Mohamed Yousuf

Length

Text to columns
Employee Codes
West Electronics' Employee codes are X-YY-ZZZZ, where
X represents the Business Unit
YY represents the Department
ZZZZ represents the employee code
Exercise Use Excel's text to columns feature to split the EE code into its components
EE Code
1-10-1001
2-12-1345
3-10-1002
2-15-1346
1-25-1003
1-10-1002
2-12-1346
3-10-1003
2-15-1347
1-25-1004
1-10-1003
2-12-1347
3-10-1004
2-15-1348
1-25-1005
1-10-1004
2-12-1348
3-10-1005
2-15-1349
1-25-1006
1-10-1005
2-12-1349
3-10-1006
2-15-1350
1-25-1007
1-10-1006
2-12-1350
3-10-1007
2-15-1351
1-25-1008
1-10-1007
2-12-1351
3-10-1008
2-15-1352
1-25-1009
1-10-1008
2-12-1352
3-10-1009
2-15-1353

1-25-1010
1-10-1009
2-12-1353
3-10-1010

Location
Allentown,Pa.
Atlanta,Ga.
Baltimore,Md.
Bellevue,Ohio
Birmingham,Ala.
Buffalo,N.Y.
Chattanooga,Tenn.
Chicago,Ill.
Cincinnati,Ohio
Cleveland,Ohio
Columbus,Ohio
Conway,Pa.
Decatur,Ill.
Detroit,Mich.
Enola,Pa.
Fort Wayne,Ind.
Harrisburg,Pa.
Kansas City. Mo.
Knoxville,Tenn.
Linwood,N.C.
Louisville,Ky.
Macon,Ga.
Norfolk,Va.
Roanoke,Va.
Savannah,Ga.
Sheffield,Ala.
St. Louis,Mo.
Toledo,Ohio

Poll Results - Respondents


WOMEN
18-34
35-49
50-64
65+

RESPONDENTS
75
83
20
55

HISTOGRAM
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||

MEN
18-34
35-49
50-64
65+

70
73
82
60

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Press F9 to Calculate
RAND()

RANDBETWEEN
LUCKY DRAW NO

0.827556
0.752867
0.128014
0.35641
0.273057
0.227798
0.893329
0.770856
0.519787
0.974379
0.621348
0.508
0.025913
0.446978

8
17
11
2
6
7
11
12
17
10
3
2
11
5

60895

Last Name First Name


Smith
Howard
Gonzales
Joe
Scote
Gail
Kane
Sheryl
Hapsbuch Kendrick
Henders
Mark
Atherton
Katie
Bellwood
Frank
Cooper
Linda
Cronwith
Brent
Simpson
Sandrae
Sindole
Randy
Smith
Ellen
Vuanuo
Tuome
Szcznyck
Tadeuz
Wu
Tammy

Combined Name Fields


Full Name:

Concatenate
Exercise

Place the values below into the client letter where they belong.

Values
Current ratio
Debt to equity
Cash balance

1.1
3.1
45980

Client Letter
Dear client,
Your current ratio is and your debt to equity is.
You have cash in the bank.
Thanks,
CPA

Concatenate
Exercise

Place the values below into the client letter where they belong.

Values
Current ratio
Debt to equity
Cash balance

1.1
3.1
45980

Client Letter
Dear client,
Your current ratio is 1.1 and your debt to equity is 3.1.
You have $45,980 cash in the bank.
Thanks,
CPA

Você também pode gostar