+ Reply to Thread
Results 1 to 8 of 8

Else IF function not working

  1. #1
    Registered User
    Join Date
    11-25-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Else IF function not working

    I am trying to write a function so that the text adjusts itself based on if the language selected is English or French and THEN based on the type of form.

    The formula will be put at multiple places in the form that have not been fully determined yet.

    I was working on the formula in cell L28 to get it to register with Excel.

    Pretty sure my logic is ok but my formula isn't computing.

    Here's a bit of info to understand the formula :

    My Excel is in french hence, SI = IF, ET = AND, the "x" are placeholders for the text that i'll put in , My first condition determines the language and the others determine the type of form that is selected.

    The error message I'm getting is the one where excel asks if you're trying to write a formula and that if you aren't you need to put a ' in front.


    =SI($B$1="Français";
    SI(ET($E$1="T776";
    "x";
    SI(ET($E$1="T777";
    "x";
    SI(ET($E$1="T2125";
    "x")));
    SI(ET($E$1="T776";
    "x";
    SI(ET($E$1="T777";
    "x";
    SI(ET($E$1="T2125";"x")))))
    Attached Files Attached Files
    Last edited by Sirjas; 11-25-2020 at 11:13 AM. Reason: Adding Excel document

  2. #2
    Registered User
    Join Date
    11-25-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Re: Else IF function not working

    Sorry about the smiley but it won't let me go back in and adjust it.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Else IF function not working

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  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,410

    Re: Else IF function not working

    The syntax is wrong. Try building it like this (I am guessing what you really want)

    =SI(ET($B$1="Français";$E$1="T776");"x";SI(ET(...)))
    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
    Registered User
    Join Date
    11-25-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Re: Else IF function not working

    No that would not be it.

    I'll try being more precise.

    The first thing the user will have to do is select the language (Français, Anglais) and the type of document (T776, T777, T2125).

    Based on those two criteria, the text needs to change to reflect the language and the type of document (some documents have specific texts to them).



    I was trying to have 1 IF at the beginning to determine the language, then decide what text to use based on the selected document using imbedded IF's.

    Essentially :

    IF($B$1="French")

    [if TRUE, then check $E$1 to see what document type and place text that corresponds, text that would be in French ]
    [if FALSE, then check $E$1 to see what document type and place text that corresponds, text that would be in English]

  6. #6
    Registered User
    Join Date
    11-25-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Re: Else IF function not working

    Not sure how to close the thread but I have found my solution :

    =SI(ET($B$1="Français";$E$1="T776");
    "a";
    SI(ET($B$1="Français";$E$1="T777");
    "b";
    SI(ET($B$1="Français";$E$1="T2125");
    "c";
    SI($E$1="T776";
    "x";
    SI($E$1="T777";
    "y";
    SI($E$1="T2125";"z"))))))

  7. #7
    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,410

    Re: Else IF function not working

    But that's exactly what I suggested!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, 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.

  8. #8
    Registered User
    Join Date
    11-25-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7
    Quote Originally Posted by AliGW View Post
    But that's exactly what I suggested!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Also, 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.
    Sorry about that. I didn't realize it was.

+ 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. 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
  2. Replies: 0
    Last Post: 07-07-2018, 04:13 AM
  3. [SOLVED] SUM/COUNTA Function Not Working On Cell Data Generated from SUM Function
    By pexeterblue43 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-15-2018, 03:47 PM
  4. Replies: 1
    Last Post: 06-02-2015, 01:38 AM
  5. IF statement not working with text function and edate function.
    By joshnathan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2013, 10:26 AM
  6. [SOLVED] Using the Split function with another function incorporated is not working correctly
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 03:51 PM
  7. MATCH function within INDIRECT function not working
    By mgerada in forum Excel General
    Replies: 2
    Last Post: 09-04-2011, 08:37 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