+ Reply to Thread
Results 1 to 4 of 4

Using cell "styles" to exclude cell from formula

Hybrid View

  1. #1
    Registered User
    Join Date
    04-08-2022
    Location
    Louisiana
    MS-Off Ver
    Office 365
    Posts
    2

    Using cell "styles" to exclude cell from formula

    Does anyone know if and how to exclude a cell from calculations based on "manually" changing the cell style. I would like to use the "Bad" cell style to exclude outlying data from a statistical calculation. Thanks. - Bill

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,993

    Re: Using cell "styles" to exclude cell from formula

    Welcome to the forum.

    The 'bad' news is that it cannot be done: Excel is not able to use any form of cell formatting in a formula. Under what conditions would a cell be formatted as bad?

    There are instructions at the top of the page explaining how to attach your sample workbook.

    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.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-08-2022
    Location
    Louisiana
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Using cell "styles" to exclude cell from formula

    Thanks so much for the quick response. I was going to "manually" format (by simply click on the "Bad" style) outliers in a data set that I want to examine for trends. I could do it another way, I suppose, but was trying to take the simpliest route due to my lack of Excel skills. Thanks. I will try to clean it up a little and post some specifics and see where it goes. Thanks, and have a great weekend!

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

    Re: Using cell "styles" to exclude cell from formula

    If you can tell us how you'd define the outliers, then we can tell you how to write a formula to exclude them AND a formatting rule to format them automatically.

    Yes, some sample data would help.

+ 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. Formula for "true" or "false" based on whether or not a row has a color filled cell
    By the_red_engine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2021, 10:24 PM
  2. [SOLVED] SUMIFS formula works if last arguement is "cell", but not "<=cell"
    By MTaylor.RAMS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2019, 03:12 PM
  3. Replies: 4
    Last Post: 06-11-2017, 02:03 PM
  4. EXCEL 2003 - Need an "AVERAGEIF" formula to exclude "0" in average
    By kerry0507 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2015, 03:37 PM
  5. Resetting Cell Styles Macro (And Fixing "Normal")
    By TravisBickle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2014, 06:08 AM
  6. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  7. How to exclude the time from a "date cell"
    By stianabra in forum Excel General
    Replies: 6
    Last Post: 06-13-2012, 11:20 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