+ Reply to Thread
Results 1 to 5 of 5

IF Statement Not Producing Expected Result

  1. #1
    Registered User
    Join Date
    09-07-2022
    Location
    Mauritius
    MS-Off Ver
    365
    Posts
    1

    IF Statement Not Producing Expected Result

    Hello guys, please help, formula isn't working :

    =IF(E3=CDR ≤ 1 mois;"1";IF(E3=CDR ≤2 mois;"2";IF(E3=CDR;"3";IF(E3= KAM;"3";IF(E3= ***. Manager;"2";IF(E3= Manager;"0"; "0"))))))

    please help!
    Last edited by AliGW; 09-28-2022 at 07:47 AM. Reason: Thread title improved - please make your thread titles explicit & not generic in future.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: If function - help needed

    I dont think you can use ≤ try <=
    If someone has helped you then please add to their Reputation

  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
    28,208

    Re: If function - help needed

    So what results are expected ???

    See yellow banner on how to attach a sample workbook.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,906

    Re: IF Statement Not Producing Expected Result

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    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 Statement Not Producing Expected Result

    =IF(E3=CDR ≤ 1 mois;"1";IF(E3=CDR ≤2 mois;"2";IF(E3=CDR;"3";IF(E3= KAM;"3";IF(E3= ***. Manager;"2";IF(E3= Manager;"0"; "0"))))))

    Not sure i follow exactly

    But just editing the formula exactly as written - you need inverted commas for text
    and number with inverted commas are seen as TEXT and not number
    =IF(E3="CDR ≤ 1 mois";1;IF(E3="CDR ≤2 mois";2;IF(E3="CDR";3;IF(E3= "KAM";3;IF(E3=" ***. Manager";2;IF(E3= "Manager";0; 0))))))

    we can combine with ORs where the result is the same
    Ie all the 1,2,3

    but lets see if that is what you are after first

    A sample sheet would help here


    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    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.

+ 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. If function needed
    By Sammydasalmon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-09-2018, 03:01 AM
  2. Replies: 8
    Last Post: 06-02-2016, 03:00 AM
  3. [SOLVED] a function to copy the things needed from one sheet to another. only the ones needed
    By karim.zheng in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-31-2015, 09:49 AM
  4. If Function help needed
    By Harry McCurdy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2015, 05:37 PM
  5. Help needed with IF function
    By emers21 in forum Excel General
    Replies: 1
    Last Post: 02-24-2015, 05:42 AM
  6. Sum Function Needed
    By Andrew C in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2006, 06:25 AM
  7. Function needed????
    By prbucci in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-15-2006, 03:30 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