{"id":93,"date":"2024-05-01T09:33:40","date_gmt":"2024-05-01T09:33:40","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/chapter\/chapter-6-if-function\/"},"modified":"2024-09-18T00:52:31","modified_gmt":"2024-09-18T00:52:31","slug":"chapter-6-if-function","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/chapter\/chapter-6-if-function\/","title":{"raw":"Chapter 6: IF Function","rendered":"Chapter 6: IF Function"},"content":{"raw":"<div class=\"chapter-6:-if-function\">\r\n<div class=\"textbox textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\" style=\"text-align: justify\">Learning Objectives<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\" style=\"text-align: justify\">\r\n<ol>\r\n \t<li class=\"import-MyText\">Use the IF function.<\/li>\r\n \t<li class=\"import-MyText\">Rename a worksheet.<\/li>\r\n \t<li class=\"import-MyText\">Insert a new worksheet.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<\/div>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">This is one of the most popular functions in Excel where you can make logical comparisons between a value and what you expect. In other words, you can have two results from the [pb_glossary id=\"190\"]IF[\/pb_glossary] function. The first result is if your comparison is True, and the second is if your comparison is False. It should be either the first or second result depending on True or False.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Let\u2019s learn the IF function.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The Figure below shows an example using the IF function.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/05\/image1-2.png\" alt=\"image\" width=\"1378\" height=\"777\"> Figure 6.1 Type the contents and the formula using the IF function.[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Type the contents in their respective cells. Use the default font and font size. You may bold and centre the content in each cell as shown in the Figure. Adjust any column width if necessary.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">In cell B2, type the formula using the IF function, =IF(A2=5,\u201cTrue\u201d,\u201cFalse\u201d). Press Enter and you get the result. Excel returns True as the result in cell B2 as the logical comparison A2=5 is correct.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The logical comparison is whether A2=5 and since cell A2 contains 5, the logical comparison is True. Excel therefore returns True in cell B2, otherwise False if cell A2 contains other value other than 5.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, copy the formula in cell B2 and paste it to the remaining cells in the same column until cell B8 using the Fill Handle.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The Figure below shows all cells in column B have been filled with the formulas using the IF function.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image2-5.png\" alt=\"image\" width=\"1378\" height=\"777\"> Figure 6.2 Copy the formula from cell B2 to the remaining cells in the same column.[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">You can observe from the above Figure that cells B5, B6, and B8 have True results since the values are equal to 5 respectively.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">You can save this workbook using any file name or Chapter6.xlsx as shown in the Figure below.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image3-5.png\" alt=\"image\" width=\"1378\" height=\"820\"> Figure 6.3 Save the workbook as Chapter6.xlsx.[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Let\u2019s learn the second example of the IF function.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">You are going to create another worksheet for the second example of the IF function in the same workbook.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Before you proceed, rename the current worksheet name from Sheet1 to True or False. Double-click the worksheet tab and straight away type the new worksheet name.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figures below.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image4-4.png\" alt=\"image\" width=\"1378\" height=\"778\"> Figure 6.4 Double-click the worksheet tab to select it.[\/caption]\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image5-4.png\" alt=\"image\" width=\"1378\" height=\"778\"> Figure 6.5 Type the new worksheet name on the worksheet tab[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, insert a new worksheet. Click the plus (+) button on the right of the worksheet tab and a new worksheet is inserted immediately and you can type the new worksheet name. See the Figures below.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image6-3.png\" alt=\"image\" width=\"1378\" height=\"778\"> Figure 6.6 Click the plus button after the worksheet tab to insert a new worksheet.[\/caption]\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image7-3.png\" alt=\"image\" width=\"1378\" height=\"778\"> Figure 6.7 The new worksheet with the default name, Sheet1[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Rename the new worksheet as Test Result. See the Figure below.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image8-3.png\" alt=\"image\" width=\"1378\" height=\"778\"> Figure 6.8 Type Test Result as the new worksheet name[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The second example of the IF function is illustrated in the Figure below.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image9-2.png\" alt=\"image\" width=\"1378\" height=\"778\"> Figure 6.9 Type the contents and the formula using the IF function.[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Type the contents in their respective cells. Use the default font and font size. You may bold and centre the content in each cell as shown in the Figure. Adjust any column width if necessary.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">In cell C2, type the formula using the IF function, =IF(B2&gt;50,\u201cPass\u201d,\u201cFail\u201d). Press Enter and you get the result as Fail as displayed in cell C2. The formula instructs Excel to determine whether the logical comparison of the value in cell B2 is greater than 50 (B2&gt;50), but since it is 26 which is less than 50, Excel returns Fail in cell C2. Unlike the first example, False is replaced by Fail as it is written in the formula. In other words, Excel returns a False statement according to the IF formula.<\/p>\r\n<p style=\"text-align: justify\">The formula can be read, if a value in cell B2 is greater than 50, then Pass will be displayed (True), or if a value in cell B2 is less than 50, then Fail will be displayed (False).<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, copy the formula in cell C2 and paste it to the remaining cells in the same column until cell C10 using the Fill Handle.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The Figure below shows all cells in column C have been filled with the formulas using the IF function.<\/p>\r\n\r\n\r\n[caption id=\"\" align=\"alignnone\" width=\"1378\"]<img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image10-2.png\" alt=\"image\" width=\"1378\" height=\"807\"> Figure 6.10 Copy the formula from cell C2 to the remaining cells in the same column[\/caption]\r\n<p class=\"import-MyText\" style=\"text-align: justify\">You can observe from the above Figure that cells C3, C5, C8, and C10 have Pass results since the scores are greater than 50 (&gt;50) respectively. Cells C4, C6, C7, and C7 show the Fail results as the scores are less than 50.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">In using the IF function, you can use the following logical operators to make the comparison in the logical test.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">See below.<\/p>\r\n\r\n<div style=\"margin: auto;text-align: justify\">\r\n<table>\r\n<tbody>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n<div>\r\n\r\n<strong>Operator<\/strong>\r\n\r\n<\/div>\r\n<\/div><\/td>\r\n<td>\r\n<div>\r\n\r\n<strong>Description<\/strong>\r\n\r\n<\/div><\/td>\r\n<\/tr>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n\r\n=\r\n\r\n<\/div><\/td>\r\n<td>Equal to<\/td>\r\n<\/tr>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n\r\n&lt;&gt;\r\n\r\n<\/div><\/td>\r\n<td>Not equal to<\/td>\r\n<\/tr>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n\r\n&lt;\r\n\r\n<\/div><\/td>\r\n<td>Less than<\/td>\r\n<\/tr>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n\r\n&gt;\r\n\r\n<\/div><\/td>\r\n<td>Greater than<\/td>\r\n<\/tr>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n\r\n&lt;=\r\n\r\n<\/div><\/td>\r\n<td>Less than or equal to<\/td>\r\n<\/tr>\r\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\r\n<td>\r\n<div>\r\n\r\n&gt;=\r\n\r\n<\/div><\/td>\r\n<td>Greater than or equal to<\/td>\r\n<\/tr>\r\n<tr>\r\n<td><\/td>\r\n<td><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The IF function lets you make informed decisions based on the data on the worksheet.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">That\u2019s all for this Chapter.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">You're awesome!<\/p>\r\n\r\n<\/div>","rendered":"<div class=\"chapter-6:-if-function\">\n<div class=\"textbox textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\" style=\"text-align: justify\">Learning Objectives<\/p>\n<\/header>\n<div class=\"textbox__content\" style=\"text-align: justify\">\n<ol>\n<li class=\"import-MyText\">Use the IF function.<\/li>\n<li class=\"import-MyText\">Rename a worksheet.<\/li>\n<li class=\"import-MyText\">Insert a new worksheet.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<p class=\"import-MyText\" style=\"text-align: justify\">This is one of the most popular functions in Excel where you can make logical comparisons between a value and what you expect. In other words, you can have two results from the <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_93_190\">IF<\/a> function. The first result is if your comparison is True, and the second is if your comparison is False. It should be either the first or second result depending on True or False.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Let\u2019s learn the IF function.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">The Figure below shows an example using the IF function.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/05\/image1-2.png\" alt=\"image\" width=\"1378\" height=\"777\" \/><figcaption class=\"wp-caption-text\">Figure 6.1 Type the contents and the formula using the IF function.<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">Type the contents in their respective cells. Use the default font and font size. You may bold and centre the content in each cell as shown in the Figure. Adjust any column width if necessary.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">In cell B2, type the formula using the IF function, =IF(A2=5,\u201cTrue\u201d,\u201cFalse\u201d). Press Enter and you get the result. Excel returns True as the result in cell B2 as the logical comparison A2=5 is correct.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">The logical comparison is whether A2=5 and since cell A2 contains 5, the logical comparison is True. Excel therefore returns True in cell B2, otherwise False if cell A2 contains other value other than 5.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, copy the formula in cell B2 and paste it to the remaining cells in the same column until cell B8 using the Fill Handle.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">The Figure below shows all cells in column B have been filled with the formulas using the IF function.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image2-5.png\" alt=\"image\" width=\"1378\" height=\"777\" \/><figcaption class=\"wp-caption-text\">Figure 6.2 Copy the formula from cell B2 to the remaining cells in the same column.<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">You can observe from the above Figure that cells B5, B6, and B8 have True results since the values are equal to 5 respectively.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">You can save this workbook using any file name or Chapter6.xlsx as shown in the Figure below.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image3-5.png\" alt=\"image\" width=\"1378\" height=\"820\" \/><figcaption class=\"wp-caption-text\">Figure 6.3 Save the workbook as Chapter6.xlsx.<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">Let\u2019s learn the second example of the IF function.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">You are going to create another worksheet for the second example of the IF function in the same workbook.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Before you proceed, rename the current worksheet name from Sheet1 to True or False. Double-click the worksheet tab and straight away type the new worksheet name.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figures below.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image4-4.png\" alt=\"image\" width=\"1378\" height=\"778\" \/><figcaption class=\"wp-caption-text\">Figure 6.4 Double-click the worksheet tab to select it.<\/figcaption><\/figure>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image5-4.png\" alt=\"image\" width=\"1378\" height=\"778\" \/><figcaption class=\"wp-caption-text\">Figure 6.5 Type the new worksheet name on the worksheet tab<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, insert a new worksheet. Click the plus (+) button on the right of the worksheet tab and a new worksheet is inserted immediately and you can type the new worksheet name. See the Figures below.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image6-3.png\" alt=\"image\" width=\"1378\" height=\"778\" \/><figcaption class=\"wp-caption-text\">Figure 6.6 Click the plus button after the worksheet tab to insert a new worksheet.<\/figcaption><\/figure>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image7-3.png\" alt=\"image\" width=\"1378\" height=\"778\" \/><figcaption class=\"wp-caption-text\">Figure 6.7 The new worksheet with the default name, Sheet1<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">Rename the new worksheet as Test Result. See the Figure below.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image8-3.png\" alt=\"image\" width=\"1378\" height=\"778\" \/><figcaption class=\"wp-caption-text\">Figure 6.8 Type Test Result as the new worksheet name<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">The second example of the IF function is illustrated in the Figure below.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image9-2.png\" alt=\"image\" width=\"1378\" height=\"778\" \/><figcaption class=\"wp-caption-text\">Figure 6.9 Type the contents and the formula using the IF function.<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">Type the contents in their respective cells. Use the default font and font size. You may bold and centre the content in each cell as shown in the Figure. Adjust any column width if necessary.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">In cell C2, type the formula using the IF function, =IF(B2&gt;50,\u201cPass\u201d,\u201cFail\u201d). Press Enter and you get the result as Fail as displayed in cell C2. The formula instructs Excel to determine whether the logical comparison of the value in cell B2 is greater than 50 (B2&gt;50), but since it is 26 which is less than 50, Excel returns Fail in cell C2. Unlike the first example, False is replaced by Fail as it is written in the formula. In other words, Excel returns a False statement according to the IF formula.<\/p>\n<p style=\"text-align: justify\">The formula can be read, if a value in cell B2 is greater than 50, then Pass will be displayed (True), or if a value in cell B2 is less than 50, then Fail will be displayed (False).<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, copy the formula in cell C2 and paste it to the remaining cells in the same column until cell C10 using the Fill Handle.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">The Figure below shows all cells in column C have been filled with the formulas using the IF function.<\/p>\n<figure style=\"width: 1378px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image10-2.png\" alt=\"image\" width=\"1378\" height=\"807\" \/><figcaption class=\"wp-caption-text\">Figure 6.10 Copy the formula from cell C2 to the remaining cells in the same column<\/figcaption><\/figure>\n<p class=\"import-MyText\" style=\"text-align: justify\">You can observe from the above Figure that cells C3, C5, C8, and C10 have Pass results since the scores are greater than 50 (&gt;50) respectively. Cells C4, C6, C7, and C7 show the Fail results as the scores are less than 50.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">In using the IF function, you can use the following logical operators to make the comparison in the logical test.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">See below.<\/p>\n<div style=\"margin: auto;text-align: justify\">\n<table>\n<tbody>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<div>\n<p><strong>Operator<\/strong><\/p>\n<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<p><strong>Description<\/strong><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<p>=<\/p>\n<\/div>\n<\/td>\n<td>Equal to<\/td>\n<\/tr>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<p>&lt;&gt;<\/p>\n<\/div>\n<\/td>\n<td>Not equal to<\/td>\n<\/tr>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<p>&lt;<\/p>\n<\/div>\n<\/td>\n<td>Less than<\/td>\n<\/tr>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<p>&gt;<\/p>\n<\/div>\n<\/td>\n<td>Greater than<\/td>\n<\/tr>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<p>&lt;=<\/p>\n<\/div>\n<\/td>\n<td>Less than or equal to<\/td>\n<\/tr>\n<tr class=\"GridTable1Light-R\" style=\"height: 0\">\n<td>\n<div>\n<p>&gt;=<\/p>\n<\/div>\n<\/td>\n<td>Greater than or equal to<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p class=\"import-MyText\" style=\"text-align: justify\">The IF function lets you make informed decisions based on the data on the worksheet.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">That\u2019s all for this Chapter.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">You&#8217;re awesome!<\/p>\n<\/div>\n<div class=\"glossary\"><span class=\"screen-reader-text\" id=\"definition\">definition<\/span><template id=\"term_93_190\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_93_190\"><div tabindex=\"-1\"><p>The IF function allows you to make a logical comparison between a value and what you expect by testing for a condition and returning a result if True or False. So an IF statement can have two results. The first result is if your comparison is True, the second if your comparison is False.<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><\/div>","protected":false},"author":91,"menu_order":6,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":"cc-by"},"chapter-type":[],"contributor":[],"license":[53],"class_list":["post-93","chapter","type-chapter","status-publish","hentry","license-cc-by"],"part":27,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/users\/91"}],"version-history":[{"count":2,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/93\/revisions"}],"predecessor-version":[{"id":205,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/93\/revisions\/205"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/parts\/27"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/93\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapter-type?post=93"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/contributor?post=93"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/license?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}