+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP inside an AVERAGEIFS

  1. #1
    Registered User
    Join Date
    05-14-2018
    Location
    Kiev
    MS-Off Ver
    10
    Posts
    3

    Post VLOOKUP inside an AVERAGEIFS

    Hi, guys!
    Help me please!
    How to find average number of days all employees worked in the company by locations and seniority?
    I've tried by using AVERAGEIFS&VLOOKUP, but nothing right...
    Location Seniority Start Date Termination Date
    Krakow Regular 24-Feb-16 24-Feb-17
    Kyiv Regular 24-Feb-16 17-Mar-17
    Bucharest Junior 23-Feb-16 1-May-17
    London Regular 23-Feb-16 31-May-17
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: VLOOKUP inside an AVERAGEIFS

    I would convert your range to a table, then use this in C6:

    =IFERROR(AVERAGE(IF((Table1[Location]=$B6)*(Table1[Seniority]=C$5),Table1[Termination Date]-Table1[Start Date])),"") Ctrl Shift Enter

  3. #3
    Registered User
    Join Date
    05-14-2018
    Location
    Kiev
    MS-Off Ver
    10
    Posts
    3

    Re: VLOOKUP inside an AVERAGEIFS

    Thanks for the reply!
    It's still doesn't work...Screenshot_1.png

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: VLOOKUP inside an AVERAGEIFS

    You have to enter the formula using Ctrl Shift Enter instead of just Enter.

    This part is important which is why I made it bold in post #2.

    Also, you made changes to the formula that will make it not work.

+ 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. VLOOKUP inside an AVERAGEIFS() Argument
    By MISC_IT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-14-2018, 01:18 PM
  2. vlookup inside For Each statement
    By lordterrin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-02-2013, 05:36 PM
  3. Replies: 1
    Last Post: 10-02-2012, 04:27 PM
  4. Looking up a column inside a vlookup
    By ruperupe in forum Excel General
    Replies: 5
    Last Post: 05-11-2012, 03:38 PM
  5. Vlookup inside an IF - Is this possible?
    By JennyW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2006, 06:50 PM
  6. vlookup inside an if statement?
    By carlosgdlf in forum Excel Formulas & Functions
    Replies: 51
    Last Post: 09-06-2005, 07:05 PM
  7. Using Concatenate inside a vlookup
    By ScottO in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 12:05 PM
  8. Arrays inside VLookup
    By MikeP in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 05:06 PM

Tags for this Thread

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