Microsoft® Excel® based database addin

 

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Angelsnecropolis Guest

    Default Why won't this function work?

    This function works:
    =IF(B71="","",IF(B71<=330,"Standard","Below Standard"))

    But when I change "330" to "R4" it doesn't work. R4 is a number field that
    has 330 in it. It doesn't seem to be recognizing the Value_if_False
    statement. Any number will make it show "Standard."
    =IF(B71="","",IF(B71<=R4,"Standard","Below Standard"))

    Your help is appreciated.

  2. #2
    Dennis Tucker Guest

    Default Re: Why won't this function work?

    It works fine on v2007.

    "Angelsnecropolis" <Angelsnecropolis@discussions.microsoft.com> wrote in
    message news:508AD6C7-C831-4FAC-9A85-2EE1CB8165C2@microsoft.com...
    > This function works:
    > =IF(B71="","",IF(B71<=330,"Standard","Below Standard"))
    >
    > But when I change "330" to "R4" it doesn't work. R4 is a number field that
    > has 330 in it. It doesn't seem to be recognizing the Value_if_False
    > statement. Any number will make it show "Standard."
    > =IF(B71="","",IF(B71<=R4,"Standard","Below Standard"))
    >
    > Your help is appreciated.



  3. #3
    T. Valko Guest

    Default Re: Why won't this function work?

    Does R4 contain a formula?

    If R4 contains a *text* number and B71 contains a numeric number then
    B71<=R4 will *always* be TRUE because in Excel text has a higher value than
    numeric numbers.

    A1 = X
    A2 = 1,000,000

    =A1>A2 = TRUE

    A1 formatted as TEXT
    A1 = 1 (a text number)
    A2 = 1,000,000

    =A1>A2 = TRUE

    --
    Biff
    Microsoft Excel MVP


    "Angelsnecropolis" <Angelsnecropolis@discussions.microsoft.com> wrote in
    message news:508AD6C7-C831-4FAC-9A85-2EE1CB8165C2@microsoft.com...
    > This function works:
    > =IF(B71="","",IF(B71<=330,"Standard","Below Standard"))
    >
    > But when I change "330" to "R4" it doesn't work. R4 is a number field that
    > has 330 in it. It doesn't seem to be recognizing the Value_if_False
    > statement. Any number will make it show "Standard."
    > =IF(B71="","",IF(B71<=R4,"Standard","Below Standard"))
    >
    > Your help is appreciated.




  4. #4
    Fred Smith Guest

    Default Re: Why won't this function work?

    It's likely that the "330" in R4 is text. What formula is used to produce
    it?

    Regards,
    Fred

    "Angelsnecropolis" <Angelsnecropolis@discussions.microsoft.com> wrote in
    message news:508AD6C7-C831-4FAC-9A85-2EE1CB8165C2@microsoft.com...
    > This function works:
    > =IF(B71="","",IF(B71<=330,"Standard","Below Standard"))
    >
    > But when I change "330" to "R4" it doesn't work. R4 is a number field that
    > has 330 in it. It doesn't seem to be recognizing the Value_if_False
    > statement. Any number will make it show "Standard."
    > =IF(B71="","",IF(B71<=R4,"Standard","Below Standard"))
    >
    > Your help is appreciated.



Similar Threads

  1. Function doesn't work
    By Neal Carron in forum Worksheet Functions
    Replies: 2
    Last Post: 01-26-2010, 01:12 AM
  2. Replies: 1
    Last Post: 03-31-2009, 12:33 AM
  3. Why it can work in Function but ok in Sub
    By new.microsoft.com in forum Programming (VBA, VB, C# etc)
    Replies: 1
    Last Post: 01-24-2009, 10:28 PM
  4. which function will work?
    By bestmom in forum Worksheet Functions
    Replies: 3
    Last Post: 01-04-2009, 05:31 PM
  5. How does a function work?
    By Craig in forum Worksheet Functions
    Replies: 2
    Last Post: 01-04-2009, 04:47 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