LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Vlookup Encounters a call with no data and returns #N/A

Dave it works to a degree, it seems like I can only have so many vlookups in
the formula, then its tells me there is an error in thr formula, when i take
the last vlookup out, it works. It IDs the cell, sums it and when the name
isnt in the sheet it moves to the next sheet. The formula is posted below.
Thanks again for the help, I have come farther in the last 2 hours than the
whole day.

=IF(ISNA(VLOOKUP($A2,December!$C$4:$Q$69,15,FALSE) ),0,(VLOOKUP($A2,December!$C$4:$Q$69,15,FALSE))+IF (ISNA(VLOOKUP($A2,January!$C$3:$Q$75,15,FALSE)),0, (VLOOKUP($A2,January!$C$4:$Q$75,15,FALSE))+IF(ISNA (VLOOKUP($A2,February!$C$3:$Q$85,15,FALSE)),0,(VLO OKUP($A2,February!$C$4:$Q$85,15,FALSE))+IF(ISNA(VL OOKUP($A2,March!$C$3:$Q$85,15,FALSE)),0,(VLOOKUP($ A2,March!$C$4:$Q$85,15,FALSE))+IF(ISNA(VLOOKUP($A2 ,April!$C$4:$Q$85,15,FALSE)),0,(VLOOKUP($A2,April! $C$4:$Q$85,15,FALSE))+IF(ISNA(VLOOKUP($A2,May!$C$4 :$Q$85,15,FALSE)),0,(VLOOKUP($A2,May!$C$4:$Q$85,15 ,FALSE))+IF(ISNA(VLOOKUP($A2,June!$C$4:$Q$85,15,FA LSE)),0,(VLOOKUP($A2,June!$C$4:$Q$85,15,FALSE))+IF (ISNA(VLOOKUP($A2,July!$C$4:$Q$85,15,FALSE)),0,(VL OOKUP($A2,July!$C$4:$Q$85,15,FALSE))+IF(ISNA(VLOOK UP($A2,August!$C$4:$Q$85,15,FALSE)),0,(VLOOKUP($A2 ,August!$C$4:$Q$85,15,FALSE)))))))))

"Dave Peterson" wrote:

You have to change each =vlookup() in your formula so that it checks for an
error. If it's an error, return a 0.

=if(isna(VLOOKUP($A2,December!$C$3:$H$68,3,FALSE)) ,0,
VLOOKUP($A2,December!$C$3:$H$68,3,FALSE))

+if(isna(VLOOKUP($A2,January!$C$3:$H$65,3,FALSE)), 0,
VLOOKUP($A2,January!$C$3:$H$65,3,FALSE))

+ ...

If that doesn't work, post the formula that you tried.

Six Sigma Blackbelt wrote:

Dave Thanks, that help, but when a persons name isnt in the sheet it returns
a 0 and dosent continue to add the cells in the multiple sheets. So basically
i need the formula to skip that sheet if the names dosent appear in the sheet
and move on to the next sheet, sum the cell with other cells that is has
already sum and continue the process until all sheets have been sum.

"Dave Peterson" wrote:

=VLOOKUP($A2,December!$C$3:$H$68,3,FALSE)
+VLOOKUP($A2,January!$C$3:$H$65,3,FALSE)
+VLOOKUP($A2,February!$C$3:$H$74,3,FALSE)
+VLOOKUP($A2,March!$C$3:$H$85,3,FALSE)
+VLOOKUP($A2,April!$C$3:$H$85,3,FALSE)

You could check to see if each addend is an error. If it is, then return 0:

=if(isna(VLOOKUP(...)),0,vlookup(...))
+if(isna(VLOOKUP(...)),0,vlookup(...))
....


Six Sigma Blackbelt wrote:

My vlookup formula goes like this

=VLOOKUP($A2,December!$C$3:$H$68,3,FALSE)+VLOOKUP( $A2,January!$C$3:$H$65,3,FALSE)+VLOOKUP($A2,Februa ry!$C$3:$H$74,3,FALSE)+VLOOKUP($A2,March!$C$3:$H$8 5,3,FALSE)+VLOOKUP($A2,April!$C$3:$H$85,3,FALSE)

The formula finds a name an adds the numbers associated with that name in
the cells together, but some of the months like April do not have the names
of the people so the vlookup returns #N/A instead of the sum, because that
name could not be found in the specified tab labeled March or April. What
kind of IF Statement can i use to continue adding the cells even if that
persons name dosen't show up in that tab.

--

Dave Peterson


--

Dave Peterson

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call a Visual Basic Function with VLookup ajd Excel Worksheet Functions 10 December 18th 07 03:40 AM
Vlookup Returns Wrong/No Data TomCat Excel Worksheet Functions 3 October 7th 07 01:19 PM
VLookup occasionally returns formula with no data Ted Jillett Excel Discussion (Misc queries) 3 August 9th 07 01:48 PM
vlookup returns bad data SelfTaught_InNeedOfPro Excel Worksheet Functions 3 November 1st 06 09:51 AM
VLOOKUP Returns Erroneous Value When Control Data is Variable The Hawk Excel Worksheet Functions 5 April 23rd 06 04:39 AM


All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"