{"id":4889,"date":"2019-11-11T16:05:14","date_gmt":"2019-11-11T16:05:14","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=4889"},"modified":"2024-03-28T11:55:09","modified_gmt":"2024-03-28T11:55:09","slug":"one-value-based-on-another-cell","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/","title":{"rendered":"One Value Based on Another Cell in Excel"},"content":{"rendered":"\n
One-Value-Based-on-Another-Cell-in-Excel<\/a>Download File<\/a><\/div>\n\n\n\n

In some cases, you will base the result and formatting of\none cell on the result of a different cell on the worksheet.<\/p>\n\n\n\n

Take a look at the example below.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

There are 10 people with score results, but only 50% of them\nwill pass.<\/p>\n\n\n\n

We are going to pass them, only if their result is better\nthen the median. We are going to display “Pass”<\/strong>\nor “Fail”<\/strong> in the “Result”<\/strong> table.<\/p>\n\n\n\n

This is the formula we are going to use in cell D2<\/strong>.<\/p>\n\n\n\n

=IF(B2>$B$13,\"Pass\",\"Fail\")<\/code><\/pre>\n\n\n\n

Make sure that you use absolute reference from cell<\/a> B13<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Conditional formatting based on the result<\/h2>\n\n\n\n

The result we display can be further improved, by formatting\nthem with different colors. Here’s how to do it.<\/p>\n\n\n\n

Select cells<\/a> from D2<\/strong>\nto D11<\/strong>.<\/p>\n\n\n\n

Navigate to Home\n>> Styles >> Conditional Formatting<\/strong> and choose Manage Rules<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Add the first rule by clicking the New Rule<\/strong> button.<\/p>\n\n\n\n

Set the parameters as in the image below.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

This is the rule for “Pass”<\/strong>.\n<\/p>\n\n\n\n

Create another one, this time for “Fail”<\/strong>. Set the font to red and text to “Fail”<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

When two rules are created, click OK<\/strong> to apply changes.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

As you can see, half of the students passed the exam, and\nthe other half failed. Thanks to conditional formatting<\/a>, it looks better now.<\/p>\n","protected":false},"excerpt":{"rendered":"

In some cases, you will base the result and formatting of one cell on the result of a different cell on the worksheet….<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nOne Value Based on Another Cell in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to base the result and formatting of one cell on another in Excel. Download the example spreadsheet and use the provided formula.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"One Value Based on Another Cell in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to base the result and formatting of one cell on another in Excel. Download the example spreadsheet and use the provided formula.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-11T16:05:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T11:55:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"One Value Based on Another Cell in Excel\",\"datePublished\":\"2019-11-11T16:05:14+00:00\",\"dateModified\":\"2024-03-28T11:55:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\"},\"wordCount\":222,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\",\"name\":\"One Value Based on Another Cell in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png\",\"datePublished\":\"2019-11-11T16:05:14+00:00\",\"dateModified\":\"2024-03-28T11:55:09+00:00\",\"description\":\"Learn how to base the result and formatting of one cell on another in Excel. Download the example spreadsheet and use the provided formula.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png\",\"width\":358,\"height\":320},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"One Value Based on Another Cell in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"One Value Based on Another Cell in Excel","description":"Learn how to base the result and formatting of one cell on another in Excel. Download the example spreadsheet and use the provided formula.","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:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/","og_locale":"en_US","og_type":"article","og_title":"One Value Based on Another Cell in Excel","og_description":"Learn how to base the result and formatting of one cell on another in Excel. Download the example spreadsheet and use the provided formula.","og_url":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/","article_published_time":"2019-11-11T16:05:14+00:00","article_modified_time":"2024-03-28T11:55:09+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"One Value Based on Another Cell in Excel","datePublished":"2019-11-11T16:05:14+00:00","dateModified":"2024-03-28T11:55:09+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/"},"wordCount":222,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/","url":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/","name":"One Value Based on Another Cell in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png","datePublished":"2019-11-11T16:05:14+00:00","dateModified":"2024-03-28T11:55:09+00:00","description":"Learn how to base the result and formatting of one cell on another in Excel. Download the example spreadsheet and use the provided formula.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/example-1.png","width":358,"height":320},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/one-value-based-on-another-cell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"One Value Based on Another Cell in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4889"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=4889"}],"version-history":[{"count":6,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4889\/revisions"}],"predecessor-version":[{"id":14220,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4889\/revisions\/14220"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=4889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=4889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=4889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}