+ Reply to Thread
Results 1 to 18 of 18

Custom Number Format can only display 3 Conditional formats using the [ ] parameters

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    Is there a way do to 5 conditional formats using VB

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    You're using Excel 2010. You can apply as many CF formats as you want, by hand or by VBA.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    I need help with code. I need to write code for:

    [=1]"Full";[=2]"Ltd";[=3]"None";[=4]"NS"; "Closed"

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    Ah, custom number format, not conditional formatting. My apologies.

    Custom number formats allow 4 designations and you can't change what they do:

    <POSITIVE>;<NEGATIVE>;<ZERO>;<TEXT>
    http://office.microsoft.com/en-us/ex...010342372.aspx


    You could create vba to watch specific cells and convert numbers into words or vice versa.

    There's even a Data Validation trick that would give you a drop down with words, but when made a choice a numeric code would appear instead, again with no VBA. That doesn't work the other way around, though.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    why can't you use conditional formats instead of number formats?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Registered User
    Join Date
    02-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    I am a novice a writing code. Can you help? I have attached the spreadsheet.
    Attached Files Attached Files

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    JosephP - Custom Number format can physically change the appearance of numbers in a cell, including adding text that isn't really there. It affects numeric display. Conditional Format affect the display characteristics of the cell based on the content of cell values. OK?

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    Linus, it sounds like you want to change the number 1 to display as "FULL" in the original cell, 2 = "LTD", etc. 5 different changes, yes?

    I have to at least try to steer you way from VBA. Why not simply use a formula in an adjacent cell to add this new text value as a new datapoint?

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    JBeaucaire-conditional formats can include custom number formats. ok? ;-)

  10. #10
    Registered User
    Join Date
    02-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    I know the difference. I am not looking for a conditional format. I need to change the display. If there is a one in the cell, I want it to display full, if there is a 2 I want it to display Ltd. I will need a vb code because I need to go up to 5.

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    Quote Originally Posted by JosephP View Post
    JBeaucaire-conditional formats can include custom number formats. ok? ;-)
    So maybe stacking the numeric custom number formats inside several conditional formats that are each filtering for a single value, that's nice! Great idea.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    I'll let Joseph pursue the number formats trick, which might be awesome when done.

    Here's a macro to do what you've outlined, select a range of cells first, then run the macro:

    Please Login or Register  to view this content.

  13. #13
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    yeah-and apply "Closed" as the default number format for the field
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    02-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    I will try it

  15. #15
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    @JBeaucaire-did you see it's a pivot table?

  16. #16
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    Quote Originally Posted by JosephP View Post
    @JBeaucaire-did you see it's a pivot table?
    No, the file was called Test Sites, so Sites was the only thing I was looking at.

  17. #17
    Registered User
    Join Date
    02-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    yes this is for a pivot table

  18. #18
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Number Format can only display 3 Conditional formats using the [ ] parameters

    I'm out then...

+ 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] Issue: Custom Number Format to Display (thousands or dashes)
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2013, 03:28 AM
  2. Conditional Formatting With Custom Number Formats
    By chris_3eb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2011, 07:33 PM
  3. Replies: 4
    Last Post: 03-30-2010, 08:41 PM
  4. Need to Conditional Format Custom Number
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2007, 07:20 PM
  5. [SOLVED] display:Custom Number Format
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2005, 07: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