+ Reply to Thread
Results 1 to 8 of 8

Custom average function

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    phoenix, AZ
    MS-Off Ver
    2011
    Posts
    3

    Custom average function

    Excel question. I have data in column F that corresponds to the data I need from Column N. If there is a 1 in column F I know how to select all cells with a 1 in column F. After that I am lost because I need to select all cells in column N that are in the same row as the one that have a 1 in column F. Once you can help me find out how to select just those cells in column N that correspond to a 1 in column F, I need to take an average and find std for the cells that I need selected in column N. Any help?

    Also the data sheet is 10,000 or so rows long so how can I highlight all the cells in a column without ctrl clicking and scrolling?

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Custom average function

    Hi, welcome to the forum

    I think you need to take a look atthe averageif() function, but for better suggestions, attach a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Custom average function

    deleted forum-induced duplicate thread

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Custom average function

    Hi,

    Welcome to the Forum.

    Please try the following formula.

    =AVERAGEIF(F2:F10000,1,N2:N10000)

  5. #5
    Registered User
    Join Date
    08-11-2014
    Location
    phoenix, AZ
    MS-Off Ver
    2011
    Posts
    3

    Custom integrated average function

    Hi,

    I have attached a dummy workbook that mimics the workbook that I need help on so I can explain what I am trying to do.

    Any cell that has a value of 1 in column F is a cell that I need. Once I have selected all rows with a 1 in them for column F, I need to calculate a value using the values from columns N and M that have a 1 for column F. This equation is:
    ((65535.0/52000.0)*(2000.0 - M VALUE))*(N VALUE). Once I have these new values calculated (for those N and M in rows with a 1 in column F), hopefully in a new column (maybe column O?), I need to take an mean and find the standard deviation of these new calculated values.

    Please ask if anything in my question is unclear

    Thank you for your help.

    dummy average workbook.xlsx

  6. #6
    Registered User
    Join Date
    08-11-2014
    Location
    phoenix, AZ
    MS-Off Ver
    2011
    Posts
    3

    Re: Custom average function

    Hi,

    Thanks for your advice. I have posted a new, updated thread at this link:

    http://www.excelforum.com/excel-gene...ml#post3799097

    Thanks again

    Quote Originally Posted by FDibbins View Post
    Hi, welcome to the forum

    I think you need to take a look atthe averageif() function, but for better suggestions, attach a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Custom integrated average function

    The enclosed workbook has extracted the values corresponding to 1 in column F from columns M and N and put them in columns P and Q. You can now apply your formula to the extracted values. The second file is an attempt to apply your "formula".
    Last edited by newdoverman; 08-11-2014 at 05:02 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Custom average function

    I have merged your 2 threads, please stick with 1 thread until you have your answer

+ 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. Macro for Custom Average
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-19-2014, 10:12 AM
  2. [SOLVED] Custom filtering off an Average calculation
    By wharfrat507 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-28-2013, 11:42 AM
  3. With Custom Modified Average Formula
    By aussiemcgr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-18-2010, 03:55 PM
  4. Custom average function
    By rwgrietveld in forum Excel General
    Replies: 4
    Last Post: 12-11-2009, 09:12 AM
  5. [SOLVED] in the average sum etc at bottom of sheet add a custom tab
    By mscarf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2006, 10:50 PM

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