Sunday, December 26, 2021

TEACHING EXCEL FOR DATA ANALYSIS: HANDS ON 16 Analyzing data using text functions

 

Analyzing data using text functions

Using some of the text functions that you have learned about in this session, you would like to automate portions of an invoice form to decrease the time needed for data entry.

1. Click on the link below to open the Microsoft Excel exercise document you can use to complete this exercise.

https://github.com/alcadelina/Excel-
2. First you would like to find the first initial from the first name that is entered into column A. Click to select cell C2 and type “=LEFT(A2)” into the Formula Bar:

Excel workbook open, Cell C2 selected and typed "=LEFT(A2)" into the Formula Bar

3. Press the Enter key on your keyboard and you will see that the previously selected cell now displays the initial from the first name (“J” in this case):

Excel workbook open, Enter key pressed ad the previously selected cell now displays the initial from the first name

4. Next, you need to do the same thing and find the first initial from the last name that is entered into column B. Click to select cell D2 and type “=LEFT(B2)” into the Formula Bar:

Excel workbook open, Cell D2 selected and typed "=LEFT(B2)" into the Formula Bar

5. Press the Enter key on your keyboard and you will see that the previously selected cell now displays the initial from the last name (“S” in this case):

Excel workbook open, Enter tab pressed, The previously Cell selected now displays the initial from the last name

6. Now you need to use the TEXTJOIN function to fill in the Full Initials column. Click to select the E2 cell and then type “=TEXTJOIN(,TRUE,C2,D2)” into the Formula Bar:

Excel workbook open, Cell E2 selected and typed "=TEXTJOIN(,TRUE,C2,D2)" into the Formula Bar

7. Press the Enter key and you will see that the values from cells C2 and D2 have been combined to show the full initials:

Excel workbook open, Enter tab pressed, the values from the Cells C2 and D2 have been combined to show the full initials

8. Finally, you would like to automatically fill in the shipment method based on the number of characters that appear in the invoice number. If the invoice has more than five characters, then it is designated a rush order and if it is five characters or less, it is a standard order. Select H2:

Excel workbook open, Cell H2 selected

9. Type “=IF(LEN(G2)>5, "RUSH", "STANDARD")” into the Formula Bar.

Note: The IF function will be covered in greater detail in the next lesson.

Excel workbook open, Typed "IF(LEN(G2)>5, "RUSH", "STANDARD" into the Formula Bar

10. Press the Enter key on your keyboard and you will see that this particular order is a rush order because its invoice number is more than five characters:

Excel workbook open, Enter key clicked, the "RUSH" word appears in the cell because the number contain more then 5 characters

11. Use the Auto Fill feature to copy the formulas that you entered during this activity into the adjacent cells in row 3:

Excel workbook open, Auto Fill feature used to copy the formulas into the adjacent Cells in row 3

12. Save the current workbook as Activity 2-1 Complete and then close Microsoft 365 Excel to complete this exercise.

13. Now, you can check out an example of a completed document in the link below:

https://github.com/alcadelina/Excel-

No comments:

Post a Comment