+ Reply to Thread
Results 1 to 5 of 5

Placement of ISNA in long formula

  1. #1
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Placement of ISNA in long formula

    Hi guys,

    I am familiar with the ISNA formula, but i do sometimes hesitate where i'd put it.
    Now i have a rather big formula where it should be placed.

    Maybe you can help me, i've added an example of the sheet.

    Here a brief description.

    A weekly report i make, includes about 40000 lines, each with it's own "Asset", these "Assets" have values.
    Whenever a goods received has taken place, an asset will be booked.
    For a quick weekly summary i want to see in a pivot table how much is been booked in comparison of a week earlier.

    But, i only want to include in the table if an asset is increased by value, not if it is reduced. That part i found out.
    But, also new assets are created weekly, and i can't find a comparison ofcourse. So, an #N/A pops up, and my pivot table doesn't sum anymore.

    Instead of the #N/A, i would like the value of it.

    The formula i use now is:
    Please Login or Register  to view this content.
    Please enlighten me!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Placement of ISNA in long formula

    The ISNA would have to apply to the first instance of VLOOKUP (since the call of the second instance is conditional on the value of the first).

    However, I'm not clear what you want the formula to do is the VLOOKUP does return ISNA. It's likely that an IFERROR will work better for you.

  3. #3
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Placement of ISNA in long formula

    Hi Andrew,

    Thanks for your answer.
    When an error occurs, it should mean that that asset didn't exist a week ago, yet it has been booked within the last week.
    So it should simply give me the value instead of an error.

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Placement of ISNA in long formula

    OK - assuming that everybody using this sheet is going to have Excel 2007 or later then I'd use IFERROR instead of ISNA.

    Try this formula in cell C2, copied down:

    =IFERROR(IF(B2=0,"",IF(VLOOKUP(A2,'List wk 29'!$A:$B,2,0)<'List wk 30'!B2,'List wk 30'!B2-VLOOKUP('List wk 30'!A2,'List wk 29'!$A:$B,2,0),"")),B2)

  5. #5
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Placement of ISNA in long formula

    Many thanks for your help Andrew!

+ 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. Adding ISNA to long nested IF statements with vlookups
    By vgately99 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-07-2013, 02:59 PM
  2. Trying to make my formula also use the date for placement of data
    By opattison in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2012, 03:26 AM
  3. formula placement
    By sdts in forum Excel General
    Replies: 3
    Last Post: 07-02-2011, 03:26 AM
  4. Formula Placement
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-21-2010, 04:54 PM
  5. Long long formula not calc'ing all steps
    By jvautour in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2009, 10:26 AM

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