| Text Functions Practice |
| Data | First 3 characters | Are the first 3 characters text? | Are the first 3 characters a number? | do the first three characters equal "abc"
use if() | Exactly equal | First 3 characters using UPPER function | First 3 characters using LOWER function | Blank space in Data | the chacter in the 4th position | EXACT match of 4th character in data with " " | Length of data in Column A | Data with any extra blank spaces removed | EXACT match of 4th character in data with " " |
| ABC 123 |
| 123 ABC |
| Abc 123 |
| aBC 123 |
| XYZ 345 |
| 345 XYZ |
| xYz 345 |
| abc 123 |
| 123456 |
| 789 |
| ab |
| abc |
| 15678 |
| abcdefg |
| ABC 1234 |
| ABCD 1234 |
| abcd1234 |
| Purpose: |
| Practice embedding text functions within another function (to eventually end up with a value that you can use as a criteria in an If function)
In other words: In Every function here, ONLY refer to the data column! |
| Use: LEFT(), RIGHT(), MID(), LEN(), ISTEXT(), ISNUMBER(), UPPER(), LOWER(), EXACT(), FIND(), TRIM(), |
| For each row 4 through 20: |
| Column B: return the the first three characters of the value of column A (Use: Left() ) |
| Column C: determine if these three characters are text (use: Istext() and Left() ) |
| Column D: determine if the first three characters in string is a number (use: ISNUMBER(), LEFT() ) |
| THINK: some of the values in column A are numbers, so what happens when you use the left() function? |
| Column E: determine if the first three characters in column A equal "abc" (use: if()function and comparison operator, giving appropriate response if true/false; LEFT() function) |
| Column F: determine if they are EXACTLY equal (when case senstivity is important) (USE: EXACT(), LEFT() ) |
| THINK: If combined with a VLOOKUP function, do you need an EXACT match? |
| Column G: return the uppercase representation of first three characters of the value of column A using an UPPER() function |
| Column H: return the lowercase representation of the first three characters of the value of column A. Use: LOWER(), LEFT() |
| Column I: determine if you have a blank space in your text string in Column A (use FIND()); |
| THINK: The find function did not work when the value in column A did not include a blank space or the value was a number |
| Column J: determine what character you have in the fourth position of your text string in column A (USE: Mid() ) |
| Column K: knowing that you should have a space in the 4th position of your data for some rows, determine if you do (Use: EXACT(), MID() ) |
| THINK: The data in A14 does not "look" like it has a blank in the fourth position of the text string. |
| Column L: Determine the length of the text string in Column A. Use: LEN() |
| NOTE that the computer says the length of your data in A14 is 12 characters |
| Column M: Use the Trim() function to remove any extra blank spaces at the end of your text string |
| Column N: Now determine whether you have an blank in the 4th position of your data in column A ( USE: EXACT(), MID(), TRIM() ) |