+ Reply to Thread
Results 1 to 2 of 2

Advanced Lookup and Average Nest Function

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    1

    Advanced Lookup and Average Nest Function

    I have two columns of Data. One column is a how much sleep I got, which varies. The to other column is how i ranked my day on a scale of 1 -5. Then i have a column that lists 1-5 and next to it i want the averages of the hours i slept that I ranked according to rankings.

    So if my sleep went
    16,9,20,4,2
    And my ranking column went
    1,3,5,2,4

    how can i create a formula that would be like find all the rankings for 3, look across the column in the sleep column and average that to the other ranking 3s?

    thanks

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    =AVERAGE(IF(Sleep range=Lookup value,day rating range,""))

    eg

    =AVERAGE(IF(A1:A5=3,B1:B5,""))

    nb, this is an array formula, and must be entered using ctrl, alt and enter
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ 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