{"id":8302,"date":"2013-02-13T14:51:00","date_gmt":"2013-02-13T14:51:00","guid":{"rendered":"https:\/\/arliemediadesign.com\/?p=8302"},"modified":"2025-04-02T06:16:01","modified_gmt":"2025-04-02T06:16:01","slug":"excel-hints-tips-the-offset-function","status":"publish","type":"post","link":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/","title":{"rendered":"Excel Hints &amp; Tips &#8211; The OFFSET Function"},"content":{"rendered":"\n<p>Let us assume the spread-sheet uses the standard accounts layout of figures for each month, so 12 columns of figures in all, for January to December. You want to indicate the current month with a number (1 for January, 2 for February etc) and have this month\u2019s figure automatically displayed separately.<\/p>\n\n\n\n<p>One approach is to use a very complicated IF statement:<\/p>\n\n\n\n<p>IF(P1=1,C4,if(P1=2,D4,if(P1=3,E4 \u2026 and so on up to P1=12<\/p>\n\n\n\n<p>However this is long-winded and complex and therefore invites errors. Our rule of thumb is if you get to three levels of Ifs, there is probably a simpler way to do it. And in this case there is a much simpler way.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">The OFFSET Function<\/h3>\n\n\n\n<p>OFFSET is a neat little function which allows you to say, from any cell go 3 to the right and 4 down \u2013 or, better, use cell references. So to extract this month\u2019s accounts:<\/p>\n\n\n\n<p>=OFFSET(B4,0,P$1)<\/p>\n\n\n\n<p>P1 is the number of the month. B4 is the column before the financial data starts, and the 0 indicates you don\u2019t want to move down a row. So it will take the value of C4 when when P1 is 1, D4 when P1 is 2 and so on.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg\" alt=\"\" class=\"wp-image-13615\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Offset example<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How do I set my spreadsheet to automatically extract this month\u2019s figure from the accounts?<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38],"tags":[],"blog-post-type":[35],"class_list":["post-8302","post","type-post","status-publish","format-standard","hentry","category-it-tips-tricks","blog-post-type-blog-with-image"],"acf":{"read_or_watch_time":"Read Time: 10 mins"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.2 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Excel Hints &amp; Tips - The OFFSET Function - Happy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excel Hints &amp; Tips - The OFFSET Function\" \/>\n<meta property=\"og:description\" content=\"How do I set my spreadsheet to automatically extract this month\u2019s figure from the accounts?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Happy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/HappyLtd\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-13T14:51:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-02T06:16:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg\" \/>\n<meta name=\"author\" content=\"Darren Andrews\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@happyltd\" \/>\n<meta name=\"twitter:site\" content=\"@happyltd\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Darren Andrews\" \/>\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:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\"},\"author\":{\"name\":\"Darren Andrews\",\"@id\":\"https:\/\/www.happy.co.uk\/#\/schema\/person\/a930db4a1722e149e17ac2c308776a61\"},\"headline\":\"Excel Hints &amp; Tips &#8211; The OFFSET Function\",\"datePublished\":\"2013-02-13T14:51:00+00:00\",\"dateModified\":\"2025-04-02T06:16:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\"},\"wordCount\":211,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.happy.co.uk\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg\",\"articleSection\":[\"IT tips and tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\",\"url\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\",\"name\":\"Excel Hints &amp; Tips - The OFFSET Function - Happy\",\"isPartOf\":{\"@id\":\"https:\/\/www.happy.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg\",\"datePublished\":\"2013-02-13T14:51:00+00:00\",\"dateModified\":\"2025-04-02T06:16:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage\",\"url\":\"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg\",\"contentUrl\":\"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.happy.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Excel Hints &amp; Tips &#8211; The OFFSET Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.happy.co.uk\/#website\",\"url\":\"https:\/\/www.happy.co.uk\/\",\"name\":\"Create Happy, Empowered Workplaces with Happy Ltd\",\"description\":\"Create Happy, Empowered Workplaces with Happy Ltd\",\"publisher\":{\"@id\":\"https:\/\/www.happy.co.uk\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.happy.co.uk\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.happy.co.uk\/#organization\",\"name\":\"Create Happy, Empowered Workplaces with Happy Ltd\",\"url\":\"https:\/\/www.happy.co.uk\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.happy.co.uk\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2024\/10\/happy-logo.svg\",\"contentUrl\":\"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2024\/10\/happy-logo.svg\",\"width\":210,\"height\":72,\"caption\":\"Create Happy, Empowered Workplaces with Happy Ltd\"},\"image\":{\"@id\":\"https:\/\/www.happy.co.uk\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/HappyLtd\",\"https:\/\/x.com\/happyltd\",\"https:\/\/www.instagram.com\/happyltd\",\"https:\/\/www.linkedin.com\/company\/happy-ltd-\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.happy.co.uk\/#\/schema\/person\/a930db4a1722e149e17ac2c308776a61\",\"name\":\"Darren Andrews\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.happy.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2025\/01\/darren-andrews-250px-150x150.png\",\"contentUrl\":\"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2025\/01\/darren-andrews-250px-150x150.png\",\"caption\":\"Darren Andrews\"},\"description\":\"Darren is one of Happy's Senior Trainers, able to train almost every IT course on our course programme. He worked for Happy for 12 years and has been an Associate Trainer since 2018.\",\"url\":\"https:\/\/www.happy.co.uk\/about-us\/authors\/darren-andrews\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Excel Hints &amp; Tips - The OFFSET Function - Happy","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:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/","og_locale":"en_US","og_type":"article","og_title":"Excel Hints &amp; Tips - The OFFSET Function","og_description":"How do I set my spreadsheet to automatically extract this month\u2019s figure from the accounts?","og_url":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/","og_site_name":"Happy","article_publisher":"https:\/\/www.facebook.com\/HappyLtd","article_published_time":"2013-02-13T14:51:00+00:00","article_modified_time":"2025-04-02T06:16:01+00:00","og_image":[{"url":"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg","type":"","width":"","height":""}],"author":"Darren Andrews","twitter_card":"summary_large_image","twitter_creator":"@happyltd","twitter_site":"@happyltd","twitter_misc":{"Written by":"Darren Andrews","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#article","isPartOf":{"@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/"},"author":{"name":"Darren Andrews","@id":"https:\/\/www.happy.co.uk\/#\/schema\/person\/a930db4a1722e149e17ac2c308776a61"},"headline":"Excel Hints &amp; Tips &#8211; The OFFSET Function","datePublished":"2013-02-13T14:51:00+00:00","dateModified":"2025-04-02T06:16:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/"},"wordCount":211,"commentCount":0,"publisher":{"@id":"https:\/\/www.happy.co.uk\/#organization"},"image":{"@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage"},"thumbnailUrl":"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg","articleSection":["IT tips and tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/","url":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/","name":"Excel Hints &amp; Tips - The OFFSET Function - Happy","isPartOf":{"@id":"https:\/\/www.happy.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage"},"image":{"@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage"},"thumbnailUrl":"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg","datePublished":"2013-02-13T14:51:00+00:00","dateModified":"2025-04-02T06:16:01+00:00","breadcrumb":{"@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#primaryimage","url":"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg","contentUrl":"https:\/\/arliemediadesign.com\/wp-content\/uploads\/2013\/02\/excel-offset-1024x576.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.happy.co.uk\/blogs\/excel-hints-tips-the-offset-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.happy.co.uk\/"},{"@type":"ListItem","position":2,"name":"Excel Hints &amp; Tips &#8211; The OFFSET Function"}]},{"@type":"WebSite","@id":"https:\/\/www.happy.co.uk\/#website","url":"https:\/\/www.happy.co.uk\/","name":"Create Happy, Empowered Workplaces with Happy Ltd","description":"Create Happy, Empowered Workplaces with Happy Ltd","publisher":{"@id":"https:\/\/www.happy.co.uk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.happy.co.uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.happy.co.uk\/#organization","name":"Create Happy, Empowered Workplaces with Happy Ltd","url":"https:\/\/www.happy.co.uk\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.happy.co.uk\/#\/schema\/logo\/image\/","url":"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2024\/10\/happy-logo.svg","contentUrl":"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2024\/10\/happy-logo.svg","width":210,"height":72,"caption":"Create Happy, Empowered Workplaces with Happy Ltd"},"image":{"@id":"https:\/\/www.happy.co.uk\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/HappyLtd","https:\/\/x.com\/happyltd","https:\/\/www.instagram.com\/happyltd","https:\/\/www.linkedin.com\/company\/happy-ltd-\/"]},{"@type":"Person","@id":"https:\/\/www.happy.co.uk\/#\/schema\/person\/a930db4a1722e149e17ac2c308776a61","name":"Darren Andrews","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.happy.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2025\/01\/darren-andrews-250px-150x150.png","contentUrl":"https:\/\/www.happy.co.uk\/wp-content\/uploads\/2025\/01\/darren-andrews-250px-150x150.png","caption":"Darren Andrews"},"description":"Darren is one of Happy's Senior Trainers, able to train almost every IT course on our course programme. He worked for Happy for 12 years and has been an Associate Trainer since 2018.","url":"https:\/\/www.happy.co.uk\/about-us\/authors\/darren-andrews\/"}]}},"_links":{"self":[{"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/posts\/8302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/comments?post=8302"}],"version-history":[{"count":0,"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/posts\/8302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/media?parent=8302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/categories?post=8302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/tags?post=8302"},{"taxonomy":"blog-post-type","embeddable":true,"href":"https:\/\/www.happy.co.uk\/wp-json\/wp\/v2\/blog-post-type?post=8302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}