ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Array Formula, noncontigous range (https://www.excelbanter.com/excel-worksheet-functions/31866-array-formula-noncontigous-range.html)

Werner Rohrmoser

Array Formula, noncontigous range
 
Hello,

Application: Excel XP SP2
OS: WIN XP SP 1

Problem:
Is it possible to use an array formula with an noncontigous range,
or is it normal to get "#Value!" error?

Example:

Cells A1, A3, A5, A7 = Range named "Category"
Cells B1, B3, B5, B7 = Range named "Data"

Array Formula:

={SUM((Category="Test")*Data)}

TIA,
Werner


Bob Phillips

Don't think so as is, but you could try

=SUMPRODUCT(--(MOD(ROW(A1:A8),2)=1),--(A1:A8="Category"),B1:B8)

--
HTH

Bob Phillips

"Werner Rohrmoser" wrote in message
oups.com...
Hello,

Application: Excel XP SP2
OS: WIN XP SP 1

Problem:
Is it possible to use an array formula with an noncontigous range,
or is it normal to get "#Value!" error?

Example:

Cells A1, A3, A5, A7 = Range named "Category"
Cells B1, B3, B5, B7 = Range named "Data"

Array Formula:

={SUM((Category="Test")*Data)}

TIA,
Werner





All times are GMT +1. The time now is 06:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com