+ Reply to Thread
Results 1 to 8 of 8

#N/A In V Lookups

  1. #1
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    #N/A In V Lookups

    Hello,

    If you take a look at the attached spreadsheet, the lookups are working fine on the summary sheet, but where it can't find data in the lookup I need it to display '0' instead of '#N/A'.

    Any help would be appreciated.

    Kind regards,

    Om.
    Attached Files Attached Files
    Last edited by omletto; 06-15-2010 at 06:16 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: #N/A In V Lookups

    You can always use principle:

    =IF( ISNA(formula), 0, formula )

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: #N/A In V Lookups

    Also.. in AA you could write:

    =SUMIF($C$7:$Z$7;AA$7; $C8:$Z8) and pull right and down which is easier way for summing in your example

  4. #4
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: #N/A In V Lookups

    Sorry, bit of a novice here. How would that formulae read?

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: #N/A In V Lookups

    Here:

    =IF(ISNA(MATCH($A8, Jan!$M:$M,0)), 0, VLOOKUP(A8, Jan!M:N, 2, 0))

    Of course, you could also use:

    =IF(ISNA(VLOOKUP(A8, Jan!M:N, 2, 0)), 0, VLOOKUP(A8, Jan!M:N, 2, 0))

    but MATCH is slightly better then VLOOKUP for this kind of test...

  6. #6
    Registered User
    Join Date
    05-13-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: #N/A In V Lookups

    omletto, why dont' u look in help for sumif.

  7. #7
    Registered User
    Join Date
    08-20-2004
    Posts
    6

    Re: #N/A In V Lookups

    See example for jan-10.
    With 0 for SALES and empty string for COS.
    In Excel 2007 there is a new, more compact, function for this.
    Kees in Eindhoven
    Why easyif it can be made complicated?

  8. #8
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: #N/A In V Lookups

    Thanks, I didn't realise you could combine SUMIF with VLookups, its working now.

    All help much appreciated.

    Kind regards,

    Om

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1