+ Reply to Thread
Results 1 to 5 of 5

If function command

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    Sweden
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 2002
    Posts
    33

    Talking If function command

    Hello,

    What I'm trying to do with excel is the following.

    If the cell K2 has a value that is less than 1 then i want the formula to return the value 1000 and if K2 is 1 or larger then it should return whatever is in AX2.

    I've tried using the following formula:

    =IF(K2<1;1000;AX2)

    I even tried setting a cell B2 = 1000

    and doing the following:

    =IF(K2<1;$B$2;AX2)

    It doesn't work, can any1 see why?

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

    Re: If function command

    try: =IF(K2<1,1000,AX2)

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

    Re: If function command

    ups, I read first line only

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

    Re: If function command

    Why it doesn't work for you?
    If B2 =1000 this is the same like your first formula
    Attached Files Attached Files
    Last edited by sandy666; 05-01-2017 at 04:03 PM.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If function command

    Assuming that your regional delimiter is semicolons (and not commas), your formula should have worked.
    Possible reasons it did not work.

    1. The value in K2 is set as text and is not being seen as a number.
    2. The K2 you refer to is on a different sheet and you need to reference that sheet.
    3. Numerous other possibilities that I can't even think of without seeing an example sheet.

    Upload an example sheet (Go Advanced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. seeing the parts of a function (command)?
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2015, 01:32 PM
  2. Command button function
    By leoruphen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2014, 11:12 AM
  3. Excel 2007 : Using 'if' command and vLookup function
    By michaelw60 in forum Excel General
    Replies: 5
    Last Post: 01-25-2011, 03:57 PM
  4. Command Button Function HElp!
    By LAWDAWG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2009, 02:38 PM
  5. Hide function/command
    By joshmoshoshkosh in forum Excel General
    Replies: 3
    Last Post: 05-25-2007, 10:11 AM
  6. [SOLVED] command or function for POS
    By Jaime in forum Excel General
    Replies: 0
    Last Post: 11-28-2005, 07:00 PM
  7. Use IF command in >7 nested function??
    By KDD in forum Excel General
    Replies: 4
    Last Post: 08-29-2005, 12:05 AM

Tags for this Thread

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