array formula issue

I'm having an issue with this guys can anyone help me? I can do this array formula on excel or google sheets but not here on apple numbers


Posted on Sep 17, 2021 4:54 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 18, 2021 1:30 AM

Numbers does not have array formulas. Sometimes they can be replaced by a different formula, sometimes it requires an extra column to do all the "array" stuff that Excel does in one cell.


What is the result supposed to be? It looks like it is referencing the "total" column and returning the minimum value from the "Month Start" column, only looking at the rows where "total" is > 0. I ask because the data you have in the "Month Start" column is text so the result of the MIN function is always going to be zero with the data that is shown. MIN(text) is always zero.


If the "Month Start" column is to have actual dates in it, a formula that should work is

=MINIFS(E5:E20,C5:C20,">0")


Month names will work in column E if the column is formatted as date&time showing only the month, not if formatted as text. Just remember that the "month name" is still a full date, with a year attached.

7 replies
Question marked as Top-ranking reply

Sep 18, 2021 1:30 AM in response to vonroy33

Numbers does not have array formulas. Sometimes they can be replaced by a different formula, sometimes it requires an extra column to do all the "array" stuff that Excel does in one cell.


What is the result supposed to be? It looks like it is referencing the "total" column and returning the minimum value from the "Month Start" column, only looking at the rows where "total" is > 0. I ask because the data you have in the "Month Start" column is text so the result of the MIN function is always going to be zero with the data that is shown. MIN(text) is always zero.


If the "Month Start" column is to have actual dates in it, a formula that should work is

=MINIFS(E5:E20,C5:C20,">0")


Month names will work in column E if the column is formatted as date&time showing only the month, not if formatted as text. Just remember that the "month name" is still a full date, with a year attached.

Sep 18, 2021 1:20 AM in response to vonroy33

Hi vonroy33,


Welcome to the charm of Numbers! Numbers uses small tables, each with a purpose.

This table has one Header Row and two Footer Rows. Header Rows and/or Footer Rows allow a formula to refer to whole columns.

Note that the Table Name is above the table, not in Row 1.

This is not an array formula, but it works.



Formula in Footer Cell E12: VLOOKUP(MINIFS(C,C,">0"),C:E,3,0)


MINIFS finds the minimum value in column C that is greater than 0 ($273.00)

VLOOKUP uses that to find the corresponding value in C:E (third column, E)


Regards,

Ian.

Sep 18, 2021 5:25 AM in response to Yellowbox

The screenshot below is the same formula in Excel 16 for Mac and I get a zero, as expected. I believe your spreadsheet has a special format that puts the word "Month" in front of the number. If so, that format should have imported to Numbers and the MIN formula will work.


Take a look at the cell format to see if it is text (or automatic) or is a custom format that appends "Month" to the front of a number.







This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

array formula issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.