+ Reply to Thread
Results 1 to 6 of 6

IF formula with multiple conditions

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    2

    IF formula with multiple conditions

    Hello everyone,

    As the title of the thread says, I need help with having multiple conditions in an IF formula.

    IF Excel.jpg

    Basically what I want is that when a cell in "Horas Trabalhadas" is "FOLGA" that it returns "FOLGA" in "Subsídio de Refeição" instead of "SIM" or "NÃO".

    I've tried using the OR function but I can't seem to get there. May you give me some help please?

    Thanks!

  2. #2
    Registered User
    Join Date
    06-09-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    26

    Re: IF formula with multiple conditions

    Hi,

    I think you are trying to evaluate it like this:
    If the time is >=5, give me a "SIM", if it is <5, give me a "NAO", and if its "FOLGA", give me "FOLGA".

    If so, I have found this formula helpful:
    =IF(C15="FOLGA","FOLGA",IF(C15>=TIME(5,0,0),"SIM","NAO"))

    You may take your own cell references instead of mine.

    And let me know if I've been correct in my understanding of the problem.

    Regards
    Asar

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: IF formula with multiple conditions

    =if( F2 = "FOLGA", "Subsídio de Refeição", --- not sure how you get "SIM" or "NÃO". into the cell

    =if( F2 = "FOLGA", "Subsídio de Refeição", then put the formula you have here ie IF( F2>=time....... ) )


    a spreadsheet rather than the image would be much better help here
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    02-15-2014
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2013
    Posts
    2

    Post Re: IF formula with multiple conditions

    Quote Originally Posted by asar_k View Post
    Hi,

    I think you are trying to evaluate it like this:
    If the time is >=5, give me a "SIM", if it is <5, give me a "NAO", and if its "FOLGA", give me "FOLGA".

    If so, I have found this formula helpful:
    =IF(C15="FOLGA","FOLGA",IF(C15>=TIME(5,0,0),"SIM","NAO"))

    You may take your own cell references instead of mine.

    And let me know if I've been correct in my understanding of the problem.

    Regards
    Asar
    Thank you very much asar_k, that turned out perfectly :D

  5. #5
    Registered User
    Join Date
    06-09-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    26

    Re: IF formula with multiple conditions

    Great!! My pleasure!
    You may close the thread if you please.

  6. #6
    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,938

    Re: IF formula with multiple conditions

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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. [SOLVED] If Formula using multiple conditions
    By DawsonG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2013, 01:22 PM
  2. 3 multiple conditions with multiple criteria formula help
    By rmnk101190 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-29-2013, 04:37 PM
  3. [SOLVED] Syntax for formula that uses multiple conditions inside of multiple IF statements
    By njmiller31 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2013, 11:55 AM
  4. Multiple conditions in a formula
    By TV in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2006, 03:35 PM
  5. multiple conditions formula
    By mmoran in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10: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