Array formula works on first row only

M

Murray

Greetings

I have an array formula that I have entered (using CTRL+SHIFT+ENTER)
as follows:

=IF(CONCATENATE($C$2:$C$1900,$D$2:$D$1900)=$A2,VALUE(I$2:I$1900),NA())

This works fine on the first row I entered it into and gives a result.
However, when I copy it down so it references A3, A4 etc, it always
returns #N/A for every subsequent row.

Possibly useful other information:
1. The numbers in column I are formatted as text, hence the VALUE
function.
2. Thinking the CONCATENATE might be the problem I created another
column with the concatenated result and referenced that instead, but
to no avail.

Any ideas why it doesn't work?

Thanks

Murray
 
T

Tom Hutchins

Try entering it as a regular (non-array) formula and copying it down. Works
for me.

Hope this helps,

Hutch
 
M

Murray

Try entering it as a regular (non-array) formula and copying it down. Works
for me.

Hope this helps,

Hutch








- Show quoted text -

Thanks Tom, but that only seems to work if the row number of the value
in column A matches its counterpart in rows 2-1900.

I seem to have found a solution by changing it to
=SUM(IF(CONCATENATE($C$2:$C$1900,$D$2:$D$1900)=$A2,VALUE(I$2:I$1900),
0))
but I'm still unsure as to why this works and the other one does not.

Murray
 
T

T. Valko

=SUM(IF(CONCATENATE($C$2:$C$1900,$D$2:$D$1900)=$A2,VALUE(I$2:I$1900),0))
The numbers in column I are formatted as text
hence the VALUE function.

Try this normally entered formula:

=SUMPRODUCT(--($C$2:$C$1900&$D$2:$D$1900=$A2),--I$2:I$1900)

--
Biff
Microsoft Excel MVP


Try entering it as a regular (non-array) formula and copying it down.
Works
for me.

Hope this helps,

Hutch








- Show quoted text -

Thanks Tom, but that only seems to work if the row number of the value
in column A matches its counterpart in rows 2-1900.

I seem to have found a solution by changing it to
=SUM(IF(CONCATENATE($C$2:$C$1900,$D$2:$D$1900)=$A2,VALUE(I$2:I$1900),
0))
but I'm still unsure as to why this works and the other one does not.

Murray
 
M

Murray

Thanks Biff

With a few modifications to deal with errors induced by blank values,
and array entering it, it worked really well.

Murray
 
T

T. Valko

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


Thanks Biff

With a few modifications to deal with errors induced by blank values,
and array entering it, it worked really well.

Murray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top