+ Reply to Thread
Results 1 to 6 of 6

Eliminating if statements

  1. #1
    Forum Contributor
    Join Date
    03-07-2009
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    128

    Eliminating if statements

    I am not a fan of if statements, but have no clue how to rephrase this

    =IF(I9="Yes",IF(J9="Yes","a",IF(K9="Yes","a",IF(L9="Yes","a",IF(M9="Yes","a","c")))),"c")

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Eliminating if statements

    Am i missing something? or this one does the same job?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Eliminating if statements

    hi leviathan86. maybe you can explain what you're trying to do. my guess is as long as I9 is a "yes" & any other cells from J9:M9 is a "Yes", then show "a". otherwise, show "c". if i'm right, try:
    =IF(AND(I9="Yes",OR(COUNTIF(J9:M9,"yes"))),"a","c")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    03-07-2009
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Eliminating if statements

    Quote Originally Posted by benishiryo View Post
    hi leviathan86. maybe you can explain what you're trying to do. my guess is as long as I9 is a "yes" & any other cells from J9:M9 is a "Yes", then show "a". otherwise, show "c". if i'm right, try:
    =IF(AND(I9="Yes",OR(COUNTIF(J9:M9,"yes"))),"a","c")
    You got it. Thanks I should have explained better.

    CLOSED

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Eliminating if statements

    Quote Originally Posted by leviathan86 View Post
    You got it. Thanks I should have explained better.

    CLOSED
    True is that you should!

    So in this case.



    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Note that:Not marking your thread as SOLVED, is not an Option. Is violation of rule#9 of our Forum Rules.

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

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Eliminating if statements

    Ok. This time you choose to ignore my suggestion for marking your thread as Solved. I'll do it this time.

    Next time will not be a suggestion. Will be a request!

    Thanks.

+ 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. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  2. eliminating %
    By np1966 in forum Excel General
    Replies: 2
    Last Post: 04-11-2009, 11:19 AM
  3. Eliminating #N/A
    By Mike in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2005, 03:40 PM
  4. Eliminating digits
    By SeanM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. Eliminating digits
    By SeanM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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