+ Reply to Thread
Results 1 to 4 of 4

Help with ISNA

  1. #1
    Registered User
    Join Date
    01-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    2

    Help with ISNA

    Hi all

    I'm not great with Excel so would appreciate any help you may be able to offer.

    I have a workbook with data on 7 different worksheets. I am trying to do a single formula to look do a vlookup across all 7 worksheets at the same time and then sum all of those values together.

    Now on worksheets where the lookup value exists this works fine. However on a worksheet where the lookup value doesnt exist this returns an #NA error and this in turn breaks the formula as it can;t sum an NA value.

    The working formula is.

    =(SUM(VLOOKUP($A2,'Cases Opened'!A:H,2,FALSE),VLOOKUP($A2,'Cases Closed'!A:J,2,FALSE),VLOOKUP($A2,'Cases Resolved'!A:K,2,FALSE),VLOOKUP($A2,'Emails Added'!A:H,2,FALSE),VLOOKUP($A2,'Test Results'!A:H,2,FALSE),VLOOKUP($A2,'Case Comments'!A:J,2,FALSE)))

    Reading up it seems an isna or is error function may be of use here so I've tried this but it wont accept the forumala i'm putting in.

    =(if(isna(SUM(VLOOKUP($A2,'Cases Opened'!A:H,2,FALSE),VLOOKUP($A2,'Cases Closed'!A:J,2,FALSE),VLOOKUP($A2,'Cases Resolved'!A:K,2,FALSE),VLOOKUP($A2,'Emails Added'!A:H,2,FALSE),VLOOKUP($A2,'Test Results'!A:H,2,FALSE),VLOOKUP($A2,'Case Comments'!A:J,2,FALSE))0)))

    Can anybody help me out with where Im going wrong?

    Would be most appreciative of any help.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,145

    Re: Help with ISNA

    Iferror(your formula,"") will do the job
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    01-07-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    2

    Re: Help with ISNA

    Thanks for the quick response Glenn.

    That does make the formula work though its not quite what I was looking for.

    The lookup values exist in 5 of the 7 worksheets so I need to sum these together.

    Doing the below returns a value of 0 for the overall sum total. What I'm trying to achieve is if the lookup value doesnt exist on one of the worksheets its performing a vlookup on to return a 0 for that vlookup rather than an NA so that it will sum together all of the different vlookups.

    =IFERROR(SUM(VLOOKUP($A3,'Cases Opened'!A:H,2,FALSE),VLOOKUP($A3,'Cases Closed'!A:J,2,FALSE),VLOOKUP($A3,'Cases Resolved'!A:K,2,FALSE),VLOOKUP($A3,'Emails Added'!A:H,2,FALSE),VLOOKUP($A3,'Test Results'!A:H,2,FALSE),VLOOKUP($A3,'Case Comments'!A:J,2,FALSE)),"0")

    Is there a way to do this so it will return a 0 just for a specific vlookup rather than displaying a 0 for the whole sum as thats not quite right?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,145

    Re: Help with ISNA

    OK. One way would be to wrap each of the vlookups in an error catching formula:

    =sum(iferror((vlookup1),0),iferror((vlookup2),0),iferror((vlookup3),0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If(isna...
    By ben.fish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2008, 09:18 AM
  2. Using ISNA with OR
    By HBF in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-01-2006, 05:40 PM
  3. [SOLVED] ISNA
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 07:05 AM
  4. ISNA
    By Lomax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. ISNA
    By Lomax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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