lrobbo314
Well-known Member
- Joined
- Jul 14, 2008
- Messages
- 3,957
- Office Version
- 365
- Platform
- Windows
I have been trying to get Var.P to work in an array formula and I haven't been able to figure it out. I tried using Sumproduct and kind of got it to work, but it was incorporating 0s for the non-matches and gave the wrong answer. So, I wanted to use aggregate to ignore errors. This is the formula I came up with.
So, the item I am looking up is in N2.
It looks for a match in column A.
If it matches, it gets the absolute value of the number in column F, else it puts #N/A into the array.
When I step through the formula, it looks like it should work, but it returns a #VALUE error.
Any ideas?
Code:
=AGGREGATE(11,3,IF($A$2:$A$468=N2,ABS($F$2:$F$468),NA()))
So, the item I am looking up is in N2.
It looks for a match in column A.
If it matches, it gets the absolute value of the number in column F, else it puts #N/A into the array.
When I step through the formula, it looks like it should work, but it returns a #VALUE error.
Any ideas?