+ Reply to Thread
Results 1 to 12 of 12

Difficulty figuring out were to put IFNA

  1. #1
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Difficulty figuring out were to put IFNA

    I have been struggling trying to figure out were to put the function IFNA in a formula that I am working on. The formula is as follows:

    =((IF(ISERROR(VLOOKUP($A$211,Dough_amounts,2,FALSE)),(VLOOKUP($A$211,Dough_amounts_2,2,FALSE)),(VLOOKUP($A$211,Dough_amounts,2,FALSE)))*VLOOKUP($A$211,weight_cac_mixin,5,FALSE)))

    I am needing to look up a specific product(A211) that might be in two different look up areas (dough_amount, and dough_amounts_2). Then take the amount of the product (column 2) and multiply it by the weight of the product (weight_cac_mixin). The ending result is the total amount of dough needed to produce.
    I am running into issues when that product isn't being produced that day and doesn't show up in either of the two above search areas. It gives me a #N/A which causes problems with the formula that comes after that. The production sheet will be used earlier versions of excel (1997 to 2003). Any help that you can give would be great.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Difficulty figuring out were to put IFNA

    Hi BakerBoy,

    I think you can just wrap the whole formula in IFNA like this:

    =IFNA(((IF(ISERROR(VLOOKUP($A$211,dough_amounts,2,FALSE)),(VLOOKUP($A$211,dough_amounts_2,2,FALSE)),(VLOOKUP($A$211,dough_amounts,2,FALSE)))*VLOOKUP($A$211,weight_cac_mixin,5,FALSE))),0)

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Difficulty figuring out were to put IFNA

    The IFNA function is available in Excel versions 2013 and later.

    Your profile says you're using Excel 2010 but I think you're saying this needs to work in Excel 2003 and earlier?

    Quote Originally Posted by TheBakerBoy View Post
    The production sheet will be used earlier versions of excel (1997 to 2003).
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Difficulty figuring out were to put IFNA

    Alternative IFNA() for Ex 2003 is IF(ISNA(any_formula),result_on_any_formula=#N/A,any_formula)
    Last edited by sandy666; 02-23-2016 at 06:56 AM.

  5. #5
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Difficulty figuring out were to put IFNA

    Hi David

    This didn't work, it said there was too many arguments for the formula.

  6. #6
    Registered User
    Join Date
    06-25-2015
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    19

    Re: Difficulty figuring out were to put IFNA

    I am using 2010 and the IFNA function works seems to work well. The thing is that this workbook goes out to 87 different locations with 2003 upto the latest edition.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Difficulty figuring out were to put IFNA

    Quote Originally Posted by TheBakerBoy View Post
    I am using 2010 and the IFNA function works seems to work well.
    My version of Excel 2010 doesn't have an IFNA function. My version of Excel 2013 does!

    So it sounds like you need this work in all versions since Excel 2003?

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Difficulty figuring out were to put IFNA

    IFNA() function
    APPLIES TO: Excel 2016, Excel 2013, Excel 2016 for Mac, Excel for Mac 2011, Excel Online, Excel for iPad, Excel for iPhone, Excel for Android tablets, Excel for Android phones. Seems you've extended version of Ex 2010 or UDF

  9. #9
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Difficulty figuring out were to put IFNA

    Sorry BakerBoy,

    One tends to forget when some of the functions were introduced! As Sandy pointed out, IFNA() only came into use in 2013. Thus, you have to make the formula quite long for it to be backwards compatible. Thus:

    Please Login or Register  to view this content.
    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Difficulty figuring out were to put IFNA

    Is the lookup value guaranteed to be in one of the two lookup areas?

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Difficulty figuring out were to put IFNA

    IMO, this formula from #9 is too long (visual)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    so:
    in Name Manager define names:
    for =VLOOKUP($A$211,dough_amounts,2,0), e.g. VLDA
    for =VLOOKUP($A$211,dough_amounts_2,2,0), e.g. VLDA2
    for =VLOOKUP($A$211,weight_cac_mixin,5,0), e.g. VLWCM
    and in effect you will get:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I think that it is more clear and shorter

  12. #12
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Difficulty figuring out were to put IFNA

    I agree with Sandy666, because the formula is very long! I really dislike overly long formulas. (I wish I'd thought of it?)

    This solution using named ranges will work perfectly well provided the lookup cell is always $A$211. If the formula needs to be copied down, or to other locations it will not work.

    Another solution could be to break the formula up into helper columns where you solve one test in each column.

    The big problem with the older functions (ISNA, ISERROR etc) is that you have to repeat the formula in the two parts of the equation. This is what makes it so long! If you split it up into multiple columns, the formulas would be something like this - across three helper columns - the fourth being your answer:
    =IF(ISNA(VLOOKUP($A$211,dough_amounts,2,0)),0,VLOOKUP($A$211,dough_amounts,2,0))
    =IF(ISNA(VLOOKUP($A$211,dough_amounts_2,2,0)),0,VLOOKUP($A$211,dough_amounts_2,2,0))
    =IF(ISNA(VLOOKUP($A$211,weight_cac_mixin,5,0)),0,VLOOKUP($A$211,weight_cac_mixin,5,0))
    =(C6+D6)*E6

    Regards,

    David
    Last edited by David A Coop; 02-25-2016 at 03:03 AM.

+ 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. Applying IFNA to entire workbook
    By Bral1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-18-2014, 08:49 AM
  2. [SOLVED] Nested IF difficulty.
    By Drayde in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-13-2014, 12:10 PM
  3. [SOLVED] Having difficulty using IF, AND & OR in the same function
    By Straw in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 07:58 PM
  4. difficulty on forum
    By naeemdotcom in forum The Water Cooler
    Replies: 1
    Last Post: 01-10-2011, 01:13 PM
  5. VLOOKUP Difficulty
    By Serge in forum Excel General
    Replies: 5
    Last Post: 06-20-2006, 09:55 PM
  6. [SOLVED] Loop Difficulty
    By smandula in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2006, 10:45 PM
  7. difficulty with permutations, please help!
    By Loane Sharp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2005, 01: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