Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 25

'Text' is unrefined raw string

Text
San Juan-Carolina-Caguas, PR
Manhattan, KS
Hilton Head Island-Bluffton-Beaufort, SC
Kahului-Wailuku-Lahaina, HI
Spartanburg, SC
Baton Rouge, LA
Rockingham County-Strafford County, NH, Metropolitan Division
Salisbury, MD-DE
Wichita Falls, TX
Colorado Springs, CO
Cambridge-Newton-Framingham, MA, Metropolitan Division
Albuquerque, NM
Portland-South Portland, ME
Silver Spring-Frederick-Rockville, MD, Metropolitan Division
Charlotte-Concord-Gastonia, NC-SC
Ogden-Clearfield, UT
Cedar Rapids, IA
Tallahassee, FL
Portland-Vancouver-Hillsboro, OR-WA
Grand Rapids-Wyoming, MI
Riverside-San Bernardino-Ontario, CA
Des Moines-West Des Moines, IA
Fayetteville-Springdale-Rogers, AR-MO
Minneapolis-St. Paul-Bloomington, MN-WI
Worcester, MA-CT
Wilmington, DE-MD-NJ, Metropolitan Division
Houston-The Woodlands-Sugar Land, TX
Spokane-Spokane Valley, WA
Grand Island, NE
Oakland-Hayward-Berkeley, CA, Metropolitan Division
Myrtle Beach-Conway-North Myrtle Beach, SC-NC
Washington-Arlington-Alexandria, DC-VA-MD-WV, Metropolitan Division
Seattle-Bellevue-Everett, WA, Metropolitan Division
Montgomery County-Bucks County-Chester County, PA, Metropolitan Division
Topeka, KS
Sioux City, IA-NE-SD
Springfield, MA
Deltona-Daytona Beach, FL
New York-Jersey City-White Plains, NY-NJ, Metropolitan Division
Rochester, NY
Newark, NJ-PA, Metropolitan Division
College Station-Bryan, TX
Virginia Beach-Norfolk-Newport News, VA-NC
Albany-Schenectady-Troy, NY
Greenville-Anderson-Mauldin, SC
North Port-Sarasota-Bradenton, FL
Fort Worth-Arlington, TX, Metropolitan Division
Warren-Troy-Farmington Hills, MI, Metropolitan Division
Hartford-West Hartford-East Hartford, CT
Providence-Warwick, RI-MA
Camden, NJ, Metropolitan Division
Burlington-South Burlington, VT
Sioux Falls, SD
Atlanta-Sandy Springs-Roswell, GA
South Bend-Mishawaka, IN-MI
Anchorage, AK
Phoenix-Mesa-Scottsdale, AZ
Aberdeen, SD
Dallas-Plano-Irving, TX, Metropolitan Division
Hagerstown-Martinsburg, MD-WV
ST. Cloud, MN
Claremont-Lebanon, NH-VT
Boise City, ID
Buffalo-Cheektowaga-Niagara Falls, NY
Billings, MT
Minot, ND
Austin-Round Rock, TX
Los Angeles-Long Beach-Anaheim, CA
Sacramento--Roseville--Arden-Arcade, CA
Memphis, TN-MS-AR
Cincinnati, OH-KY-IN
Corpus Christi, TX
Baltimore-Columbia-Towson, MD
Omaha-Council Bluffs, NE-IA
Rapid City, SD
Pensacola-Ferry Pass-Brent, FL
Denver-Aurora-Lakewood, CO
Miami-Fort Lauderdale-West Palm Beach, FL
Dayton, OH
Columbus, OH
Tampa-St. Petersburg-Clearwater, FL
Charleston-North Charleston, SC
Port St. Lucie, FL
Orlando-Kissimmee-Sanford, FL
Allentown-Bethlehem-Easton, PA-NJ
Little Rock-North Little Rock-Conway, AR
Nassau County-Suffolk County, NY, Metropolitan Division
Oklahoma City, OK
Crestview-Fort Walton Beach-Destin, FL
Pittsburgh, PA
Kingsport-Bristol-Bristol, TN-VA
Philadelphia, PA, Metropolitan Division
Salina, KS
Boston-United, MA, Metropolitan Division
El Paso, TX
Jacksonville, FL
Richmond, VA
San Antonio-New Braunfels, TX
Salt Lake City, UT
Shicago-Naperville-Elgin, IL-IN-WI
St. Louis, MO-IL
Knoxville, TN
Huntington-Ashland, WV-KY-OH
Louisville/Jefferson County, KY-IN
Indianapolis-Carmel-Anderson, IN
Columbia, SC
Grand Forks, ND-MN
Milwaukee-Waukesha-West Allis, WI
Panama City, FL
Tuscaloosa, AL
New Orleans-Metairie, LA
Cleveland-Elyria, OH
Provo-Orem, UT
Kansas City, MO-KS
Lincoln, NE
Tulsa, OK
Fort Wayne, IN
Wichita, KS
Toledo, OH
Birmingham-Hoover, AL
Jackson, MS
Lansing-East Lansing, MI
Nashville-Davidson--Murfreesboro--Franklin, TN
Florence, SC
Augusta-Richmond County, GA-SC
North Platte, NE
Lexington-Fayette, KY
Scottsbluff, NE
Evansville, IN-KY
Fargo, ND-MN
Bismarck, ND
Charleston, WV
Duluth, MN-WI
Reno, NV
Gainesville, FL
Rochester, MN
STEP 1: Notice that some fields in column A end with
", Metropolitan Divison". Refine the text by substituing the
Find the length of
", Metropolitan Division" string to an empty string "" the 'Refined Text' in
(Make sure you are eliminating the comma too!)
column B
STEP 2: Refine the text by stripping off any whitespaces in the
beginning or ending

Refined Text Length of Refined Text


San Juan-Carolina-Caguas, PR 28
Manhattan, KS 13
Hilton Head Island-Bluffton-Beaufort, SC 40
Kahului-Wailuku-Lahaina, HI 27
Spartanburg, SC 15
Baton Rouge, LA 15
Rockingham County-Strafford County, NH 38
Salisbury, MD-DE 16
Wichita Falls, TX 17
Colorado Springs, CO 20
Cambridge-Newton-Framingham, MA 31
Albuquerque, NM 15
Portland-South Portland, ME 27
Silver Spring-Frederick-Rockville, MD 37
Charlotte-Concord-Gastonia, NC-SC 33
Ogden-Clearfield, UT 20
Cedar Rapids, IA 16
Tallahassee, FL 15
Portland-Vancouver-Hillsboro, OR-WA 35
Grand Rapids-Wyoming, MI 24
Riverside-San Bernardino-Ontario, CA 36
Des Moines-West Des Moines, IA 30
Fayetteville-Springdale-Rogers, AR-MO 37
Minneapolis-St. Paul-Bloomington, MN-WI 39
Worcester, MA-CT 16
Wilmington, DE-MD-NJ 20
Houston-The Woodlands-Sugar Land, TX 36
Spokane-Spokane Valley, WA 26
Grand Island, NE 16
Oakland-Hayward-Berkeley, CA 28
Myrtle Beach-Conway-North Myrtle Beach, SC-NC 45
Washington-Arlington-Alexandria, DC-VA-MD-WV 44
Seattle-Bellevue-Everett, WA 28
Montgomery County-Bucks County-Chester County, PA 49
Topeka, KS 10
Sioux City, IA-NE-SD 20
Springfield, MA 15
Deltona-Daytona Beach, FL 25
New York-Jersey City-White Plains, NY-NJ 40
Rochester, NY 13
Newark, NJ-PA 13
College Station-Bryan, TX 25
Virginia Beach-Norfolk-Newport News, VA-NC 42
Albany-Schenectady-Troy, NY 27
Greenville-Anderson-Mauldin, SC 31
North Port-Sarasota-Bradenton, FL 33
Fort Worth-Arlington, TX 24
Warren-Troy-Farmington Hills, MI 32
Hartford-West Hartford-East Hartford, CT 40
Providence-Warwick, RI-MA 25
Camden, NJ 10
Burlington-South Burlington, VT 31
Sioux Falls, SD 15
Atlanta-Sandy Springs-Roswell, GA 33
South Bend-Mishawaka, IN-MI 27
Anchorage, AK 13
Phoenix-Mesa-Scottsdale, AZ 27
Aberdeen, SD 12
Dallas-Plano-Irving, TX 23
Hagerstown-Martinsburg, MD-WV 29
ST. Cloud, MN 13
Claremont-Lebanon, NH-VT 24
Boise City, ID 14
Buffalo-Cheektowaga-Niagara Falls, NY 37
Billings, MT 12
Minot, ND 9
Austin-Round Rock, TX 21
Los Angeles-Long Beach-Anaheim, CA 34
Sacramento--Roseville--Arden-Arcade, CA 39
Memphis, TN-MS-AR 17
Cincinnati, OH-KY-IN 20
Corpus Christi, TX 18
Baltimore-Columbia-Towson, MD 29
Omaha-Council Bluffs, NE-IA 27
Rapid City, SD 14
Pensacola-Ferry Pass-Brent, FL 30
Denver-Aurora-Lakewood, CO 26
Miami-Fort Lauderdale-West Palm Beach, FL 41
Dayton, OH 10
Columbus, OH 12
Tampa-St. Petersburg-Clearwater, FL 35
Charleston-North Charleston, SC 31
Port St. Lucie, FL 18
Orlando-Kissimmee-Sanford, FL 29
Allentown-Bethlehem-Easton, PA-NJ 33
Little Rock-North Little Rock-Conway, AR 40
Nassau County-Suffolk County, NY 32
Oklahoma City, OK 17
Crestview-Fort Walton Beach-Destin, FL 38
Pittsburgh, PA 14
Kingsport-Bristol-Bristol, TN-VA 32
Philadelphia, PA 16
Salina, KS 10
Boston-United, MA 17
El Paso, TX 11
Jacksonville, FL 16
Richmond, VA 12
San Antonio-New Braunfels, TX 29
Salt Lake City, UT 18
Shicago-Naperville-Elgin, IL-IN-WI 34
St. Louis, MO-IL 16
Knoxville, TN 13
Huntington-Ashland, WV-KY-OH 28
Louisville/Jefferson County, KY-IN 34
Indianapolis-Carmel-Anderson, IN 32
Columbia, SC 12
Grand Forks, ND-MN 18
Milwaukee-Waukesha-West Allis, WI 33
Panama City, FL 15
Tuscaloosa, AL 14
New Orleans-Metairie, LA 24
Cleveland-Elyria, OH 20
Provo-Orem, UT 14
Kansas City, MO-KS 18
Lincoln, NE 11
Tulsa, OK 9
Fort Wayne, IN 14
Wichita, KS 11
Toledo, OH 10
Birmingham-Hoover, AL 21
Jackson, MS 11
Lansing-East Lansing, MI 24
Nashville-Davidson--Murfreesboro--Franklin, TN 46
Florence, SC 12
Augusta-Richmond County, GA-SC 30
North Platte, NE 16
Lexington-Fayette, KY 21
Scottsbluff, NE 15
Evansville, IN-KY 17
Fargo, ND-MN 12
Bismarck, ND 12
Charleston, WV 14
Duluth, MN-WI 13
Reno, NV 8
Gainesville, FL 15
Use the =MID() function to
Find the first Find the last two find the first two
character of the characters of alphabetical characters Are the strings in
after the comma delimiter
'Refined Text' in 'Refined Text' in "," column E and F
column B, using the column B, using the exactly equal?
=LEFT() function =RIGHT() function HINT: You need nesting,
recall from lecture

Left Right Mid Is equal?


S PR PR True
M KS KS True
H SC SC True
K HI HI True
S SC SC True
B LA LA True
R NH NH True
S DE MD False
W TX TX True
C CO CO True
C MA MA True
A NM NM True
P ME ME True
S MD MD True
C SC NC False
O UT UT True
C IA IA True
T FL FL True
P WA OR False
G MI MI True
R CA CA True
D IA IA True
F MO AR False
M WI MN False
W CT MA False
W NJ DE False
H TX TX True
S WA WA True
G NE NE True
O CA CA True
M NC SC False
W WV DC False
S WA WA True
M PA PA True
T KS KS True
S SD IA False
S MA MA True
D FL FL True
N NJ NY False
R NY NY True
N PA NJ False
C TX TX True
V NC VA False
A NY NY True
G SC SC True
N FL FL True
F TX TX True
W MI MI True
H CT CT True
P MA RI False
C NJ NJ True
B VT VT True
S SD SD True
A GA GA True
S MI IN False
A AK AK True
P AZ AZ True
A SD SD True
D TX TX True
H WV MD False
S MN MN True
C VT NH False
B ID ID True
B NY NY True
B MT MT True
M ND ND True
A TX TX True
L CA CA True
S CA CA True
M AR TN False
C IN OH False
C TX TX True
B MD MD True
O IA NE False
R SD SD True
P FL FL True
D CO CO True
M FL FL True
D OH OH True
C OH OH True
T FL FL True
C SC SC True
P FL FL True
O FL FL True
A NJ PA False
L AR AR True
N NY NY True
O OK OK True
C FL FL True
P PA PA True
K VA TN False
P PA PA True
S KS KS True
B MA MA True
E TX TX True
J FL FL True
R VA VA True
S TX TX True
S UT UT True
S WI IL False
S IL MO False
K TN TN True
H OH WV False
L IN KY False
I IN IN True
C SC SC True
G MN ND False
M WI WI True
P FL FL True
T AL AL True
N LA LA True
C OH OH True
P UT UT True
K KS MO False
L NE NE True
T OK OK True
F IN IN True
W KS KS True
T OH OH True
B AL AL True
J MS MS True
L MI MI True
N TN TN True
F SC SC True
A SC GA False
N NE NE True
L KY KY True
S NE NE True
E KY IN False
F MN ND False
B ND ND True
C WV WV True
D WI MN False
R NV NV True
G FL FL True
#VALUE! #VALUE!
Find the first word in the 'Refined
Substitute the string DO NOT MOD
String' from column B. Nest this
"TRUE" to an empty function to trim off any leading or Length of first word ANYTHING IN COL
in column I
string "" K, L, M
trailing whitespaces

First word (trimmed) Length of first word Hash


True San 3 187
True Manhattan 9 263
True Hilton 6 194
True Kahului-Wailuku-Lahaina 23 380
True Spartanburg 11 437
True Baton 5 93
True Rockingham 10 130
False Salisbury 9 590
True Wichita 7 21
True Colorado 8 362
True Cambridge-Newton-Framingham 27 893
True Albuquerque 11 523
True Portland-South 14 53
True Silver 6 800
False Charlotte-Concord-Gastonia 26 775
True Ogden-Clearfield 16 532
True Cedar 5 456
True Tallahassee 11 486
False Portland-Vancouver-Hillsboro 28 53
True Grand 5 635
True Riverside-San 13 887
True Des 3 893
False Fayetteville-Springdale-Rogers 30 7
False Minneapolis-St. 15 945
False Worcester 9 416
False Wilmington 10 279
True Houston-The 11 237
True Spokane-Spokane 15 129
True Grand 5 635
True Oakland-Hayward-Berkeley 24 589
False Myrtle 6 227
False Washington-Arlington-Alexandria 31 287
True Seattle-Bellevue-Everett 24 775
True Montgomery 10 254
True Topeka 6 745
False Sioux 5 491
True Springfield 11 884
True Deltona-Daytona 15 573
False New 3 941
True Rochester 9 726
False Newark 6 11
True College 7 950
False Virginia 8 726
True Albany-Schenectady-Troy 23 533
True Greenville-Anderson-Mauldin 27 241
True North 5 831
True Fort 4 951
True Warren-Troy-Farmington 22 598
True Hartford-West 13 88
False Providence-Warwick 18 389
True Camden 6 686
True Burlington-South 16 805
True Sioux 5 491
True Atlanta-Sandy 13 718
False South 5 845
True Anchorage 9 733
True Phoenix-Mesa-Scottsdale 23 325
True Aberdeen 8 523
True Dallas-Plano-Irving 19 13
False Hagerstown-Martinsburg 22 900
True ST. 3 20
False Claremont-Lebanon 17 256
True Boise 5 568
True Buffalo-Cheektowaga-Niagara 27 781
True Billings 8 142
True Minot 5 757
True Austin-Round 12 568
True Los 3 700
True Sacramento--Roseville--Arden-Arcade 35 222
False Memphis 7 19
False Cincinnati 10 173
True Corpus 6 820
True Baltimore-Columbia-Towson 25 975
False Omaha-Council 13 768
True Rapid 5 498
True Pensacola-Ferry 15 300
True Denver-Aurora-Lakewood 22 973
True Miami-Fort 10 362
True Dayton 6 96
True Columbus 8 224
True Tampa-St. 9 840
True Charleston-North 16 704
True Port 4 187
True Orlando-Kissimmee-Sanford 25 814
False Allentown-Bethlehem-Easton 26 745
True Little 6 604
True Nassau 6 49
True Oklahoma 8 920
True Crestview-Fort 14 155
True Pittsburgh 10 672
False Kingsport-Bristol-Bristol 25 642
True Philadelphia 12 38
True Salina 6 374
True Boston-United 13 748
True El 2 286
True Jacksonville 12 11
True Richmond 8 474
True San 3 187
True Salt 4 907
False Shicago-Naperville-Elgin 24 939
False St. 3 20
True Knoxville 9 999
False Huntington-Ashland 18 587
False Louisville/Jefferson 20 781
True Indianapolis-Carmel-Anderson 28 646
True Columbia 8 179
False Grand 5 635
True Milwaukee-Waukesha-West 23 683
True Panama 6 728
True Tuscaloosa 10 649
True New 3 941
True Cleveland-Elyria 16 917
True Provo-Orem 10 387
False Kansas 6 394
True Lincoln 7 20
True Tulsa 5 85
True Fort 4 951
True Wichita 7 21
True Toledo 6 408
True Birmingham-Hoover 17 420
True Jackson 7 163
True Lansing-East 12 33
True Nashville-Davidson--Murfreesboro--Franklin 42 626
True Florence 8 833
False Augusta-Richmond 16 288
True North 5 831
True Lexington-Fayette 17 505
True Scottsbluff 11 325
False Evansville 10 696
False Fargo 5 377
True Bismarck 8 31
True Charleston 10 704
False Duluth 6 759
True Reno 4 977
True Gainesville 11 997
#VALUE! #VALUE! #VALUE!
Find the character at index position
mentioned in column M. =CONCAT(N13,N71,
DO NOT MODIFY N68,N123)
For example, the character at index 10
ANYTHING IN COLUMNS ($M8) in 'Refined Text' i.e. $B8 function should
K, L, M stored in the cell
HINT: Use =MID() function with $O$8
num_char=1

=ABS(FLOOR.MATH((K8 Char at index Concatenation result


10 10 C BiTs
14 14 olo
5 5 o t
25 25 ai
27 27 Oln
1 1 B r,
25 25 o T
44 44 n
10 10 a
20 20 O enTu
5 5 r n
35 35 e
33 33 yn
57 57
9 9 e i
21 21 yyc
37 37 H
32 32 i
93 93 Nay
51 51 uH
41 41 #VALUE!
80 80 dea
111 111 yu
36 36 N S-
27 27 He
7 7 g lLy
16 16 d S
27 27 eo
55 55 AL
9 9 H
5 5 l o
108 108 A
10 10 e a
24 24
68 68 i
39 39 ,
71 71 e
19 19 a A.i
82 82 c
60 60 te
7 7 , e.
77 77 r
39 39 A yat
9 9 c e
60 60 eer
66 66 a
85 85 V
11 11 y e
44 44 l
7 7 e
62 62
30 30 V l
41 41 s
28 28 l
71 71 Dtl
61 61 Ts
30 30 on
42 42 ,t
43 43 i
26 26 D ln
2 2 T ,
16 16 o u
49 49
22 22 i e
4 4 l Tu
71 71 n
31 31 e
59 59 nc
115 115
10 10 T
3 3 n yc
71 71
25 25 n #VALUE!
41 41 y
42 42 H
15 15 y #VALUE!
40 40 a
5 5 i u
3 3 y -
12 12 H e
52 52 y
20 20 a S
11 11 u
8 8 - L
12 12 e
36 36 y o
15 15 S A
78 78
38 38 L
53 53
16 16 o
16 16 A
31 31 i
52 52
26 26 e
19 19 .
37 37
10 10 i t
83 83 e
12 12 e r
3 3 . a
88 88
8 8 t e
10 10 e
25 25 r
8 8 a
54 54
8 8 e
63 63
50 50 l
86 86 s
59 59
24 24 t
28 28
6 6 l n
4 4 s ,
89 89
6 6 t
34 34
6 6 n u
8 8 ,
26 26 e
131 131
73 73
20 20 u
75 75 c
14 14 e
16 16
52 52
31 31
7 7 c #VALUE!
56 56
68 68
94 94
83 83
#VALUE! #VALUE! #VALUE!
Final step: File 'MAGIC.xlsx' (in
Password to sheet named read-only mode) can be found
'MAGIC' at URL:
Uppercase of
$O$8 should be https://rebrand.ly/G516_magic
stored in cell The plaintext in cell
$P$8 $Q$8 is the password
to open Sheet named The password to open this file
'MAGIC' is plaintext in cell $Q$8

Uppercase of $O$8 Password to sheet nameLength of Password (in cell $R$8)


BITS CONCATENATE(P8,Sheet2 26 24
OLO
T
AI
OLN
R,
If you have found the final
T password, then it's highly
N probable that it is correct.
In case the Sheet 'MAGIC'
is not opening with the
ENTU password you found, it is
because the newline
N character is copied too.
E Just type out the 24-
YN character long password
to open the sheet 'MAGIC'

I
YYC
H
I
NAY
UH
#VALUE!
DEA
YU
S-
HE
LLY
S
EO
AL

O
A
A

I
,
E
A.I
C
TE
E.
R
YAT
E
EER
A
V
E
L

L
S

DTL
TS
ON
,T
I
LN
,
U

E
TU
N
E
NC

YC

#VALUE!
Y
H
#VALUE!
A
U
-
E
Y
S

L
O
A

E
.

T
E
R
A

L
S

N
,

#VALUE!
Pilani - It's Magic

You might also like