+ Reply to Thread
Results 1 to 9 of 9

Cannot get isna to work in formula

  1. #1
    Registered User
    Join Date
    02-15-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    15

    Cannot get isna to work in formula

    Hello:

    Having a problem to figure out why my formula won't work if I add ISNA into formula. The formula works good without the ISNA but when I add into the formula I get the following statement. "You've entered too many arguments for this function" and it highlights the 24 where I have ,$M40*45*24

    Am I adding into the wrong part of the formula?? Can I even use the ISNA in this formula?

    Here is the complete formula

    =IF($E40="CONTRACT",0,IF($G40=$A$9,$K$9,IF($G40=$A$12,$K$12,IF(ISNA(VLOOKUP($G40,$A$8:$E$36,5,FALSE)=0,$M40*45*24,VLOOKUP($G40,$A$8:$E$36,5,FALSE)),"",VLOOKUP($G40,$A$8:$E$36,5,FALSE)=0,$M40*45*24,VLOOKUP($G40,$A$8:$E$36,5,FALSE))

    Thank you for any help or suggestions you can pass on.

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

    Re: Cannot get isna to work in formula

    Post formula before (without ISNA() )

  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: Cannot get isna to work in formula

    Can't tell what you're wanting the VLOOKUP to do. You repeated it 4 times.

    The problem is that you don't have a closing ) for the ISNA function.

    The typical use is:

    IF(ISNA(VLOOKUP(...)), do something, do something else)

    Meaning, If the VLOOKUP returns an #N/A error do something. If the VLOOKUP doesn't return the #N/A error then do something else.

    Maybe you should explain in words what should happen.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-15-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Cannot get isna to work in formula

    Hello again:
    Here is a test page I've been working on with this formula. This is the original formula before I tried added the ISNA.(See column Q. Example Q40) =IF($E40="CONTRACT",0,IF($G40=$A$9,$K$9,IF($G40=$A$12,$K$12,IF(VLOOKUP($G40,$A$8:$E$36,5,FALSE)=0,$M40*45*24,VLOOKUP($G40,$A$8:$E$36,5,FALSE)))))

    As you can see I have a bunch of #N/A's. Thank you for any assistance that could be offered.
    Attached Files Attached Files

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,076

    Re: Cannot get isna to work in formula

    Check first is it blank:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Never use Merged Cells in Excel

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Cannot get isna to work in formula

    It seems to me you only get the #N/A because the cell in column G is blank.
    Perhaps

    =IF($E40="CONTRACT",0,IF($G40=$A$9,$K$9,IF($G40=$A$12,$K$12,IF($G40="","",IF(VLOOKUP($G40,$A$8:$E$36,5,FALSE)=0,$M40*45*24,VLOOKUP($G40,$A$8:$E$36,5,FALSE))))))
    Last edited by Jonmo1; 03-30-2016 at 09:26 AM.

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

    Re: Cannot get isna to work in formula

    try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-15-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Cannot get isna to work in formula

    Thank you everyone for your quick response. I tested them and it appears that =IFERROR(IF($E40="CONTRACT",0,IF($G40=$A$9,$K$9,IF($G40=$A$12,$K$12,IF(VLOOKUP($G40,$A$8:$E$36,5,FALSE)=0,$M40*45*24,VLOOKUP($G40,$A$8:$E$36,5,FALSE))))),"") from sandy666 works great.

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

    Re: Cannot get isna to work in formula

    Glad to help.
    Thanks for rep.

+ 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] ISNA formula help
    By akshay8530 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-27-2015, 01:39 PM
  2. How do I add ISNA to this formula?
    By Nobranalon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2013, 07:06 PM
  3. How do I add ISNA to this formula?
    By Nobranalon in forum Excel General
    Replies: 3
    Last Post: 01-24-2013, 07:06 PM
  4. [SOLVED] ISNA formula help
    By Darrenh1238 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2012, 07:03 AM
  5. Excel 2007 : If isna formula
    By glens73 in forum Excel General
    Replies: 3
    Last Post: 10-25-2011, 01:16 PM
  6. Need help with ISNA formula
    By obionenairobi in forum Excel General
    Replies: 7
    Last Post: 02-22-2011, 09:06 AM
  7. How do I use ISNA on this formula
    By amario in forum Excel Formulas & Functions
    Replies: 53
    Last Post: 09-07-2005, 12:05 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