+ Reply to Thread
Results 1 to 15 of 15

Average when condtions are met

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Average when condtions are met

    A B C D
    Letter Writer Miro no TM approval Search Time
    Advisor 1 No 5
    Advisor 1 Yes 5
    Advisor 2 No 5
    Advisor 4 No 4
    Advisor 1 Yes 5
    Advisor 3 Yes 6


    Hi I need a formual to average colloum D but only when colloum A is the right person

    i am doing results for each advisor

    so if A = Advsor 1 i need all their times averaged togther in one cell and so on for each advisor i have tried a few of the web all ready and edited to fit my data range but it has not worked.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,811

    Re: Average when condtions are met

    if you have a list of advisor's then you could use
    averageIF()

    can you attach a sample sheet showing the layout of your data
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Average when condtions are met

    Please find my spreadsheet attached

    i am just working on 4.12.13 for those looking and u can see my attempt at the formular that has not worked


    Ps please ignor the " " i put them there for another reason not relating to the formular
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,811

    Re: Average when condtions are met

    =AVERAGEIF($A$6:$A$29,A37,$D$6:$D$29) in cell D37 and copy down
    would average the search time

    if you need other criteria - ie the yes or no
    use Averageifs

  5. #5
    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: Average when condtions are met

    It's been a while since I used 2003, so Im not sure if this will work, but take a look at using the COUNTIF() function

    Also, on your summary sheet, try using this...
    =SUM('4.12.13:13.12.13'!B37)
    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

  6. #6
    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: Average when condtions are met

    @ etaf...2003 does not have averageifS()

  7. #7
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Average when condtions are met

    hi etaf i tried that and it just came up with #Name?

  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: Average when condtions are met

    I thought you were trying to count, sorry. Try this...
    =AVERAGEIF($A$6:$A$29,A37,$D$6:$D$29)
    (not sure if my 2nd range is correct?)

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,811

    Re: Average when condtions are met

    Thanks FDibbins Did not notice the 2003 - sorry for that

    if you need to use 2 criteria - ie YES in column C
    try
    =AVERAGE(IF($A$6:$A$29=A37,IF($C$6:$C$29="yes",$D$6:$D$29)))
    use control+shift+enter to enter as an array, {} will appear around the formula

  10. #10
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Average when condtions are met

    I have used that and i get #Value!

  11. #11
    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: Average when condtions are met

    did you enter it using CTRL SHIFT ENTER, and not just ENTER?

  12. #12
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Average when condtions are met

    yeah i got the {} ethier side

  13. #13
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Average when condtions are met

    sorry it says #N/A

  14. #14
    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: Average when condtions are met

    OK give this a try - adjust ranges as needed...
    =SUMPRODUCT((A1:A9=1)*(B1:B9))/SUMPRODUCT(--(A1:A9=1))

  15. #15
    Registered User
    Join Date
    12-02-2013
    Location
    Leicester
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Average when condtions are met

    sorry i am having no joy

    all i need it if row A6 to A 29 = "specific Advisor" and C6 to C 29 = "yes" then i want an average of D 6 to D29 (this colloum contains Times)that matches these two creitera

+ 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. Lookup with two condtions
    By dmills27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2009, 12:02 PM
  2. Average with two condtions
    By Isacael in forum Excel General
    Replies: 4
    Last Post: 03-10-2009, 06:49 AM
  3. IF Formula with 2 condtions in it...
    By jur78 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2008, 03:52 AM
  4. checking two condtions
    By [email protected] in forum Excel General
    Replies: 5
    Last Post: 03-22-2006, 11:25 AM
  5. SUM IF 2 CONDTIONS
    By ellebelle in forum Excel General
    Replies: 5
    Last Post: 01-04-2006, 03:25 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