0% found this document useful (0 votes)
8 views45 pages

Chapter2 LimpiarDatos

Uploaded by

Orlando
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views45 pages

Chapter2 LimpiarDatos

Uploaded by

Orlando
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Cleaning text data

D ATA A N A LY S I S I N E X C E L

Jen Bricker
Head of Career Services, DataCamp
Data analysis process review

DATA ANALYSIS IN EXCEL


Data analysis process review

DATA ANALYSIS IN EXCEL


Data analysis process review

DATA ANALYSIS IN EXCEL


Data analysis process review

DATA ANALYSIS IN EXCEL


Concatenating text strings

DATA ANALYSIS IN EXCEL


CONCATENATE() function syntax
Syntax:

=CONCATENATE(value1, [value2],...)

Example:

=CONCATENATE(A2,B2)

DATA ANALYSIS IN EXCEL


CONCATENATE() improved
Example:

=CONCATENATE(A2," - ",B2)

DATA ANALYSIS IN EXCEL


LOWER(), UPPER(), and PROPER() functions
Syntax:

=LOWER(text1)

Syntax:

=UPPER(text1)

Syntax:

=PROPER(text1)

DATA ANALYSIS IN EXCEL


Output

DATA ANALYSIS IN EXCEL


Let's practice!
D ATA A N A LY S I S I N E X C E L
Extracting text from
cells
D ATA A N A LY S I S I N E X C E L

Jen Bricker
Head of Career Services, DataCamp
What is a string?

DATA ANALYSIS IN EXCEL


Counting characters

DATA ANALYSIS IN EXCEL


LEN() function syntax
Syntax:

=LEN(text)

Example:

=LEN("3D My Kicks - 3Dmykicks.com")

or

=LEN(B2)

DATA ANALYSIS IN EXCEL


Extracting text

DATA ANALYSIS IN EXCEL


LEFT() function syntax
Syntax:

=LEFT(text,number_of_characters)

Example:

=LEFT(B2,LEN("3D My Kicks"))

DATA ANALYSIS IN EXCEL


Extracting text continued
What is the length of the bad string?

=LEN(",'type'")

result: 7

DATA ANALYSIS IN EXCEL


Nesting LEFT() and LEN()
Example

=LEFT(M2,LEN(M2)-7)

DATA ANALYSIS IN EXCEL


RIGHT() function syntax
Syntax:

=RIGHT(text,number_of_characters)

DATA ANALYSIS IN EXCEL


Replacing text

DATA ANALYSIS IN EXCEL


SUBSTITUTE() function syntax
Syntax:

=SUBSTITUTE(text, old_text, new_text, [instance])

Example:

=SUBSTITUTE(B2,":","-")

DATA ANALYSIS IN EXCEL


Output

DATA ANALYSIS IN EXCEL


Let's practice!
D ATA A N A LY S I S I N E X C E L
Preparing date data
D ATA A N A LY S I S I N E X C E L

Jen Bricker
Head of Career Services, DataCamp
Interpreting date analysis requests
Look at the project data by date

Data by launch date?

How long a project campaign ran?

Trends by year, month, day of the week?

DATA ANALYSIS IN EXCEL


Project length
Syntax:

=deadline-launched_at

Example:

=E2-D2

DATA ANALYSIS IN EXCEL


Dynamic date and time entry

DATA ANALYSIS IN EXCEL


NOW() and TODAY() functions syntax
Syntax:

=NOW()

=TODAY()

Example:

=NOW()-E2

=TODAY()-E2

DATA ANALYSIS IN EXCEL


Continuous vs discrete date analysis

DATA ANALYSIS IN EXCEL


Continuous vs discrete date analysis

DATA ANALYSIS IN EXCEL


Months and days of the week

DATA ANALYSIS IN EXCEL


MONTH() function syntax
Syntax:

=MONTH(date)

Example:

=MONTH(E2)

DATA ANALYSIS IN EXCEL


WEEKDAY() function syntax
Syntax:

=WEEKDAY(date,[return_type])

return_type options

1 or omi ed: Sunday (1) to Saturday (7)

2: Monday (1) to Sunday (7)

Example:

=WEEKDAY(E2,2)

DATA ANALYSIS IN EXCEL


Let's practice!
D ATA A N A LY S I S I N E X C E L
The most important
function in Excel
D ATA A N A LY S I S I N E X C E L

Jen Bricker
Head of Career Services, DataCamp
VLOOKUP() introduction

DATA ANALYSIS IN EXCEL


DATA ANALYSIS IN EXCEL
DATA ANALYSIS IN EXCEL
VLOOKUP() syntax
Syntax:

=VLOOKUP (lookup_value, table_array, col_num, [range_lookup])

lookup_value : what you want to look up

table_array : where you want to look for it

col_num : the column number in the range containing the value to return

range_lookup : return an approximate ( TRUE ) or exact match ( FALSE )

DATA ANALYSIS IN EXCEL


Columns in common

DATA ANALYSIS IN EXCEL


VLOOKUP() applied
Syntax: Date Tables sheet:

=VLOOKUP (lookup_value, table_array,


col_num, [range_lookup])

Example:

=VLOOKUP(F2,'Date Tables'!D:E,2,FALSE)

DATA ANALYSIS IN EXCEL


VLOOKUP() and MONTH() combined
Nested Formula Example:

=VLOOKUP(MONTH(E2),'Date Tables'!D:E,2,FALSE)

DATA ANALYSIS IN EXCEL


DATA ANALYSIS IN EXCEL
Let's practice!
D ATA A N A LY S I S I N E X C E L

You might also like