+ Reply to Thread
Results 1 to 13 of 13

Very Urgent: formular for average pattern

  1. #1
    Registered User
    Join Date
    10-13-2015
    Location
    lagos
    MS-Off Ver
    2010
    Posts
    5

    Very Urgent: formular for average pattern

    I need to get excel to follow this pattern. (skips DE, GH and retains row 4:6)
    =AVERAGE(sheet!C$4:C$6)
    =AVERAGE(sheet!F$4:F$6)
    =AVERAGE(sheet!I$4:I$6)

    When i drag down it gives me this.
    =AVERAGE(sheet!C$4:C$6)
    =AVERAGE(sheet!C$4:C$6)
    =AVERAGE(sheet!C$4:C$6)

    please see attached.

    Thank you
    Attached Files Attached Files
    Last edited by my1980; 10-13-2015 at 08:39 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Very Urgent: formular for average pattern

    Welcome to the board.

    If you deleted the empty columns on Sheet2, you could copy the formulas in the usual way.
    Entia non sunt multiplicanda sine necessitate

  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,929

    Re: Very Urgent: formular for average pattern

    Another way would be to use name ranges. Create a range for each column and give it the same name as the heading Girl, Boy etc.

    Then use this formula...
    =AVERAGEIF(Sheet2!$B$4:$B$8,Summary!F$3,INDIRECT(E5))
    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

  4. #4
    Registered User
    Join Date
    10-13-2015
    Location
    lagos
    MS-Off Ver
    2010
    Posts
    5

    Re: Very Urgent: formular for average pattern

    "Create a range for each column and give it the same name as the heading Girl, Boy etc."

    Please i do not understand what you mean by this.

    Can you please explain further?

    Or attach in excel?

    Thanks.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Very Urgent: formular for average pattern

    Alternatively, copy this into F5 and drag down. copy from F5 to H5 and drag down.

    =IFERROR(AVERAGEIF(Sheet2!$B$4:$B$8,Summary!F$3,INDIRECT("Sheet2!"&LEFT(ADDRESS(1,ROWS($1:1)*3,4),LEN(ADDRESS(1,ROWS($1:1)*3,4))-1)&"4:"&LEFT(ADDRESS(1,ROWS($1:1)*3,4),LEN(ADDRESS(1,ROWS($1:1)*3,4))-1)&"8")),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Spammer
    Join Date
    10-12-2015
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    3

    Re: Very Urgent: formular for average pattern

    You can use this sheet which has the solution. Hope, this works for you.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-13-2015
    Location
    lagos
    MS-Off Ver
    2010
    Posts
    5

    Re: Very Urgent: formular for average pattern

    Hello Glenn,

    Sorry still did not get it. I have transferred the formular to my main sheet.

    Please see attached.

    Many thanks for your help thus far.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Very Urgent: formular for average pattern

    Hi All,

    a different approach,

    in F3: Non Supervisory (instead of "Non - Supervisory")

    in E14: Emotional Control and Composure (instead of "Emotional Control")

    In order to easily match results

    In F5 to be copied across:

    =IFERROR(SUMPRODUCT(Sheet!$C$3:$AK$8,(Sheet!$B$3:$B$8=F$3)*(Sheet!$C$3:$AK$3=$E5))/SUMPRODUCT((Sheet!$B$3:$B$8=F$3)*(Sheet!$C$3:$AK$3=$E5)),0)

    Hope it helps
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Very Urgent: formular for average pattern

    There were three mistakes in your sheet. The formula should have been this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    They were: in column H the wrong range in column B had been selected; in F3, there was a hyphen between non and supervisory and in column H the sheet name was incorrect.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-13-2015
    Location
    lagos
    MS-Off Ver
    2010
    Posts
    5

    Re: Very Urgent: formular for average pattern

    hi glen. Many thanks for your help so far. But i am not an advanced user, so if you dont mind helping me translate the formular so that i can apply it to a different sheet which has more reference columns.

    I know you are used to dealing with professionals, but i am still on my way there.
    IFERROR(AVERAGEIF(Sheet!$B$4:$B$8,Summary!F$3,INDIRECT("Sheet!"&LEFT(ADDRESS(1,ROWS($1:3)*3,4),LEN(ADDRESS(1,ROWS($1:3)*3,4))-1)&"4:"&LEFT(ADDRESS(1,ROWS($1:3)*3,4),LEN(ADDRESS(1,ROWS($1:3)*3,4))-1)&"8")),"")

    how do i adjust this? what does this translate to? thanks

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Very Urgent: formular for average pattern

    To be honest, I didn't think of using SUMPRODUCT, as canapone did. I would strongly recommend that you use his formula. It's far easier to manage than mine. Hopefully you can see how to add on additional criteria.

  12. #12
    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,929

    Re: Very Urgent: formular for average pattern

    Quote Originally Posted by my1980 View Post
    "Create a range for each column and give it the same name as the heading Girl, Boy etc."

    Please i do not understand what you mean by this.

    Can you please explain further?

    Or attach in excel?

    Thanks.
    To create a named range, highlight the range (say, the list of Girls), right click on it and select "Define Name" call it Girls.
    Repeat this for all the others, but make sure the name you give it, matches exactly, the name you have in your table. If the name in the table is Girls (with an s), call the range Girls. If the name in the table is Girl (without an s) then call the range Girl

  13. #13
    Registered User
    Join Date
    10-13-2015
    Location
    lagos
    MS-Off Ver
    2010
    Posts
    5

    Re: Very Urgent: formular for average pattern

    I have to say this is the best forum on the internet. Thanks all for all your help. Canapone's formular worked best.

    Special thanks to Glen as well.

+ 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. Repeat Formular Pattern
    By Pee_Tang in forum Excel General
    Replies: 2
    Last Post: 09-12-2015, 09:58 PM
  2. [SOLVED] Lookup and return rows based on pattern start and pattern end
    By JDI in forum Excel General
    Replies: 18
    Last Post: 11-16-2014, 11:44 PM
  3. Replies: 4
    Last Post: 08-23-2014, 01:41 PM
  4. Complicated formular. Formular, remove text if available
    By TheTrooper1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2014, 12:39 PM
  5. IF Formular with Average Formular
    By Ginger2k9 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-28-2014, 04:56 AM
  6. [SOLVED] Replacing a date formular result with another formular
    By stpeter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2013, 06:27 PM
  7. weighted average formular
    By Charles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2006, 07:45 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