+ Reply to Thread
Results 1 to 6 of 6

easy excel question

  1. #1
    Registered User
    Join Date
    01-22-2007
    Posts
    2

    easy excel question

    Dear all:

    I have an easy question.

    I am simply wanting to average values that are in non-contiguous rows or columns. However, when I finish selecting all the cells I want to average, excel comes up with an error - I am assuming that it is because I am wanting to average more than 30 values or arguments. Would this be correct? If so, is there a way that I can select more than 30 arguments?

    I am sure this is a simple matter.

    Thanks in advance,

    Vanessa

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    You can use another set of parentheses within AVERAGE to get around the limit of 30 arguments.

    For example:

    =AVERAGE
    ((A2,A4,A6,A8,A10,A12,A14,A16,A18,A20,A22,A24,A26,A28,A30,
    A32,A34,A36,A38,A41,A43,A45,A47,A49,A51,A53,A55,A57,A59),A
    61,A63,A65,A67,A69,A71,A73,A75,A77,A80,A82,A84)


    Notice how the A2 to A59 are enclosed in ( ).

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Average function also works with ranges

    =AVERAGE(B3:B7,G4:G13)

  4. #4
    Registered User
    Join Date
    01-22-2007
    Posts
    2
    Thanks alot for your help. I new it was going to be something really simple.

    Vanessa

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You're welcome. Thx for the feedback

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad you got a solution

    Thanks for the feedback

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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