0% found this document useful (0 votes)
143 views2 pages

Kursus Microsoft Office Excel

Conditional formatting allows you to apply cell formatting based on conditions you specify. The IF function tests conditions and returns different values depending on whether the condition is true or false. The IF function can be used to conditionally format cells based on values. It checks if a value is greater than or less than a number, and returns one format if true and another if false. Nested IF functions allow for multiple conditions by checking multiple criteria ranges. Logical functions like AND, OR, and NOT can be combined with IF to add more complex conditional tests. This allows flexible conditional formatting based on flexible logical criteria.

Uploaded by

prs75
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views2 pages

Kursus Microsoft Office Excel

Conditional formatting allows you to apply cell formatting based on conditions you specify. The IF function tests conditions and returns different values depending on whether the condition is true or false. The IF function can be used to conditionally format cells based on values. It checks if a value is greater than or less than a number, and returns one format if true and another if false. Nested IF functions allow for multiple conditions by checking multiple criteria ranges. Logical functions like AND, OR, and NOT can be combined with IF to add more complex conditional tests. This allows flexible conditional formatting based on flexible logical criteria.

Uploaded by

prs75
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Quick Reference Guide

STARLIGHT EDUCATION EXCEL 2013 Logical Functions

COMMON LOGICAL THE IF FUNCTION TRUE OR FALSE IFERROR FUNCTION


FUNCTIONS
FUNCTION DESCRIPTION The IF function tests to see if a certain 1. The syntax of this function is :. 1. The Excel IFError function tests if
AND Returns TRUE if all condition in a spreadsheet is true or false. IF(logical_test, [value_if_true], an initial supplied value (or
arguments are met The syntax for the IF function is: [value_if_false]) expression) returns an error, and
FALSE Returns the logical =IF ( logical_test, value_if_true, 2. Create the following: if so, returns a second supplied
value FALSE value_if_false ) STUDENT SCORE RESULT GRADE argument; Otherwise the function
 logical_test - a value or expression returns the initial tested value.
IF Specified a logical test Student 1 35
that is tested to see if it is true or false 2. The IFError function is new to
to perform
 value_if_true - the value that is Student 2 67 Excel 2007, so is not available in
IFERROR Returns a value displayed if logical_test is true earlier versions of MS Excel
specified if a formula Student 3 88
 value_if_false - the value that is 3. The syntax of the function is:
evaluates to an error, displayed if logical_test is false Student 4 70 IFERROR( value, value_if_error )
otherwise, returns the 1. Enter 35 into cell D1 Student 5 95
result of the formula 2. Click on cell E1 - the location where 3. To determine who passed or failed the COMBINING THE OR WITH
NOT Reverses the logic of the results will be displayed test, the formula results reads:
its argument 3. Click on the Formulas tab THE IF FUNCTION
TEXT SCORE RESULT
OR Returns TRUE if any 4. Choose Function Library|Logical
argument is True Greater than or Passed
Functions from the ribbon to open the 1. By itself, the OR function has
TRUE Returns the logical equal to 70
drop down list limited usefulness. By combining
value of TRUE Less than 70 Failed
5. Click on IF in the list it with another function, such as
4. In cell C2, enter the following formula: the IF function, the OR function
6. On the Logical_test line in the dialog
IF(B2>=70, “Passed”, “Failed”) can increase the capabilities of
box, click on cell D1
THE AND FUNCTION 7. Type the less than symbol ( < ) and
5. To turn the list of test scores into grades, your spreadsheet.
we will embed an additional IF function 2. To Nest an OR function inside an
then the number 26
1. Enter the following data into cells D1 to as follows: IF function
8. On the Value_if_true line of the dialog
D3: 78 , 110 , 45 box, type 100 TEST SCORE GRADE =IF(OR(B1>100,B2>100,B3>10
2. Click on cell E1 - the location where the 9. On the Value_if_false line of the dialog Greater than 89 A 0),”Over Budget”,”Acceptable”)
results will be displayed box, type 200 and click OK From 80 to 89 B 3. Assuming this function is located
3. Click on the Formulas tab|Function 10. The value 200 should appear in cell From 70 to 79 C in cell C1, if any of these three
Library group|Logical|AND E1, as the value in D1 is > than 26 From 60 to 69 D cells (B1,B2, or B3) contains a
4. Provide D1<100 in the logical1 area Less than 60 F value greater than 100, the IF
5. Provide D2<100 in the logical2 area CHANGING THE IF FUNCTION'S function will show the statement
6. Based on these conditions, the nested
6. Provide D3<100 in the logical3 area RESULTS Over Budget in cell C1. If all three
formula entered in cell D2, will be:
7. Click OK cells have numbers less than or
IF(B2>89, “A”, IF(B2>79, “B”,
8. The value FALSE should appear in cell equal to 100, the IF function
1. To change the result in cell E1, IF(B2>69, “C”, IF(B2>59, “D”, “F”))))
E1 because the data in cell D2 is greater shows the statement Acceptable
change the number in cell D1. For 7. If we use the IF function four times, we
than 100 in cell C1.
example, change E1 to 15 and press need to include four ending parentheses
9. Modify D2 to read 75 and check the
the Enter key in the formula.
results
2. The value 100 should now be present
in cell E1 since the value in D1 is now
less than 26
3. If you click on cell E1, the complete
function = IF ( D1 < 26 , 100 , 200 )
appears in the formula bar
Quick Reference Guide
STARLIGHT EDUCATION EXCEL 2013 Conditional Formatting

CONDITIONAL FORMATTING DATA BARS ON TOTAL COLUMN APPLYING ICON SETS COUNTING DATA ENTRIES
1. Create the following: 1. Create the following: 1. Using the data from the previous task, 1. Using the data from the previous
we are considering three categories: task, click in A8
scores >=90, >=79 and <79 and with a 2. Type the formula
Type of Number on all =COUNT(A2:A5
2. Select the column(s) on which you want 3. Depress Enter to return a four
to show Icons (B2:E5)
3. Select the Home tab|Styles
COUNTING VALUE ENTRIES
group|Conditional Formatting|Icon
1. Using the data from the previous
2. Select B2:E6 Sets|More Rules
task, click in B8
3. Click the Home tab|Styles 4. At New Formatting Rule|Select a Rule
2. With the Average data highlighted (B6:E6), 2. Type the formula
group|Conditional Type |select an appropriate one. The
click Home tab|Styles group|Conditional =COUNTA(B2:B5)
Formatting|Highlight Cells first one is OK for now
Formatting|Color Scales and a scale 3. Depress Enter to return a four
Rules|Greater Than. 5. Under Edit the Rule Description|Format
4. Type 85 in the Greater Than dialog background Style| icon sets
5. Click OK 3. Repeat the above, Home tab|Styles 6. Under Icon pane ,we need a set which CREATE A SPARKLINE
6. All entries greater than 85 will group|Conditional Formatting|Color Scales contains 3 icons, so we can apply icons 1. Using the data from the previous
display with a red background. If and to choose your own color values, click with each category, as shown in the task, select F2:F5
there had been a 85 in the on More Rules screenshot below 2. Select Insert tab| Sparklines
selected range it would not be 4. At Select a Rule Type, highlight Format group| Line
affected by the rule only cells that contain 3. In the Data box, type the range of
7. To remove the formatting, with 5. Type the values 0 and 75 for the two the cells that contain the target
B2:B6 active, select Home boxes that are blank data (B2:E5)
tab|Editing group|Clear|Clear 6. Click the Format button to choose a fill 4. Click OK
color and font, if required 7. Click OK to apply rules over the 5. Try changing the appearance of
Formats selected columns
8. Save the copy of the unformatted 7. Click OK back to the worksheet the graph
data to the desktop 8. To format the remainder of the selected SOME INTERESTING
cells, click Home tab|Styles NUMBERS WITHIN A NUMBER SHORTCUTS
TOP/BOTTOM RULE group|Conditional |Manage Rules 1. Using the data from the previous task,
CTRL+1 Displays the Format Cells dialog box.
1. Select B2:E8 in the above created 9. Click New Rule and Format Styles to Data click in G2
data sheet Bar 2. Type the following formula: CTRL+2 Applies or removes bold formatting.

2. In the Home tab|Styles 10. Set a new color for the next scores of 76 to =ISNUMBER(FIND(“9”,D2)) CTRL+3 Applies or removes italic formatting.
group|Conditional 80 and a color 3. Depress Enter to find that the response
CTRL+4 Applies or removes underlining.
formatting|Top/Bottom Rules|Top 11. Click OK until you get back to the Rules is TRUE
10 Items Manager CTRL+5 Applies or removes strikethrough.
12. Repeat the above to complete the
3. Using the spinner, select 5 from
remainder of the scores with the scores as
ROWS WITH BLANK CELLS CTRL+6 Alternates between hiding & displaying
objects.
the drop-down list and click OK 1. Using the data from the previous task,
4. Follow the above and display the follows: CTRL+8 Displays or hides the outline symbols.
0 to 75, 76 to 80, 81 to 89 and 90 to 100 delete the contents of D2
bottom 10 entries and In case of 2. Click in H2 CTRL+9 Hides the selected rows.
ties, more that the designated cell 13. If necessary, delete any unwanted bars
14. When completed, your data should display 3. Type the following formula: =D2=”” CTRL+0 Hides the selected columns.
will be marked. 4. Depress Enter to find that the response
with four colors.
is TRUE Compliments of
5. Modify the formula so is returns FALSE STARLIGHT EDUCATION
Contact us at
[email protected]

You might also like