+ Reply to Thread
Results 1 to 9 of 9

Correct Average Formulae

  1. #1
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Correct Average Formulae

    0000000000
    Attached Files Attached Files
    Last edited by Dom.Knight; 05-12-2021 at 08:33 AM.

  2. #2
    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: Correct Average Formulae

    One way

    =SUMIFS(Data!K:K,Data!P:P,A21,Data!E:E,B21,Data!F:F,C21)/SUMIFS(Data!L:L,Data!P:P,A21,Data!E:E,B21,Data!F:F,C21)
    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.

  3. #3
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Re: Correct Average Formulae

    Hello and thanks that does return the correct result. However if i drag up or down some of the other results it produces are not quite correct.

    Example if i drag it up to H11 the result should be same as cell G11, F11 £2.22 But returns £8.89

  4. #4
    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: Correct Average Formulae

    Quote Originally Posted by Dom.Knight View Post
    Hello and thanks that does return the correct result. However if i drag up or down some of the other results it produces are not quite correct.

    Example if i drag it up to H11 the result should be same as cell G11, F11 £2.22 But returns £8.89
    Why?

    There is only one record for Haddock Grade 1 on row 108. This is priced at £100 for 11.25 Kg = £8.89 /Kg

  5. #5
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Re: Correct Average Formulae

    Ah ok i see the error not sure how to correct it thoe. The price £100 is based on a full box for 45kilos (£2.22 Kilo) but in fact it was only a 1/4 box (11.25Kilos)

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Correct Average Formulae

    A start is for you to explain in english how you would treat it. Does it apply to any partial box?

  7. #7
    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: Correct Average Formulae

    In that case

    =SUMIFS(Data!K:K,Data!P:P,A11,Data!E:E,B11,Data!F:F,C11)/SUMIFS(Data!L:L,Data!P:P,A11,Data!E:E,B11,Data!F:F,C11)*SUMIFS(Data!L:L,Data!P:P,A11,Data!E:E,B11,Data!F:F,C11)/SUMIFS(Data!G:G,Data!P:P,A11,Data!E:E,B11,Data!F:F,C11)

  8. #8
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Re: Correct Average Formulae

    That works correctly.

    And sheet "Data" is a helper sheet, Column K is the price per full box, when entered on sheet "Market" a box may not always be a full so inturn will be marked as 0.25/ 0.5 or 0.75. In retrospect i shoud install another helper column in "Data" to show that

  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: Correct Average Formulae

    Yes, I was going to mention that you use a helper column in the data to record the percentage of a full box weight and incorporate that column to cut down on the current formula.

+ 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. Replies: 0
    Last Post: 01-11-2021, 05:19 AM
  2. [SOLVED] Can't build correct formulae to fill in an order form drawing from another tab
    By ZMAFC94 in forum Excel Formulas & Functions
    Replies: 42
    Last Post: 01-17-2020, 09:18 AM
  3. [SOLVED] Correct Formulae to use to perform a search criteria.
    By Dom.Knight in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-29-2019, 10:25 AM
  4. [SOLVED] Formulae not extracting correct records by date periods
    By Ochimus in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-15-2017, 07:15 PM
  5. Macro to correct =#N/A formulae when copying worksheets
    By 1eyedjack in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2013, 11:47 AM
  6. average array formulae return different results
    By penfold in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2012, 08:31 AM
  7. Average if formulae
    By irelaj2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2008, 07:04 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