+ Reply to Thread
Results 1 to 4 of 4

Nested VLOOKUP, IF, AVERAGE Function

  1. #1
    Registered User
    Join Date
    04-12-2007
    Posts
    8

    Question Nested VLOOKUP, IF, AVERAGE Function

    Stab in the dark guys, have a project due but a formula is giving me problems and without the formula I cant build two charts I need.

    I am going to explain as best I can what's wrong.

    I need to find the average of three sets of figures for three different types of customers. However, the data with the customer keys/types and the figures that need be averaged are in another sheet.

    I am trying to use a combination of IF, AVERAGE AND VLOOKUP functions but none seem to be working.

    This is the last combination ive tried

    =VLOOKUP(a2,avg2,3,false),IF(B5:B11="R"),AVERAGE(C5:C11)


    The formula doesnt work because excel instead thinks im referring to B5:B11 in the sheet im typing the formula in and not B5:B11 in the named range avg2 in another worksheet. The same happen with C5:C11 it highlights C5:C11 in the worksheet im typying the formula in and not the avg2 named range in the other worksheet.

    B5:B11 represent the customer key for one group of customers and C5:C11 represent the usage level of the same group of customers. I have sorted the table.

    Is it possible to use and IF, VLOOKUP, AVERAGE combination and if so can someone please show me where I am going wrong. I need to avoid actually clicking on figures in the other worksheet as I need to avoid relative cell referencing I cant have any avg2! showing in my formulae.

    Can anyone assist?

    I would be very grateful for any help you can provide.

    Thanks in advance.
    Last edited by Mezzi; 04-12-2007 at 03:49 AM.

  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 Mezzi,

    Can you post an example sheet?

    Dave

  3. #3
    Registered User
    Join Date
    04-12-2007
    Posts
    8
    Hello Sweep, I am having difficulty doing so.
    This forum doesnt allow the upload of excel files, how do I convert my excel file to the .zip format.
    Thanks for the help.

  4. #4
    Registered User
    Join Date
    04-19-2007
    Location
    Sydney, AUstralia
    Posts
    25
    download and use WinZip from www.winzip.com

+ 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