+ Reply to Thread
Results 1 to 5 of 5

IF(AND OR function

  1. #1
    Registered User
    Join Date
    01-07-2016
    Location
    DEN BOSCH, The Netherlands
    MS-Off Ver
    Professional 2013
    Posts
    1

    IF(AND OR function

    Hi all,

    My first post here!!!

    I want to compare a value in pecentage format and it just does not seem to work... it looks like this;
    if the value in cell is equal or greater than 103% and smaller than 104% multply by 2

    Please help!

  2. #2
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: IF(AND OR function

    Assuming your inputs start in cell A1, does this formula in B1 work?

    Please Login or Register  to view this content.
    You didn't say what you wanted to do when the input is not between 103% and 104%, so in that case, this will return the original input.
    Last edited by jjhayes; 01-07-2016 at 12:01 PM. Reason: Typo in formula

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,810

    Re: IF(AND OR function

    try

    =IF(AND(A1>=1.03,A1<1.04),B1*2,B1)

    100% =1

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: IF(AND OR function

    Quote Originally Posted by jjhayes View Post
    Assuming your inputs start in cell A1, does this formula in B1 work?

    Please Login or Register  to view this content.
    You didn't say what you wanted to do when the input is not between 103% and 104%, so in that case, this will return the original input.
    I think jjhayes means A1 not A2

    UPDATE: Ah, he spotted his mistake! :-)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: IF(AND OR function

    Special-K...

    Thanks...you are right...typo.

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  3. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  4. [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
  5. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  6. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  7. Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04: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