Spreadsheet Tricks Flashcards

1
Q

How would you calculate the number of days/months/years between two dates? (Function?)

A

DATEDIF(Start Date,End Date,unit)
units: D, M, Y

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

What function would you use to determine the # of characters in a cell (for data cleaning purposes)

A

=LEN() returns a character count

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

Cleanup: If you needed to break apart a fixed number of characters from the start or end of a string, what function could you use?

A

=LEFT(cell, # chars)
=RIGHT(cell, #chars)

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

Cleanup: How would you split this data series into 3 spearate columns?
9823MR521
1231SE214

A

=LEFT(cell, 4) extract first 4 chars
=SPLIT(cell, 5, 2) extract two chars starting with fifth
=RIGHT(cell, 3) extract last 3 chars

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

Cleanup: What function would you use to sequentially combine the value in cell A1 and A2 into a single cell with a space character between the values?

A

=CONCATENATE(A1,” “,A2)
=A1 & “ “ & A2

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

Cleanup: What is the funtion to remove any leading, trailing, or repeated spaces in a string?

A

=TRIM(cell)

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

Cleanup: What are two ways you might divide the following data into two separate columns?
12312-AABE
123-AFI

A

Text to Columns
or
=SPLIT(cell, “-“)

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