Array formula help

Steve17701

New Member
Joined
Mar 17, 2023
Messages
12
Office Version
  1. 2019
Platform
  1. Windows
test.xlsx
FGHIJK
4I am using Excel 2019 on Windows. I have a table of numbers I want to count the number of matches with the numbers above, In cell D3 I used a Count(Match()) array formula and it works. However, when I tab to add a new row the the formula in D3 changes. The first parameter to the Match function becomes a two dementional array, as does the the formula in D6. Why? What am I doing wrong? Is there a better way?
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Sheet1
 
SUMPRODUCT failed after hitting tab for a new row.
 

Attachments

  • sp.jpg
    sp.jpg
    50.3 KB · Views: 3
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Formula used was:
{=SUMPRODUCT(--(Table2[@[1]:[3]]=$A$18:$C$18())}

Just like my original issue using {=COUNT(MATCH())}
{SUM(COUNTIFS()} appears to be consistent.
 
Last edited:
Upvote 0
Strange behavior...where's Bill?

pbh.xlsm
ABCDE
17
18123
19
20123count
2111032
2231010
23
PPH
Cell Formulas
RangeFormula
D21:D22D21=SUMPRODUCT(--(Table2[@[1]:[3]]=$A$18:$C$18))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I tried the formulas with Excel 2010. The SumProduct worked with both versions but it was best on the second example.
With E5, the formula did not automatically fill with Tab.
When formulas yield strange results, it is sometimes because of the data. Ensure the numbers are numbers and not text.

SumProduct2022.xlsm
ABCDE
3
4n1n2n3countSumProduct
512333
633331
713332
81233
9
10123
11n1n2n3Count
121233
1311032
1431010
151233
16
9a
Cell Formulas
RangeFormula
D5:D7D5=SUM(COUNTIFS(Table4[@[n1]:[n3]],$A$1:$C$1))
E5:E8E5=SUMPRODUCT(--(Table4[@[n1]:[n3]]=$A$1:$C$1))
D12:D15D12=SUMPRODUCT(--(A12:C12=$A$10:$C$10))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
re Strange behavior

Try using Formulas Evaluate Formula

You may be able to identify what part of the formula is yielding the problem.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top