+ Reply to Thread
Results 1 to 13 of 13

Average of all numbers if...

  1. #1
    Registered User
    Join Date
    05-14-2017
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    5

    Average of all numbers if...

    Hey!

    I'm having a bit of a problem with explaining what I want. So I have two columns. In one are progressively increasing numbers in succession, but some of them may repeat, because I have rounded them up. So what I want to do is, to average values for example for 351, and have them in one cell, so its easier to make a graph. So instead of 3 values for 351, I'll have one that averages them. Can that be done and how?
    Capture.JPG
    Thanks

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Average of all numbers if...

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    05-14-2017
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    5

    Re: Average of all numbers if...

    Aaaa okey just saw your guide... Sorry for before :D
    Attached Files Attached Files
    Last edited by vexum; 05-14-2017 at 02:51 PM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Average of all numbers if...

    If you named the 2 columns of data you could create a pivot table that would list all the unique values from the first column with the average for the correspoding values from the 2nd column.

    You could then use the data in the pivot table to create a 'standard' chart or create a pivot chart.

    In the attached file I've opted for the former.

    PS I used Field1 and Field2 because I'm not sure what the data represents, I'm sure you can come up with something more descriptive.

  5. #5
    Registered User
    Join Date
    05-14-2017
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    5

    Re: Average of all numbers if...

    I'll play with this table a bit, thanks. Basically, A column is length of light, and B column tells you how much of that light has been reflected at that length. That's why I'm trying to merge all the same numbers since its basically same frequency.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average of all numbers if...

    Hi,

    Your column A numbers also have decimals whereas it appears you want averages for Integer values. In which case you'll need to first round your numbers
    e.g. in C14 enter =ROUND(A14,0) and copy down.

    Then in E14 copied down you could use
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or as Norie has suggested use a Pivot Table once you've rounded your basic numbers.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Average of all numbers if...

    Oops, didn't spot those pesky decimals.

  8. #8
    Registered User
    Join Date
    05-14-2017
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    5

    Re: Average of all numbers if...

    Thanks for that last tip... I have just one last question, how do i rename all the damn row names :///// Capture.JPG

    A BIG THANK YOU TO BOTH OF YOU GUYS REALLY!

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average of all numbers if...

    Quote Originally Posted by Norie View Post
    Oops, didn't spot those pesky decimals.
    ....Me neither at first and it took several minutes to work out why COUNTIFS() wasn't working....

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average of all numbers if...

    ...Hi,

    I'm not sure what you're getting at. There are no columns with Row labels like '351-351'.

    And why in any case would you want such labels when it seems you're wanting to average numbers based on a set of discrete integer values?

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Average of all numbers if...

    Richard

    I think the OP might have grouped the data from the first column in the pivot table.

    I tried to round the values in the first column via the Pivot Table options but couldn't find anything that worked, so I think the only solution is a helper column using the ROUND formula you posted earlier.

  12. #12
    Registered User
    Join Date
    05-14-2017
    Location
    slovenia
    MS-Off Ver
    2010
    Posts
    5

    Re: Average of all numbers if...

    Forget about it i was just being stupid *facepalm*

    Thank you for your help again. Reped both :D
    Attached Files Attached Files
    Last edited by vexum; 05-14-2017 at 04:04 PM.

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Average of all numbers if...

    Does the attached help.

    I've used Norie's Pivot Table approach.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Rank numbers by average with doing average formula
    By makinmomb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-26-2014, 11:58 PM
  2. Replies: 14
    Last Post: 06-14-2013, 09:00 PM
  3. Replies: 6
    Last Post: 01-07-2013, 08:58 PM
  4. displaying numbers whoes average is as close prefered average.
    By aakhan107 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-18-2012, 01:14 AM
  5. average of kth largest numbers in an array of n numbers
    By Vasant Nanavati in forum Excel Formulas & Functions
    Replies: 42
    Last Post: 09-06-2005, 10:05 PM
  6. average of kth largest numbers in an array of n numbers
    By georgeb in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  7. formula: average of kth largest numbers in an array of n numbers
    By Vasant Nanavati in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 09:05 AM

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