+ Reply to Thread
Results 1 to 5 of 5

IF AND Function

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    Dallas, Tx
    MS-Off Ver
    2010
    Posts
    15

    IF AND Function

    =IF(AND(N5>4999,N5<6000),"BUSINESS","PERSONAL")

    The statement should read as follows:

    If the value in N5 is between 5000 and 5999, return the value ** Business, otherwise return the value ** Personal.

    This functional statement does not work. Why?

    Thanks for your help

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

    Re: IF AND Function

    Deleted duplicate post.......
    Last edited by martindwilson; 03-08-2014 at 07:06 PM.
    "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

  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: IF AND Function

    works fine for me but you can use >=
    =IF(AND(N5>=5000,N5<=5999),"BUSINESS","PERSONAL")
    but the way you have it it would give BUSINESS FOR 4999.1

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: IF AND Function

    Do you have an actual value in N5? Test with =isnumber(N5) False indicates text
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    02-08-2012
    Location
    Asia
    MS-Off Ver
    Excel 2007, 2010
    Posts
    5

    Re: IF AND Function

    Or you can enclose the value() function to the cells which contains the numbers... Like so:

    Please Login or Register  to view this content.
    Value() will be able to convert the text string which contain a number into the number format.

+ 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. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  2. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  3. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Replies: 2
    Last Post: 03-20-2009, 01:29 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