View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default VLOOKUP and SUMPRODUCT

Hi,

Check the VLOOKUP column and make sure none of the results are #N/A that
will cause the entire SUMPRODUCT formula to return #N/A.

You should be using (2003) something like:

=IF(ISNA(VLOOKUP(A1,Table,3,False)),"",VLOOKUP(A1, Table,3,False))

to handle NA's

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"PAL" wrote:

I have 3 worksheets.

The first worksheet contains a column that has text in it and is formatted so.
The second worksheet, uses VLOOKUP to bring that value over.
The third worksheet uses SUMPRODUCT. The formula worked prior to adding the
parameter described above. The formula is:

=SUMPRODUCT(--('Enroll I'!$O$2:$O$2237="Regular"),--('Enroll
I'!$E$2:$E$2237<" Open"),--('Enroll I'!$M$2:$M$2237="Yes"),--('Enroll
I'!$H$2:$H$22370),--('Enroll I'!$N$2:$N$2237="No Data"))

This is the only new peice: ('Enroll I'!$O$2:$O$2237="Regular"). I get the
#N/A error.

I have tried changing the formating on the second worksheet but it is not
flying. Ideas?