+ Reply to Thread
Results 1 to 6 of 6

Difference colons vs. commas in functions

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2011
    Location
    FL
    MS-Off Ver
    Mac Excel 2011
    Posts
    8

    Difference colons vs. commas in functions

    Hi everybody and thank you for all the good tips,

    I used to work a lot with trimmean and when I want add more cells from different locations I use ":"

    I realized yesterday that

    =AVERAGE($B$105:$B$146:$B$148:$B$181:$B$183:$B$217:$B$219:$B$291:$B$293:$B$304:$B$306:$B$346:$B$348:$B$388:$B$390:$B$392:$B$394:$B$448:$B$450:$B$475)
    gives me 10.926

    =AVERAGE($B$105:$B$146,$B$148:$B$181,$B$183:$B$217,$B$219:$B$291,$B$293:$B$304,$B$306:$B$346,$B$348:$B$388,$B$390:$B$392,$B$394:$B$448,$B$450:$B$475)
    gives me 5.975
    'Exactly the same array of cells but in one I use ":" to separate my cells and in the other one I use ",".

    Why these two formulas do not give me the same result? if they are different, how can I use a formula like trimmean, which allow two entries only (separated by a comma), and still be able to select many cells from different locations?

    Thank you for your help,

    Julien
    Last edited by Micdis; 03-16-2012 at 09:01 PM.

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Quick question

    Hi

    Can use evaluate formula on Formula Tab to see the calculation steps and how the ranges are taken and calculated

    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Quick question

    high
    using a colon will be read as ra range, ie =average(A1:A5) is the average of A1, A2, A3, A4 and A5. Using commas will be taken as separate cells ie =average(A1,A5) is the average of A1 amd A5.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Quick question

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    12-17-2011
    Location
    FL
    MS-Off Ver
    Mac Excel 2011
    Posts
    8

    Re: Difference colons vs. commas in functions

    I see, thank you nickyc.

    How would you calculate in that case the trimmean of multiple arrays?

    Thank you,

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Difference colons vs. commas in functions

    can u amend your title. thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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