{"id":1451,"date":"2018-12-10T07:53:42","date_gmt":"2018-12-10T13:53:42","guid":{"rendered":"http:\/\/xlfxs.com\/?p=1451"},"modified":"2018-12-10T07:53:42","modified_gmt":"2018-12-10T13:53:42","slug":"scorring-saving-multiple-outputs-in-1-number","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1451","title":{"rendered":"Scorring, saving multiple outputs in 1 number"},"content":{"rendered":"<p>I have seen this practice before several locations<\/p>\n<p>Returning multiple outputs in 1 single number.<\/p>\n<p>for example<\/p>\n<p><!--more--><\/p>\n<p>If you have list of items:<\/p>\n<p>Red<\/p>\n<p>Blue<\/p>\n<p>Black<\/p>\n<p>Gray<\/p>\n<p>Green<\/p>\n<p>Pink<\/p>\n<p>Yellow<\/p>\n<p>Orange<\/p>\n<p>And then you have a function that need to return, Red yellow, or black orange, or blue gray green.<\/p>\n<p>How can you do that in 1 return? or 1 number?<\/p>\n<p>Answer is as I like to call &#8220;Scorring&#8221;, which by giving numeric value to each of these items, these values need to be unique so we can calculate them again from the single return number.<\/p>\n<p>Best that I found were these numbers.<\/p>\n<p>1: Red<\/p>\n<p>2: Blue<\/p>\n<p>4: Black<\/p>\n<p>8: Gray<\/p>\n<p>16: Green<\/p>\n<p>32: Pink<\/p>\n<p>64: Yellow<\/p>\n<p>128: Orange<\/p>\n<p>Look familiar? I bet &#8230;<\/p>\n<p>Means if we need to return Red blue, our number should be 3<\/p>\n<p>Red black, 5<\/p>\n<p>Red only, 1<\/p>\n<p>if blue black gray, then return 14<\/p>\n<p>red gray pink, it is 31<\/p>\n<p>And so on<\/p>\n<p>This Excel file has formulas needed to break a large number (up tp 1m) into its small parts, again I call it here scorring, not sure what is the official practice name is.<\/p>\n<div id='gallery-1' class='gallery galleryid-1451 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/?attachment_id=1454'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/12\/Scorring12481632-3-2-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/?attachment_id=1453'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/12\/Scorring12481632-2-2-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/xlfxs.com\/?attachment_id=1452'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/xlfxs.com\/wp-content\/uploads\/2018\/12\/Scorring12481632-1-2-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<div class=\"row\">\n<div class=\"col-md-6 text-right\"><a class=\"btn btn-info btn-lg\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2018\/12\/Scorring12481632.xlsx\"><i class=\"fa fa-download\"><\/i> Download<\/a><\/div>\n<div class=\"col-md-6\"><a class=\"btn btn-info btn-lg\" href=\"https:\/\/1drv.ms\/x\/s!An4iomsT7EVO1vNclkC11Kn1qhSDEA\"><i class=\"fa fa-cloud\"><\/i> Online Excel version<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have seen this practice before several locations Returning multiple outputs in 1 single number. for example<\/p>\n","protected":false},"author":1,"featured_media":1455,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,18,3,35,5,6],"tags":[],"class_list":["post-1451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-basic-math","category-conditional-formatting","category-formulas","category-logical","category-non-functions","category-standard_functions"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1451"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1455"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}