XL: Using Noncontiguous Ranges in Array FunctionsID: Q79625
|
Microsoft Excel functions that take arrays as arguments, such as LINEST, LOGEST, IRR, MIRR, MDETERM, NPV, RATE, and XIRR cannot accept noncontiguous ranges of data as their array arguments. You must either copy the ranges to a contiguous area or enter the values as constants, as the following two workarounds describe.
The example below shows how to use these workarounds with the LINEST
function.
A1: X1 B1: C1: X3 D1: Y1
A2: 2,310 B2: C2: 20 D2: 142,000
A3: 2,333 B3: C3: 12 D3: 144,000
=LINEST(D2:D3,E2:F3,,TRUE)
=LINEST(D2:D3,{2310,20;2333,12},,TRUE)
"Function Reference," version 4.0, pages 254-258
"User's Guide 2," version 4.0, pages 159-161
"Microsoft Excel Function Reference," version 3.0, pages 138-141
"Microsoft Excel User's Guide," version 3.0, pages 282-284
Additional query words: non-contiguous contiguous adjacent nonadjacent
Keywords : kbdta
Version : WINDOWS:2.2,3.0,4.0,5.0,7.0,97; MACINTOSH:2.0,3.0,4.0,5.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 23, 1999