You are here:

Excel/merging array formulas


Hi Tom

You recently wrote two array formulas for me which worked perfectly.  You then showed me how they could be applied contingent on an IF condition.  I have arranged both sets of source data in exactly the same way in one workbook and applied the new array formula.  The combined formulas are:

Formula 1


Formula 2

The condition is:


So that if the figure in cell A1 is less than 10 then formula 2 is applied otherwise formula 1 is applied.  The combined formula is:


However this new formula does not produce the desired result.  I have tried to figure out the problem for a couple of hours but to no avail.  

Could you possibly explain where I might have gone wrong?  This new formula needs to be applied in cell AF3 and then copied down to cell AF100

Thanks in advance



If you want to send me a sample workbook I can take a look.  I simply took the two formulas you furnished and combined them as you asked.  I didn't spend time analyzing the individual formulas or imagining what your data might look like.  It seems inconsistent that with the same data set you would look at either row 3 to row 103  or row 1 to row 1500.  

But I would have to see the data and test the formula to see what is possible.

Tom Ogilvy  
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Tom Ogilvy


Selected as an Excel MVP by Microsoft since 1999. Answering Excel questions in Allexperts since its inception in 2001. Able to answer questions on almost all aspects of Excel's internal capabilities. If seeking a VBA solution, please specify that in your question itself so I give you the answer you want. [Excel has weak protection - if you are distributing an application, I don't answer questions on how to protect your project from your users.]


Extensive experience.

Master of Science (MS) degree Operations Research (ORSA)

Awards and Honors
Microsoft MVP in Excel.

©2017 All rights reserved.