Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Trend in Excel 1

Status
Not open for further replies.

abitslow

Technical User
Apr 25, 2003
44
Hi, I'm trying to use named arrays in Excel with the TREND function. I can do a SUM using named arrays to select data, such as
Code:
{=SUM(IF((Array1="yes")*(Array2="Big"),Array3,""))}

Note: {} achieved by Ctrl+Shift+Enter after typing in the formula

I'm failing to do a TREND in the same way, such as
Code:
{=TREND(IF((Array1="Yes"),ArrayY,""),IF((Array1="Yes"),ArrayX,""),NewX)}

Can it be done? What am I doing wrong?
Many thanks in advance,
Matt.
 



I perfer using SUMPRODUCT...
[tt]
=SUMPRODUCT((Array1="yes")*(Array2="big")*(Array3))

=TREND(SUMPRODUCT((Array1="Yes")*(ArrayY)),SUMPRODUCT((Array1="Yes")*(ArrayX)),NewX)
[/tt]


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 


oops,

for the TREND...
[tt]
{=TREND(((Array1="Yes")*(ArrayY)),((Array1="Yes")*(ArrayX)),NewX)}
[/tt]


Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Brill! Many thanks Skip! Works wonders for data mining.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top