+ Reply to Thread
Results 1 to 5 of 5

How to make formula shorter ?

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    How to make formula shorter ?

    Dear all,
    Is it possible to make the below formula shorter?
    CONCATENATE(IF(COUNTIF(A2:D2,"F")>0,"Fail in ",""),IF(COUNTIF(A2:D2,"F")=0,"",COUNTIF(A2:D2,"F"))," ",E2)

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to make formula shorter ?

    Maybe:

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


    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to make formula shorter ?

    Hi,abousetta
    you have saved 16 characters. thanks for your time..

    [total character of my formula was (105) and your formula is (89)]

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to make formula shorter ?

    This is called a nested IF statement. There are limitations on the number of nestings you can use (I think 7 in XL03 and 36 in XL07 onwards).

    In all cases, glad I could help.

    Good luck.

    abousetta

    P.S. If you are satisfied then mark the thread as solved.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How to make formula shorter ?

    If I'm reading your requirements right, how about...

    =IF(COUNTIF(A2:D2,"F")>0,"Fail in " &COUNTIF(A2:D2,"F"),"")
    HTH
    Regards, Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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