title: Need help finding a function to return the heading of the maximum value of an array
body: <p>So I have a spreadsheet that has the buy and sell prices of different widgets in 5 different regions (the regions are labelled A,B,C,D,and E.  I have created a function that finds the greatest of intraregional margin, ignoring 0's in L5 (the function being an array: <code>{=IF(MAX(IF(ISERROR(B5:F5/G5:K5),0,(B5:F5/G5:K5)-1))=0,"",MAX(IF(ISERROR(B5:F5/G5:K5),0,(B5:F5/G5:K5)-1)))}</code></p>
  
  <p>Now, the problem I am having is that I cannot figure out a formula to put in M5, that tells me which region has the highest Margin.  I'm think it would be some combination of the INDIRECT and ADDRESS functions, but I cant figure out the function to use with ADDRESS that returns the column I need.</p>
  
  <p>Since I cant include a picture, I will have to describe the setup.  The names of the widgets start in A5 and run down.  Then <code>B</code> through F contain the sell prices for each widget in each different region.  Then <code>G</code> through K contain the buy prices for each widget in each different region. L has the formula that lets me know what the highest intraregional margin is.</p>