+ Reply to Thread
Results 1 to 6 of 6

Applying IFNA to entire workbook

  1. #1
    Registered User
    Join Date
    12-18-2014
    Location
    england
    MS-Off Ver
    2013
    Posts
    3

    Question Applying IFNA to entire workbook

    Hi Everyone,

    I hope you can help me, I have quite a large workbook with many many sheets and many formulas, it all works nicely although if anything comes out with an #n/a it throws a few things off. I could I suppose go through and manually wrap each formula with =IFNA(,0) but I was pretty sure there would be a way to wrap every formula wih it...?

    If you could help you would save me time!

    Someone here at work advised it can't be done but I hope you can prove him wrong.

    Thank you so much for your responses x

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Applying IFNA to entire workbook

    Hi .. Welcome to the forum..

    Isn't its nice to use a conditional Formatting..

    Capture.JPG

    BTW.. here is some (untested) code also..

    http://www.excelitems.com/2011/03/wr...mulas-add.html
    http://answers.microsoft.com/en-us/o...e-5f02ffa027c9
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Applying IFNA to entire workbook

    that wont get rid of the na() so it will still error on other calculations
    anyway it would be easier to add iferror(XXXXXX,0) not ifna() else you'd have to
    ifna(xxxx,0,XXXXX)
    some code here to wrap all formuls in selection with iferror()
    http://www.thespreadsheetguru.com/th...-your-formulas
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    12-18-2014
    Location
    england
    MS-Off Ver
    2013
    Posts
    3

    Re: Applying IFNA to entire workbook

    Hi Deb,

    Thank you for your reply!

    I amended the Macro to

    Please Login or Register  to view this content.
    How can I amend this to include Array formulas also? I tried changing the "And Not" to just "And" but it did not work! Any ideas?

  5. #5
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Applying IFNA to entire workbook

    Just a blind shot..

    as I am not sure.. how to detect.. if multiple area has same array Formula, and not have a sample file to test..

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-18-2014
    Location
    england
    MS-Off Ver
    2013
    Posts
    3

    Re: Applying IFNA to entire workbook

    Thanks Mate!

    One extra question... Is there a way to make it select the entire workbook instead of one sheet?

+ 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. [SOLVED] Applying TRIM to an entire workbook (or about 50 worksheets
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2014, 11:53 AM
  2. applying formula to the entire column
    By stunbradfordlgb in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-21-2013, 08:28 AM
  3. Applying code to entire column
    By RCG_80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 02:43 AM
  4. applying formula to entire colum
    By vipul.halbe in forum Excel General
    Replies: 1
    Last Post: 07-04-2011, 03:13 AM
  5. [SOLVED] Applying a formula to an entire column
    By Audrey in forum Excel General
    Replies: 3
    Last Post: 04-20-2006, 02:30 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