Using EDATE with arrays as arguments

J

Jody Wally

I have a conditional sum array formula where as one of
the conditions, I am trying to use the EDATE function
with arrays as arguments. However, I keep getting
the "#VALUE!" error.

The function looks like: EDATE(Range1,Range2), where
Range1 is a named range of valid dates and Range2 is a
named range of numeric values (1-36) that represent
months.

Notes:
-The Range1 date values are all valid and the EDATE
function resolves them correctly with the Range2 argument
when the formulas use straight references and not arrays.
-The full array formula functions correctly until I add
the EDATE condition.
-The named ranges are dynamic ranges, which function
correctly elsewhere on the sheet.

My tentative conclusion is that the EDATE function cannot
use arrays as arguments, but I haven't been able to
verify this anywhere, so I am hoping that there is some
other explanation, since I don't want to build the
condition the long way.

So, can EDATE use arrays as arguments? If so, why am I
getting the error?

Thanks Experts!

Jody
 
A

akyurek

EDATE does not return an array, just a scalar. Try to eplace the EDATE
expression with one using DATE.
 

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

Similar Threads

INDEX return multiple columns 1
Array Function & EDATE 3
Sumproduct using OR 4
Same experience 0
Search a named range 2
Ranges and Arrays in Excel VBA 15
Using IF Function with EDATE Function 3
SumProduct basics 3

Top