+ Reply to Thread
Results 1 to 5 of 5

Shorten IF OR formula

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Shorten IF OR formula

    Hi all,

    I want to show a value in a cell based on certain conditions. The INDEX(Dic,x,Lang) below is used to retrieve a word in the right language. Now I just realize that in addition to check if cells are not "No", there should also be a check if they are blank cells or not. I can probably do that by making below formula twice as long.. What would be the best way to make this shorter and include for each of the cells the additional check for being blank? Cells should both not be "No" and not blank before showing one value, if one of the two is true I will show another value.

    =IF(OR(NOT(RawData!H16="No"),NOT(RawData!K21="No"),NOT(RawData!H36="No"),NOT(RawData!D44="No"),NOT(RawData!D45="No"),NOT(RawData!H53="No"),NOT(RawData!D61="No"),NOT(RawData!D62="No")), INDEX(Dic,35,Lang),INDEX(Dic,36,Lang))

    Suggestions for the best way of doing this are very welcome.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Shorten IF OR formula

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

    the suggested formula is 15% shorter.
    Last edited by AlKey; 08-29-2017 at 10:57 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Shorten IF OR formula

    Thanks! Although it is not a lot shorter, I think it's more clear to use <>.

    My total formula would then look like this:

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


    Is there any possibility in excel to refer to a cell once to check that value is not this and not that? This just doesn't seem very efficient to me..

  4. #4
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: Shorten IF OR formula

    Try this:

    Please Login or Register  to view this content.
    Last edited by Root_; 08-30-2017 at 12:18 AM.

  5. #5
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Shorten IF OR formula

    Thanks! That looks much better, it's also good to learn other ways of doing the same thing.

+ 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] How to shorten this formula
    By PatrikIden in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 08-09-2016, 04:51 PM
  2. How to Shorten this SUM-AND-IF-OR Formula
    By sinfinite in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 08-14-2015, 06:22 PM
  3. Shorten formula?
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 06-08-2015, 04:55 PM
  4. Please Shorten This Formula
    By jmcconville18 in forum Excel General
    Replies: 2
    Last Post: 08-18-2014, 01:21 PM
  5. can shorten this formula?
    By mingali in forum Excel General
    Replies: 4
    Last Post: 08-12-2009, 10:22 AM
  6. need to shorten an if formula
    By niyrho in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-28-2008, 09:57 PM
  7. shorten formula
    By PACable in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-26-2005, 08: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