Consulting

Results 1 to 9 of 9

Thread: Conditional [Color] Formatting not recognized with formula

  1. #1
    VBAX Regular
    Joined
    Aug 2008
    Location
    Houston
    Posts
    16
    Location

    Arrow Conditional [Color] Formatting not recognized with formula

    Two questions really...
    1) I have entered a formula (below) to calculate a time field and if it shows up 104% (4% overdue) I want to turn it red; when I try to add a condition if >100 then red it does not work. Any suggestions?
    =ROUND(((K10*100)/J10),0)&"%"

    2) I am having a similar issue counting this field. For example, if I enter the formula below it always equals '0'
    =COUNTIF(W10:W60,"<(100)")
    Last edited by torgerjl; 10-01-2008 at 05:53 AM.

  2. #2
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    Try this:

    1. Format>>Conditional formatting>>Cells Value >>Greater than >> 1

    2. Use below function:

    [VBA]=SUMPRODUCT((W10:W60<100)*(W10:W60)) [/VBA]

  3. #3
    VBAX Regular
    Joined
    Aug 2008
    Location
    Houston
    Posts
    16
    Location
    Neither work. It turns anything red that I apply the condition to in that cell range. The SUM funtion does not work either. Do you think it is because of the formatting in the formula itself eg, =ROUND(((K10*100)/J10),0)&"%" ?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It is because your cell has a text value not a number.

    You should use a formula that calculates a REAL number and format it as percentage

    =ROUND(K10/J10,2)

    and then test this for > 1.04 to test for greater than 104%.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Aug 2008
    Location
    Houston
    Posts
    16
    Location
    What do you do if you are working with a delivery date and a report date? For example, days complete divided by deliverable difference.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    What do you want to do?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Aug 2008
    Location
    Houston
    Posts
    16
    Location
    Right now it works as so. I am working with three dates: 1) Start date, 2) End date and 3) Report date. I have three hidden cells: 1) Days Complete, 2) Deliverable Difference and 3) Report Date.

    Hidden Cells:
    The days complete is the Deliverable difference less the Report Date. The Deliverable difference is the End date less the Start Date. Obviously, the Report date is the current month (eg, 8-31-08) less the End date.

    Then finally, the =ROUND formula =ROUND(((K10*100)/J10),0)&"%

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I ask again, what do you want to do? You have given me some background,m but not told me what you are trying to do. What is K10? What is J10? Did you read my earler post?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  9. #9
    VBAX Regular
    Joined
    Aug 2008
    Location
    Houston
    Posts
    16
    Location
    Conditional formatting and counting that works. K10 is the Days Complete and J10 is the Deliverable Difference.

    Last edited by torgerjl; 10-01-2008 at 10:11 AM.

Posting Permissions

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