Sandipan BA Practical file
Sandipan BA Practical file
1. Select a range
First, select your desired range. You can do these one of two ways.
Option 1: Highlight a range directly in the spreadsheet. This can be anything from a single cell to multiple cells
across different rows and columns. If you're not managing a lot of data, this is the quickest way to go.
Option 2: Without highlighting anything, select Format > Conditional formatting. From the Conditional format rules
window that appears, enter your desired range under Apply to range.
To add more ranges, click Select data range, which looks like a grid, from the cell range text box. In the Select a
data range window that appears, click Add another range.
2. Create the condition
Once you've selected your range, create your trigger rule (i.e., you’re if this, then that statement) in the Format cells
if section. There are a lot of triggers to choose from, which will impact how you format your rule. Let's look at the
most common triggers.
Google Sheets automatically takes the source data for Client Names, removes any duplicates, and populates a list of
unique values as rows in your pivot table. By default, the client names will appear in alphabetical order (A to Z).
Add columns to your pivot table
The next step is to add Project Type as the columns. In the editor, next to Columns, click Add, and select Project
Type. Now your table should display each project type as separate column headers across columns B to G.
1.3 IF Function
2 The IF function is a premade function in Google Sheets, which returns values based on
a true or false condition.
3 It is typed =IF and has 3 parts:
1.4 Count IF
The COUNTIF function is a premade function in Google Sheets, which counts cells that match a
specified condition.
=COUNTIF(range, criterion)
1. From the main menu, select Edit, then Find and Replace.
You can also use the keyboard shortcut Ctrl + H (Cmd + H on Mac) to find and replace.
This will load the Find and replace feature:
2. Type the word or string that you want to find into the "Find" textbox.
Type the word or string you want to replace in the text box beside the Find label and the string to replace it in the
text box beside the Replace with label. For our example, we want to replace Zurich with Barnard.
4. Click Replace all.
Depending on what you need, you can replace every instance at once or replace the strings one-by-one.
To replace the string one-by-one, click Find first. Google Sheets will highlight the first result. The Replace button
will become visible. You can enter a specific string to replace the original.
Click the Replace button. A message saying that the string was replaced will be displayed. Google Sheets will
automatically go to the next instance of your search term. From there, you can click Replace again or enter a new
term in the Replace with textbox and then press replace.
If you want to replace them all at once, click the Replace all button. A message indicating the number of
instances replaced will appear after the operation.
Before:
After (note the two upper cells containing “Zurich” now contain "Barnard"):
1.6 VLOOKUP
The VLOOKUP function is a premade function in Google Sheets, which allows searches across columns.
search key: Select the cell where search values will be entered.
index: The data which is being looked up. The input is the number of the column, counted from the left:
H4 is where the search result is displayed. In this case, the Pokemon's names based on their ID#.
4. Select the cell where search value will be entered (H3)
H3 selected as serach_key. This is the cell where the search query is entered. In this case the Pokemon's ID#.
5. Type,
6. Specify the table range A2:E21
7. Type,
8. Type the number of the Name column, counted from the left: 2
9. Type TRUE
10. Hit enter
Have a look at that! The VLOOKUP function has successfully found the Pokemon Squirtle which has the ID# 7.
Now, the function is trying to look up 4 in the Name column, which returns the #N/A error.
Let's switch the labels, and try to enter Caterpie into the cell H3, where the vlookup functions finds the search key:
Let's change the value of the [is_sorted] part of the function from TRUE to FALSE: