{"id":2391,"date":"2016-02-24T23:14:40","date_gmt":"2016-02-24T22:14:40","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=2391"},"modified":"2023-11-30T21:45:23","modified_gmt":"2023-11-30T20:45:23","slug":"total-bonus-due-with-an-array-lookup-formula-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/total-bonus-due-with-an-array-lookup-formula-excel\/","title":{"rendered":"Total Bonus Due With An Array Lookup Formula"},"content":{"rendered":"<p>The LOOKUP function has three arguments, it is a like a simplified VLOOKUP function:<\/p>\n<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>It looks up a value (lookup_value) in one range (lookup_vector) and returns a value from the same position in a second range (result_vector)<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=LOOKUP(<span style=\"color: #ff0000;\">lookup_value<\/span>, <span style=\"color: #339966;\">lookup_vector<\/span>, <span style=\"color: #0000ff;\">result_vector<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=LOOKUP(<span style=\"color: #ff0000;\">The value that you want to lookup<\/span>, <span style=\"color: #339966;\">Range that contains the values to be lookup up<\/span>, <span style=\"color: #0000ff;\">Range that contains the values to be returned<\/span>)<\/p>\n<p><em>** Note that the LOOKUP function uses the Approximate Match argument automatically (TRUE argument in a VLOOKUP), so therefore the <span style=\"color: #0000ff;\">result_vector<\/span> has to be sorted in ascending order **<\/em><\/p>\n<p><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/vlookup-approximate-match-in-excel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Read this blog that explains the VLOOKUP using the Approximate or TRUE argument<\/a><\/span><\/p>\n<hr \/>\n<p>Say that you\u00a0want to calculate the Total Bonuses due to the Sales Reps, you can do that using the SUM(LOOKUP()) formula and then pressing CTRL+SHIFT+ENTER to turn it into an Array formula.<\/p>\n<p>You will need to have your data set up into\u00a0three separate columns, one for the <span style=\"color: #ff0000;\"><em>Lookup Values<\/em><\/span>\u00a0(Sales made by the Sales Rep), another for the <span style=\"color: #339966;\"><em>Lookup Range<\/em><\/span> (Sales bonus threshold) and the last one for the <span style=\"color: #0000ff;\"><em>Results Range<\/em><\/span> (Bonus payable in ascending order)<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-table-1.png\" rel=\"attachment wp-att-2399\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Total Bonus Due With An Array Lookup Formula\"  class=\"alignnone size-full wp-image-2399\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-table-1.png\" alt=\"Total Bonus Due With An Array Lookup Formula\" width=\"660\" height=\"337\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-table-1.png 660w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-table-1-300x153.png 300w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/a><br \/>\n<iframe src=\"https:\/\/www.youtube.com\/embed\/0XWYCJIVpb0?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><br \/>\n<span style=\"text-decoration: underline; color: #0000ff;\"><a class=\"IRPP_minimalist icon-download\" style=\"color: #0000ff; text-decoration: underline;\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/Array-Sales-Bonuses.xlsx\" rel=\"\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<\/span><span class=\"postTitle px-3\">Array-Sales-Bonuses.xlsx<\/span><\/a><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong><\/span> Enter the SUM\u00a0function\u00a0<strong>=SUM(<\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP\u00a02:<\/strong> <\/span>Nest the LOOKUP function =<strong>SUM(LOOKUP(<\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong><\/span>\u00a0Select\u00a0the <span style=\"color: #ff0000;\"><em>Lookup Values<\/em><\/span>\u00a0in the Sales Rep Sales column:<\/p>\n<p><strong>=SUM(LOOKUP(<span style=\"color: #ff0000;\">C13:C23<\/span>,<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-1st-argument.png\" rel=\"attachment wp-att-2402\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Total Bonus Due With An Array Lookup Formula\"  class=\"alignnone size-full wp-image-2402\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-1st-argument.png\" alt=\"Total Bonus Due With An Array Lookup Formula\" width=\"598\" height=\"325\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-1st-argument.png 598w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-1st-argument-300x163.png 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 4:<\/strong><\/span> Select the <em><span style=\"color: #339966;\">Lookup Range<\/span><\/em> in the Sale bonus threshold column:<\/p>\n<p><strong>=SUM(LOOKUP(<span style=\"color: #ff0000;\">C13:C23<\/span>,<span style=\"color: #339966;\">E13:E18<\/span>,<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-2nd-argument.png\" rel=\"attachment wp-att-2404\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Total Bonus Due With An Array Lookup Formula\"  class=\"alignnone size-full wp-image-2404\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-2nd-argument.png\" alt=\"Total Bonus Due With An Array Lookup Formula\" width=\"630\" height=\"328\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-2nd-argument.png 630w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-2nd-argument-300x156.png 300w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 5:<\/strong><\/span> Select the <span style=\"color: #0000ff;\"><em>Results\u00a0Range<\/em><\/span> in the Bonus payable column:<\/p>\n<p><strong>=SUM(LOOKUP(<span style=\"color: #ff0000;\">C13:C23<\/span>,<span style=\"color: #339966;\">E13:E18<\/span>,<span style=\"color: #0000ff;\">F13:F18<\/span><\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-3rd-argument.png\" rel=\"attachment wp-att-2405\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Total Bonus Due With An Array Lookup Formula\"  class=\"alignnone size-full wp-image-2405\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-3rd-argument.png\" alt=\"Total Bonus Due With An Array Lookup Formula\" width=\"594\" height=\"334\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-3rd-argument.png 594w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-3rd-argument-300x169.png 300w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 6:<\/strong><\/span> Instead of pressing ENTER to evaluate the formula, you need to press <strong>CTRL+SHIFT+ENTER<\/strong> to turn the formula into an Array Formula which will look like this:<\/p>\n<p><strong>{=SUM(LOOKUP(<span style=\"color: #ff0000;\">C13:C23<\/span>,<span style=\"color: #339966;\">E13:E18<\/span>,<span style=\"color: #0000ff;\">F13:F18<span style=\"color: #000000;\">))<\/span><\/span>}<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-result.png\" rel=\"attachment wp-att-2406\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Total Bonus Due With An Array Lookup Formula\"  class=\"alignnone size-full wp-image-2406\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-result.png\" alt=\"Total Bonus Due With An Array Lookup Formula\" width=\"525\" height=\"387\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-result.png 525w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-lookup-result-300x221.png 300w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 7:<\/strong> <\/span>By <strong>pressing F9 on the selected formula array<\/strong> will give you the resulting array of numbers that get summed up (press CTRL+Z to get out of this mode when you are done checking the formula results):<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-f9-audit.png\" rel=\"attachment wp-att-2408\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Total Bonus Due With An Array Lookup Formula\"  class=\"alignnone size-full wp-image-2408\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-f9-audit.png\" alt=\"Total Bonus Due With An Array Lookup Formula\" width=\"476\" height=\"47\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-f9-audit.png 476w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/excel-f9-audit-300x30.png 300w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The LOOKUP function has three arguments, it is a like a simplified VLOOKUP function: What does it do? It looks up a value (lookup_value) in one range (lookup_vector) and returns a value from the same position in a second range (result_vector) Formula breakdown: =LOOKUP(lookup_value, lookup_vector, result_vector) What it means: =LOOKUP(The value that you want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[115,3,11],"tags":[119,43,79],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2391"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=2391"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2391\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17371"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=2391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=2391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=2391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}