EXCEL FUNCTIONS FOR DATA CLEANING Flashcards

1
Q

Removes leading, trailing, and extra spaces from a text string.
Example: =TRIM(“ Hello, world! “) returns “Hello, world!”

A

TRIM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use case: Cleaning up text data with inconsistent spacing.

A

TRIM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Removes non-printable characters from a text string.
Example: =CLEAN(“Hello, world! \t \r”) removes tab and carriage return
characters.

A

CLEAN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Removing control characters or other unwanted characters.

A

CLEAN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Replaces occurrences of old_text with new_text in a text string.

Example: =SUBSTITUTE(“Hello, world!”, “world”, “there”) returns “Hello,
there!”

A

SUBSTITUTE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Use case: Correcting typos, standardizing data formats, or removing specific words or phrases.

A

SUBSTITUTE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Returns a specified number of characters from the beginning of a text string.

Example: =LEFT(“Hello, world!”, 5) returns “Hello”

A

LEFT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Use case: Extracting specific parts of text data, such as first names or initials

A

LEFT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Returns a specified number of characters from the end of a
text string.

Example: =RIGHT(“Hello, world!”, 5) returns “world”

A

RIGHT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Use case: Extracting last names or suffixes.

A

RIGHT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Returns a specified number of characters from a
text string, starting at a specified position.

Example: =MID(“Hello, world!”, 7, 5) returns “world”

A

MID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Extracting specific parts of text data, such as city names or zip codes

A

MID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Returns the number of characters in a text string.

Example: =LEN(“Hello, world!”) returns 13

A

LEN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Use case: Determining the length of text strings for validation or formatting
purposes.

A

LEN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Converts all characters in a text string to uppercase.

Example: =UPPER(“hello, world!”) returns “HELLO, WORLD!”

A

UPPER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Converts all characters in a text string to lowercase.

Example: =LOWER(“HELLO, WORLD!”) returns “hello, world!”

17
Q

Returns the serial number of a date.

Example: =DATE(2023, 12, 25) returns the serial number for December 25,
2023.

Use case: Converting text dates to numerical values for calculations

18
Q

Returns the serial number of a time.

Example: =TIME(15, 30, 0) returns the serial number for 3:30 PM.

Use case: Converting text times to numerical values for calculations.

19
Q

Use case: Converting text dates to numerical values for calculations.

20
Q

Use case: Converting text times to numerical values for calculations.

21
Q

Returns the current date and time as a serial number.

22
Q

Use case: Timestamping data or calculating time differences.

23
Q

Returns one value if a condition is true, and another value if it is false.

Example: =IF(A1>100, “Greater than 100”, “Less than or equal to 100”)

24
Q

Use case: Creating conditional statements for data cleaning tasks, such as flagging errors or inconsistencies.

25
Counts the number of cells within a range that meet a specified criterion. Example: =COUNTIF(A1:A10, "apple") counts the number of cells in A1:A10 containing "apple".
COUNTIF
26
Use case: Identifying duplicate values or checking for specific conditions.
COUNTIF
27
Calculates the average of cells within a range that meet a specified criterion.
AVERAGEIF
28
Example: =AVERAGEIF(A1:A10, ">50", B1:B10) averages B1:B10 if A1:A10 is greater than 50.
AVERAGEIF
29
Use case: Calculating averages for specific subsets of data.
AVERAGEIF
30
Combines multiple text strings into a single string.
CONCATENATE
31
Example: =CONCATENATE(A1, " ", B1) combines A1 and B1 with a space.
CONCATENATE
32
Use case: Creating new columns or fields by combining existing data.
CONCATENATE
33
Returns TRUE if a value is an error value, and FALSE otherwise.
IFERROR
34
Example: =IFERROR(A1/B1, "Error") handles division errors.
IFERROR
35
Use case: Handling errors in formulas and preventing them from propagating.
IFERROR