Consulting

Results 1 to 10 of 10

Thread: Solved: Averages of column and formatting

  1. #1
    VBAX Regular
    Joined
    Sep 2010
    Posts
    23
    Location

    Solved: Averages of column and formatting

    In column C i want to do two things:
    (1)FORMAT COLUMN C > All numbers entered are formated in percentages. (no spaces after decimal) The formula that generates these percentages is in each cell of column C. It is . .
    =SUM(F5:M5)/8

    (2)Secondly, I want to obtain a running average of the entire column C

    Problem I have now is that when I go to average all cells in column C, it averages in the 0% from having formatted the column to display percentage.

    In cel N1 is where my formula is for averaging column C
    =AVERAGE(C:C)

    Please help . . thanks in advance

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Tell me again, what's the question(s)?
    ____________________________________________
    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

  3. #3
    VBAX Regular
    Joined
    Sep 2010
    Posts
    23
    Location

    Additional Information

    When I go to compute my running average in cell N1. Since I have formatted column C to diplay number in a percentage format, any cell in column C that does not have data in it displays a 0% which is then incorporated into the running average in N1, screwing up this average. Please see screen attachment. See red arrow.
    There is a userform attached to this and everytime i submit the form a new row of data is then dumped into this spreadh sheet. Column C has to be in a percentage format.

    Is there a way to hide the formatting so it doesn't screw up the running average in cell N1?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try this array formula

    =AVERAGE(IF(C1:C1000<>0,C1:C1000))
    ____________________________________________
    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
    Sep 2010
    Posts
    23
    Location
    This is not working. Please advise.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I do not know how and why it is not working. Please advise.
    ____________________________________________
    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
    Sep 2010
    Posts
    23
    Location
    When I input the array formula in cell N1, it returns a 0% as the caculated average. I included a screen shot.

  8. #8
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,057
    Location
    Try this array formula

    =AVERAGE(IF(C1:C1000<>0,C1:C1000,""))
    Last edited by Aussiebear; 09-09-2010 at 12:11 PM. Reason: Typo in input
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  9. #9
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Juicey27
    When I input the array formula in cell N1, it returns a 0% as the caculated average. I included a screen shot.
    You didn't array-enter it.
    ____________________________________________
    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

  10. #10
    VBAX Regular
    Joined
    Sep 2010
    Posts
    23
    Location
    This has been solved. Thank you "Distinguished Lord of VBAX" much appreciated.

Posting Permissions

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