+ Reply to Thread
Results 1 to 3 of 3

How to use the IF function

  1. #1
    Registered User
    Join Date
    06-21-2022
    Location
    Praha
    MS-Off Ver
    365
    Posts
    1

    How to use the IF function

    Hi to all,
    please help.

    I use the function if and sometimes the result is false. And I would need to add a condition to my formula with the function if that when I come out false so that the result is zero.

    do you know how to do it?

    Thanks
    Last edited by FDibbins; 06-22-2022 at 12:44 AM. Reason: edited title

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: function if

    It would help if you gave us the formula that you are currently using.

    In general, you could do this:

    =IF(your_condition, your_TRUE_result, 0)

    Hope this helps.

    Pete

  3. #3
    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
    52,936

    Re: How to use the IF function

    IF statements have 3 arguments....

    =if(test-to-perform, do-this-if-test-is-true, do-that-if-test-is-false)

    So in your case, it would be something like...

    =if(test-to-perform, do-this-if-test-is-true, 0)
    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

+ 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. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  2. How to combine the WORKDAY function with an IF function to build a working Gantt chart.
    By roomaggoo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 07-07-2018, 11:54 AM
  3. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  4. Replies: 3
    Last Post: 08-14-2017, 06:26 AM
  5. 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
  6. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 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