Array Formula Problem Microsoft Excel Mac

  

  1. Excel Mac Array Formula
  2. Array Formula Problem Microsoft Excel Macro
  3. Advanced Excel Array Formulas
  4. Entering Array Formula Excel

How do you enter an array formula in Microsoft Excel 2016 for Mac? Officially, the key combination is CTRL + SHIFT + ENTER, which matches Excel for Windows. You may see this referred to as ‘CSE’. I’m using Excel 2016 for Mac, and the combination COMMAND + SHIFT + ENTER can also be used. Excel provides two types of array formulas: Array formulas that perform several calculations to generate a single result and array formulas that calculate multiple results. Some worksheet functions return arrays of values, or require an array of values as an argument. For more information, see Guidelines and examples of array formulas.

Array Formula Problem Microsoft Excel Mac

This Excel tutorial explains how to use an array formula to perform a two criteria lookup in Excel 2003 and older versions (with screenshots and step-by-step instructions).

Question: I have the following table in Microsoft Excel 2003/XP/2000/97:

Column AColumn BColumn CColumn DColumn E
EL_IDLD_IDnxnyqxy
3000L001-10.8-280.9981.0
3000L002-145.0-315.0441.1
3000L003-122.2-315.8451.2
3001L001-6.4-135.6-161.8
3001L002-8.2-154.0-157.9
3001L003-8.3-154.7-167.9

I’m trying to create a formula in Excel that returns the corresponding qxy value, given a EL_ID and LD_ID value.

For example, I need the formula to return a qxy value of -161.8, given an EL_ID=3001 and LD_ID='L001'.

How can I do this?

Answer: This can be done in Excel with an array formula.

Let's look at an example.

In cell A10, we've created the following array formula that uses the INDEX, MATCH and IF functions:

When creating your array formula, you need to use Ctrl+Shift+Enter instead of Enter. This creates {} brackets around your formula as follows:

What this formula does is perform a two criteria lookup. It looks for a value of 3001 in cells A2:A7 and 'L001' in cells B2:B7, and returns the corresponding value from column E (ie: E2:E7). In this example, it returns a value of -161.8 from column E.

If you wanted to instead lookup an EL_ID=3000 and LD_ID=L003, as in this example:

In cell A10, we've created the following array formula:

When creating your array formula, you need to use Ctrl+Shift+Enter instead of Enter. This creates {} brackets around your formula as follows:

Excel Mac Array Formula

What this formula does is perform a two criteria lookup. It looks for a value of 3000 in cells A2:A7 and 'L003' in cells B2:B7, and returns the corresponding value from column E (ie: E2:E7). In this example, it returns a value of 451.2 from column E.

-->

Note

Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.

Symptoms

After you upgrade to Microsoft Office 2013/2016/Office 365, you experience one or more of the following symptoms:

  • The computer uses more memory when you open multiple Microsoft Excel 2013 workbooks, save Excel workbooks, or make calculations in Excel workbooks.

  • You can no longer open as many Excel workbooks in the same instance as you could before you upgraded to Excel 2013/2016.

  • When you insert columns in an Excel workbook, you receive an error about available memory.

  • When you are working with an Excel spreadsheet, you receive the following error message:

Cause

Starting in Excel 2013, improvements were made that require more system resources than earlier versions required. This article identifies areas in Excel workbooks that use lots of memory and describes how you can make your workbook files work more efficiently.

For more information about the changes that we made in Excel 2013, see Memory Usage in the 32-bit edition of Excel 2013.

Resolution

To resolve this issue, use the following methods in the order in which they are presented. If the one of these methods does not help, move on to the next method.

Note

Many Excel workbooks have several issues that can problems. After you eliminate these issues, your workbook will run more smoothly.

Formatting considerations

Formatting can cause Excel workbooks to become so large that they do not work correctly. Frequently, Excel hangs or crashes because of formatting issues.

Method 1: Eliminate excessive formatting

Excessive formatting in an Excel workbook can cause the file to grow and can cause poor performance. Formatting would be considered excessive if you formatted whole columns or rows with color or borders. This problem also occurs when formatting requires data to be copied or imported from webpages or databases. To eliminate excess formatting, use the format cleaner add-in that is available in Clean excess cell formatting on a worksheet.

If you continue to experience issues after you eliminate excess formatting, move on to method 2.

Method 2: Remove unused styles

You can use styles to standardize the formats that you use throughout workbooks. When cells are copied from one workbook to another, their styles are also copied. These styles continue to make the file grow and may eventually cause the 'Too many different cell formats' error message in Excel when you save back to older file versions.

Many utilities are available that remove unused styles. As long as you are using an XML-based Excel workbook (that is, an .xlsx file or an. xlsm file), you can use the style cleaner tool. You can find this tool here.

If you continue to experience issues after you remove any unused styles, move on to method 3.

Method 3: Remove shapes

Excel mac array formula

Adding lots of shapes in a spreadsheet also requires lots of memory. A shape is defined as any object that sits on the Excel grid. Some examples are as follows:

  • Charts
  • Drawing shapes
  • Comments
  • Clip art
  • SmartArt
  • Pictures
  • WordArt
Basic excel array formulas

Frequently, these objects are copied from webpages or other worksheets and are hidden or are sitting on one another. Frequently, the user is unaware that they are present.

To check for shapes, follow these steps:

  1. On the Home Ribbon, click Find and Select, and then click Selection Pane.
  2. Click The Shapes on this Sheet. Shapes are displayed in the list.
  3. Remove any unwanted shapes. (The eye icon indicates whether the shape is visible.)
  4. Repeat steps 1 through 3 for each worksheet.

If you continue to experience issues after you remove shapes, you should examine considerations that are not related to formatting.

Method 4: Remove conditional formatting

Conditional formatting can cause the file to grow. This occurs when the conditional formatting in the file is corrupted. You can remove the conditional formatting, as a test to see if the problem is with corruption in the formatting. To remove conditional formatting, follow these steps:

  1. Save a backup of the file.
  2. On the Home Ribbon, click Conditional Formatting.
  3. Clear rules from the whole worksheet.
  4. Follow steps 2 and 3 for each worksheet in the workbook.
  5. Save the workbook by using a different name.
  6. See if the problem is resolved.

If removing conditional formatting resolves the issue, you can open the original workbook, remove conditional formatting, and then reapply it.

Problem remains?

If none of these methods work, you may consider moving to a 64-bit version of Excel, breaking your problem workbook into different workbooks, or contacting Support for additional troubleshooting.

Calculation considerations

In addition to formatting, calculations can also cause crashing and hanging in Excel.

Method 1: Open the workbook in the latest version of Excel

Opening an Excel workbook for the first time in a new version of Excel may take a long time if the workbook contains lots of calculations. To open the workbook for the first time, Excel has to recalculate the workbook and verify the values in the workbook. For more information, see the following articles:

If the file continues to open slowly after Excel recalculates the file completely and you save the file, move on to method 2.

Method 2: Formulas

Look through your workbook and examine the kinds of formulas that you are using. Some formulas take lots of memory. These include the following array formulas:

  • LOOKUP
  • INDIRECT
  • OFFSETS
  • INDEX
  • MATCH

Array Formula Problem Microsoft Excel Macro

It's fine to use them. However, be aware of the ranges that you are referencing.

Formulas that reference whole columns could cause poor performance in .xlsx files. The grid size grew from 65,536 rows to 1,048,576 rows and from 256 (IV) columns to 16,384 (XFD) columns. A popular way to create formulas, although not a best practice, was to reference whole columns. If you were referencing just one column in the old version, you were including only 65,536 cells. In the new version, you're referencing more than 1 million columns.

Assume that you have the following VLOOKUP:

In Excel 2003 and earlier versions, this VLOOKUP was referencing a whole row that included only 655,560 cells (10 columns x 65,536 rows). However, with the new, larger grid, the same formula references almost 10.5 million cells (10 columns x 1,048,576 rows = 10,485,760).

This is fixed in Office 2016/365 version 1708 16.0.8431.2079 and later. For information on how to update Office, please see Install Office updates.

For earlier versions of Office you may need to reconstruct your formulas to reference only those cells that are required for your formulas.

Note

Advanced Excel Array Formulas

Check your defined names to make sure that you don't have other formulas that reference whole columns or rows.

Note

This scenario will also occur if you use whole rows.

If you continue experience issues after you change your formulas to refer only to cells that are being used, move on to method 3.

Method 3: Calculating across workbooks

Limit the formulas that are doing the calculations across workbooks. This is important for two reasons:

Array
  • You are trying to open the file over the network.
  • Excel is trying to calculate large amounts of data.

Instead of doing calculations across networks, contain the formula in one workbook, and then create a simple link from one workbook to another.

If you continue to experience the issue after you change your formulas to refer only to cells instead of calculating across workbooks, move on to method 4.

Excel

Method 4: Volatile functions

Limit the use of the volatile functions in a workbook. You do not have to have hundreds of cells that use the TODAY or NOW function. If you have to have the current date and time in your spreadsheet, use the function one time, and then reference the function through a defined name of a link.

If you continue to experience the issue after you limit your volatile formulas, move on to method 5.

Method 5: Array formulas

Array formulas are powerful. But they must be used correctly. It is important not to add more cells to your array than you must have. When a cell in your array has a formula that requires calculation, calculation occurs for all cells that are referenced in that formula.

For more information about how arrays work, please see Excel 2010 Performance: Tips for Optimizing Performance Obstructions.

If you continue to experience the issue after you update your array formulas, move on to method 6.

Method 6: Defined names

Defined names are used to reference cells and formulas throughout the workbook to add a 'friendly name' to your formulas. You should check for any defined names that link to other workbooks or temporary Internet files. Typically, these links are unnecessary and slow down the opening of an Excel workbook.

You can use the Name Manager tool to view hidden defined names that you can't see in the Excel interface. This tool enables you to view and delete the defined names that you don't need.

If Excel continues to crash and hang after you remove any unnecessary defined names, move on to method 7.

Method 7: Links and hyperlinks

Excel's power is in its ability to bring in live data from other spreadsheets. Take an inventory of the file and the external files to which it is linking. Excel doesn't have a limit on how many Excel workbooks can be linked, although there are several issues that you can encounter. Test the file without the links to determine whether the issue is in this file or in one of the linked files.

Moving on

Entering Array Formula Excel

These are the most common issues that cause hanging and crashing in Excel. If you are still experiencing crashing and hanging in Excel, you should consider opening a support ticket with Microsoft.

More Information

If none of these methods made a difference, you should consider either moving to a 64-bit version of Excel or breaking your problem workbook into different workbooks.