{"id":565,"date":"2009-01-21T12:15:12","date_gmt":"2009-01-21T16:15:12","guid":{"rendered":"http:\/\/tim.cexx.org\/?p=565"},"modified":"2009-01-21T12:15:12","modified_gmt":"2009-01-21T16:15:12","slug":"stupid-excel-trick-amuse-your-friends-bore-your-enemies","status":"publish","type":"post","link":"https:\/\/tim.cexx.org\/?p=565","title":{"rendered":"Stupid Excel Trick &#8211; amuse your friends &#038; bore your enemies"},"content":{"rendered":"<p>What&#8217;s 1-2?<\/p>\n<p>Today, MS Excel tells me it&#8217;s +39815. (Tomorrow it will tell me something different.)<\/p>\n<p>Some while back a signup sheet went around the office for our annual lamb roast. Since every problem (nail) in an office environment has a preinstalled office-suite hammer, the signup list was an Excel spreadsheet. Once everyone has entered their number of guests, it totals up how many total guests. Here&#8217;s what I sent around before figuring out Excel&#8217;s flavor of crack.<\/p>\n<blockquote><p>\nSay you don&#8217;t know exactly how many guests you will have for the BBQ. Type a range (e.g. &#8220;1-2&#8221;) in and see what Excel computes for the total numbers of guests\/folks.<\/p>\n<p>For &#8220;1-2&#8221; guests by my name I get exactly 39084 total guests. Fixed by just saying &#8220;1&#8221;, but now I&#8217;m curious. How is it computing this number?<\/p>\n<p>I can see that being parsed as &#8220;one minus two&#8221; and yielding a negative number of guests, but I can&#8217;t figure out what particular flavor of crack Excel is smoking to get 39,084. Anyone?\n<\/p><\/blockquote>\n<p>I mean, if it had returned NaN or +32767 (or some other signed-unsigned integer conversion failure), I might have understood.<\/p>\n<p>An Excel guru eventually figured it out: The field was hard-set as a numeric field (no auto). Still, it parsed the expression, not as &#8220;one minus two&#8221; but as a date &#8211; &#8220;February 1, current year&#8221;, and since it was a numeric field, represented this numerically the best way it knew how: the number of days since  January 1st, 1900.<\/p>\n<p>The flavor is strawberry.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What&#8217;s 1-2? Today, MS Excel tells me it&#8217;s +39815. (Tomorrow it will tell me something different.) Some while back a signup sheet went around the office for our annual lamb roast. Since every problem (nail) in an office environment has a preinstalled office-suite hammer, the signup list was an Excel spreadsheet. Once everyone has entered [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","iawp_total_views":12,"footnotes":""},"categories":[1],"tags":[86,85],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-general","tag-crack","tag-excel"],"_links":{"self":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=565"}],"version-history":[{"count":3,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":568,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/565\/revisions\/568"}],"wp:attachment":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}