{"id":47,"date":"2026-02-24T08:19:07","date_gmt":"2026-02-24T08:19:07","guid":{"rendered":"https:\/\/gigz.pk\/excel\/?post_type=lesson&#038;p=47"},"modified":"2026-03-07T03:42:05","modified_gmt":"2026-03-07T03:42:05","slug":"and-and-or","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/","title":{"rendered":"AND and OR"},"content":{"rendered":"\n<p>The <strong>AND<\/strong> and <strong>OR<\/strong> functions are logical functions used to test multiple conditions at the same time. They are often combined with the <strong>IF<\/strong> function to create more powerful formulas.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. AND Function<\/h2>\n\n\n\n<p>The <strong>AND<\/strong> function returns:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>TRUE \u2192 If <strong>all<\/strong> conditions are true<\/li>\n\n\n\n<li>FALSE \u2192 If <strong>any one<\/strong> condition is false<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Structure:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">=AND(logical_test1, logical_test2, ...)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<p>If marks are in A1 and attendance is in B1:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=AND(A1&gt;=40, B1&gt;=75)<\/pre>\n\n\n\n<p>Meaning:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Marks must be 40 or more<\/li>\n\n\n\n<li>Attendance must be 75% or more<\/li>\n\n\n\n<li>Both conditions must be true<\/li>\n<\/ul>\n\n\n\n<p>If both are true \u2192 Result = TRUE<br>If one is false \u2192 Result = FALSE<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">AND with IF Example:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">=IF(AND(A1&gt;=40, B1&gt;=75),\"Pass\",\"Fail\")<\/pre>\n\n\n\n<p>Student passes only if both conditions are satisfied.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. OR Function<\/h2>\n\n\n\n<p>The <strong>OR<\/strong> function returns:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>TRUE \u2192 If <strong>at least one<\/strong> condition is true<\/li>\n\n\n\n<li>FALSE \u2192 If <strong>all<\/strong> conditions are false<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Structure:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">=OR(logical_test1, logical_test2, ...)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">=OR(A1&gt;=90, B1=\"Excellent\")<\/pre>\n\n\n\n<p>If either condition is true \u2192 Result = TRUE<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">OR with IF Example:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">=IF(OR(A1&gt;=90, B1=\"Excellent\"),\"Award\",\"No Award\")<\/pre>\n\n\n\n<p>If marks are high OR performance is excellent \u2192 Award<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Difference Between AND and OR<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>AND<\/th><th>OR<\/th><\/tr><\/thead><tbody><tr><td>All conditions must be true<\/td><td>At least one condition must be true<\/td><\/tr><tr><td>Returns FALSE if one condition fails<\/td><td>Returns TRUE if one condition passes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Practical Example<\/h2>\n\n\n\n<p>If:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A1 = Marks<\/li>\n\n\n\n<li>B1 = Attendance<\/li>\n<\/ul>\n\n\n\n<p>Formula:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=IF(AND(A1&gt;=50, B1&gt;=80),\"Eligible\",\"Not Eligible\")<\/pre>\n\n\n\n<p>Student is eligible only if both marks and attendance criteria are met.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why AND and OR Are Important<\/h2>\n\n\n\n<p>They help you:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create multiple-condition logic<\/li>\n\n\n\n<li>Build smart decision systems<\/li>\n\n\n\n<li>Improve data analysis<\/li>\n\n\n\n<li>Combine conditions inside IF formulas<\/li>\n<\/ul>\n\n\n\n<p>AND and OR functions are essential tools for building advanced logical formulas in Excel.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/excel\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Excel Essential Functions (EEF) > Logical Functions > AND and OR<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1772855067074\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":20,"template":"","class_list":["post-47","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AND and OR - Learn Excel the Right Way.<\/title>\n<meta name=\"description\" content=\"Learn how to use AND and OR functions in Excel to test multiple conditions and combine them with IF for smarter logical formulas.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AND and OR - Learn Excel the Right Way.\" \/>\n<meta property=\"og:description\" content=\"Learn how to use AND and OR functions in Excel to test multiple conditions and combine them with IF for smarter logical formulas.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Excel the Right Way.\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-07T03:42:05+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/and-and-or\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/and-and-or\\\/\",\"name\":\"AND and OR - Learn Excel the Right Way.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/#website\"},\"datePublished\":\"2026-02-24T08:19:07+00:00\",\"dateModified\":\"2026-03-07T03:42:05+00:00\",\"description\":\"Learn how to use AND and OR functions in Excel to test multiple conditions and combine them with IF for smarter logical formulas.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/and-and-or\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/and-and-or\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/lesson\\\/and-and-or\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Excel Essential Functions (EEF) > Logical Functions > AND and OR\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/\",\"name\":\"Learn Excel the Right Way.\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/excel\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AND and OR - Learn Excel the Right Way.","description":"Learn how to use AND and OR functions in Excel to test multiple conditions and combine them with IF for smarter logical formulas.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/","og_locale":"en_US","og_type":"article","og_title":"AND and OR - Learn Excel the Right Way.","og_description":"Learn how to use AND and OR functions in Excel to test multiple conditions and combine them with IF for smarter logical formulas.","og_url":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/","og_site_name":"Learn Excel the Right Way.","article_modified_time":"2026-03-07T03:42:05+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/","url":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/","name":"AND and OR - Learn Excel the Right Way.","isPartOf":{"@id":"https:\/\/gigz.pk\/excel\/#website"},"datePublished":"2026-02-24T08:19:07+00:00","dateModified":"2026-03-07T03:42:05+00:00","description":"Learn how to use AND and OR functions in Excel to test multiple conditions and combine them with IF for smarter logical formulas.","breadcrumb":{"@id":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/excel\/lesson\/and-and-or\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/excel\/"},{"@type":"ListItem","position":2,"name":"Excel Essential Functions (EEF) > Logical Functions > AND and OR"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/excel\/#website","url":"https:\/\/gigz.pk\/excel\/","name":"Learn Excel the Right Way.","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/excel\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/lesson\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/excel\/wp-json\/wp\/v2\/media?parent=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}