+ Reply to Thread
Results 1 to 5 of 5

Average lookup

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Average lookup

    Hi All,

    I'm new to this sort of thing, so your help is appreciated.

    I need to calculate the average number of days a report was open based on the criteria Month & Customer and display the result in a seperate worksheet.

    For example, I would enter customer A in a cell in worksheet 2 and the formula would complete the average number of days a report was open below the corresponding months.

    Everything I have tried comes up with an error !?! Help......
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Hello Beef,

    You can use this formula in B2 copied across

    =LOOKUP(10^10,CHOOSE({1,2},0,AVERAGE(IF(Sheet1!$C2:$C13=$A2,IF(Sheet1!$B2:$B13-DAY(Sheet1!$B2:$B13)+1=B$1,Sheet1!$D2:$D13)))))

    This is an array formula that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar, see attached
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Average Lookup

    See attached.
    Don't enter customer name in Column A.
    Names will be added, when you enter a new name on sheet1.
    modytrane
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-19-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Thumbs up Solved - Average lookup

    Thanks daddylonglegs thats works perfect.

    You have saved me a lot of time.

    Beef

  5. #5
    Registered User
    Join Date
    01-19-2009
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Thumbs up Solved - Average lookup

    Thanks also modytrane, your solution although different works also.

    Thankyou

    Beef

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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