Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 52

Thread: Format the 3 numbers in a column closest to ZERO

  1. #41
    Board Regular
    Join Date
    Dec 2013
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Using a negative number seems to mess it up cuz I have tried several different ways and several different format techniques.

  2. #42
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,972
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Quote Originally Posted by Ultimate Selector View Post
    Can you help me fix it so it will only HL -10 and below. When I say below I mean -11, -12 etc..
    Has the object of CF changed. This seems to be implying that you only want to highlight numbers below -9. Is that the case?

    In the earlier posts you were wanting to highlight the numbers closest to 0 or closest to 50 no matter whether the numbers were above or below those values.
    Can you clarify?

    As with the earlier tasks, some sample data and expected results would help to clarify.
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  3. #43
    Board Regular
    Join Date
    Dec 2013
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Yes that is correct ... I am serving another function separate from the other one. I'm still good with that one.
    I want to HL all numbers below -9

    Thanks Pete!

  4. #44
    Board Regular
    Join Date
    Dec 2013
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Here is a column of sample data.
    Column V8 to V14 specifically.

    -12%
    -33%
    -7%
    -22%
    -4%
    -18%
    -4%
    Last edited by Ultimate Selector; Aug 1st, 2019 at 02:24 AM.

  5. #45
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,972
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Quote Originally Posted by Ultimate Selector View Post
    I want to HL all numbers below ...
    All numbers or just the closest 3 below?


    Quote Originally Posted by Ultimate Selector View Post
    ... below -9
    Below -9 or below -9%?
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  6. #46
    Board Regular
    Join Date
    Dec 2013
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    -9%

    All numbers that are -9 and below.
    If there is one then just one. But if there are say 3 that are below -9 or lower then all three of those numbers.
    Last edited by Ultimate Selector; Aug 1st, 2019 at 04:47 AM.

  7. #47
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,972
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Then this is a very different scenario to the previous one and a very simple CF formula should do it for you.

    CF below -9%

    V
    8-12%
    9-33%
    10-7%
    11-22%
    12-4%
    13-18%
    14-4%

    Conditional formatting
    CellNr.: / ConditionFormat
    V81. / Formula is =V8<-0.09Abc


    Excel tables to the web >> Excel Jeanie HTML 4
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  8. #48
    Board Regular
    Join Date
    Dec 2013
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Well once again you earned your keep Pete!
    I was using a whole number of -9 instead of the -0.09 in my CF formula.

    I knew it had to be something simple but I would have never thought it was that.
    U Da Man! Many Thanks Pete!

    Have a terrific Morning!
    -U.S.

  9. #49
    Board Regular
    Join Date
    Dec 2013
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Hi Pete,

    Hope all is well ...

    I have one more issue for you to resolve if you could please.

    I am trying to add up the net value of these individual rows.

    Then I want to also add up just the positive numbers by themselves for each row.

    Then I want to also add up just the negative numbers by themselves for each row.

    The issue is that these are all in % (percentages). I can't seem to tackle this one. I know it's gotta be simple tho.

    Here is my sample data for you.

    5% -11% -6%
    3% -8% -5%
    -27% -36% -63%
    4% -12% -8%


    Thanks Pete!

    Regards,
    U.S.

  10. #50
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,972
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Format the 3 numbers in a column closest to ZERO

    Like this? Each formula copied across.

    % Calculations

    ABCD
    1
    2 5%-11%-6%
    3 3%-8%-5%
    4 -27%-36%-63%
    5 4%-12%-8%
    6Net-15%-67%-82%
    7Positive12%0%0%
    8Negative-27%-67%-82%

    Spreadsheet Formulas
    CellFormula
    B6=SUM(B2:B5)
    B7=SUMIF(B2:B5,">0")
    B8=SUMIF(B2:B5,"<0")


    Excel tables to the web >> Excel Jeanie HTML 4
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •