Average of Vlookup data

J

JAbels001

I have 263 employees and I am trying to average out third quarter, so I have
tabs July, Aug, and Sept and a fourth tab for the average. I have built an
average formula using vlookup (by their employee id) to simplyfy it, BUT I am
getting an error (#N/A) for about 50 employees b/c they were only here for
one or two months... The problem is that I do not know which month without
looking through all of the data for each month.

Is there a formula that could look up this info for me and average it while
neglecting the missing data?

Current formula:
=AVERAGE(VLOOKUP(A6,JulGen,4,FALSE),VLOOKUP(A6,AugGen,4,FALSE),
VLOOKUP(A6,SeptGen,4,FALSE))
 
T

T. Valko

Change each of the VLOOKUP's to this (using the appropriate table name for
each):

IF(ISNA(VLOOKUP(A6,JulGen,4,0)),{""},VLOOKUP(A6,JulGen,4,0))
 
J

JAbels001

That worked perfectly! You're a genius! Thanks!

T. Valko said:
Change each of the VLOOKUP's to this (using the appropriate table name for
each):

IF(ISNA(VLOOKUP(A6,JulGen,4,0)),{""},VLOOKUP(A6,JulGen,4,0))
 

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

Top