+ Reply to Thread
Results 1 to 6 of 6

Getting around #N/A

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Getting around #N/A

    My sheet calculates survey answers, sums the answers per category/subject and calculates the percentage of the total score for that category. The formula works in such a way as to keep calculating even if you delete a row, this is key.

    The concern I have is the #N/A in the next cell down after I delete a row. If the calculation is still working - fine! If it isn't I need to do one of two things:

    1. Add an exclusion to the #N/A if possible to continue the formula calculation or
    2. add a tick box for keep/delete the question/row and then calculate IF the question is valid.

    Sadly my ability with Excel stops here
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Getting around #N/A

    Using your posted workbook...
    this regular formula is durable against row deletions:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Getting around #N/A

    I think maybe if instead of something like:
    =IF(A2=A1

    you use
    =IF(A2=OFFSET(A2,-1,0)

    that might work.

  4. #4
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Getting around #N/A

    Formula in column D works even a row is deleted, if you use below formula in place of existing one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ________________________________________________________
    If your problem is solved, update the thread as SOLVED: Go to the top of the first post-Select Thread Tools-Select Mark thread as Solved OR - Go to the first post - Click edit- Click Advance- Just below the word "Title:" you will see a dropdown with the word No prefix.- Change to Solve- Click Save.

    Show your gratitude to the person who helped you solving your problem by clicking on star button at the bottom of such post.

  5. #5
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Getting around #N/A

    See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-22-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    77

    Re: Getting around #N/A

    Fantastic all, thank you so very much! I tried to use something like left/mid/right functions to read the cell reference and minus one from the other, I wasn't aware of the offset before now! This works like a charm, thank you again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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