+ Reply to Thread
Results 1 to 6 of 6

Look up name to calculate its corresponding front value, AverageIf, Index, And Match

  1. #1
    Forum Contributor
    Join Date
    03-26-2021
    Location
    California, US
    MS-Off Ver
    MS Office 2010
    Posts
    105

    Look up name to calculate its corresponding front value, AverageIf, Index, And Match

    Friends,

    I have two columns:

    - Different types of names repeated
    - Values next to the names

    I would like to request to have a formula that would look up the name then return the average for its values.

    I think the file would explain better.

    Here is a simple illustration of what I mean:

    Oranges: 1000
    Oranges: 3000
    Oranges: 900
    Cakes: 1900
    Cakes: 1300
    Cakes: 1500
    Apples: 1300
    Apples: 5000
    Apples: 7000
    Apples: 5000
    Apples: 1000

    A blank cell anywhere in the sheet, whatever name is typed into it would return the average value for the correspondence.

    I think this blank cell would require a mixture of index and match with averageif.

    Thank you very much in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,212

    Re: Look up name to calculate its corresponding front value, AverageIf, Index, And Match

    Try

    =AVERAGEIF(A:A,A2,B:B)

  3. #3
    Forum Contributor
    Join Date
    03-26-2021
    Location
    California, US
    MS-Off Ver
    MS Office 2010
    Posts
    105
    Yes, works like a charm!

    Is there a way to create a unique names column thereby simply dragging the formula over it to create results?

    This is to suppose if some more names are entered into the original column.

    I hope I am not creating confusion.
    Last edited by AliGW; 09-23-2021 at 03:32 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,212

    Re: Look up name to calculate its corresponding front value, AverageIf, Index, And Match

    In D2

    =IFERROR(INDEX($A$2:$A$367, MATCH(0, COUNTIF($D$1:$D1, $A$2:$A$367))),"")

    Enter with ctrl+shift+Enter
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-26-2021
    Location
    California, US
    MS-Off Ver
    MS Office 2010
    Posts
    105

    Re: Look up name to calculate its corresponding front value, AverageIf, Index, And Match

    Yes, perfection!

    I am sorry I came back after this long to reply.
    Last edited by AliGW; 09-23-2021 at 03:31 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,212

    Re: Look up name to calculate its corresponding front value, AverageIf, Index, And Match

    You're welcome. No apology necessary!
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] Index and Match with AverageIF
    By dbrownla in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-26-2020, 07:08 PM
  2. Index Match to calculate data - Filter calculate
    By Tgbell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2019, 01:46 PM
  3. [SOLVED] Index Match to calculate allocation
    By bkta99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2017, 05:20 PM
  4. [SOLVED] Using index match to calculate years of service
    By julesmctavish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-21-2016, 06:29 PM
  5. [SOLVED] Index/Match - To calculate variance
    By Pavan.Sada.PS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2013, 10:37 AM
  6. Attempting to use an Averageif and index/match but having trouble
    By jmuduke08 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2013, 12:15 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