+ Reply to Thread
Results 1 to 12 of 12

does AVERAGEIF work with text values?

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    does AVERAGEIF work with text values?

    Hello,

    I have the following formula that calculates the average with numbers:
    =AVERAGEIF('Individual Player Raw Data'!B:B,$B66,'Individual Player Raw Data'!G:G)

    I would like to use the exact same format but for cells with text.
    for example, lets say in my G:G column on the 'Individual Player Raw Data'! sheet, I have: apples; bananas; apples; pears; oranges.
    I want the answer i get to be Apples.

    Is this possible?

    Thank you.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: does AVERAGEIF work with text values?

    You can use text in the criteria, but not for the average range.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: does AVERAGEIF work with text values?

    Quote Originally Posted by Pete_UK View Post
    You can use text in the criteria, but not for the average range.

    Hope this helps.

    Pete
    i dont understand.

    i think i may have explained it terribly.
    of course with text values i wont be using an average formula, maybe more like a mode formula (most common text value).

    what can i do?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: does AVERAGEIF work with text values?

    Try something like this.

    =INDEX($g$3:$g$100,MODE(MATCH($g$3:$g$100,$g$3:$g$100,0)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: does AVERAGEIF work with text values?

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: does AVERAGEIF work with text values?

    Quote Originally Posted by Fotis1991 View Post
    Try something like this.

    =INDEX($g$3:$g$100,MODE(MATCH($g$3:$g$100,$g$3:$g$100,0)))
    im sorry youve lost me.
    if you could please incorporate your formula with the one i posted in the OP, id be able to understand it so much more.
    i'll be using those exact cell references.

    thank you.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: does AVERAGEIF work with text values?

    Pls do what FDibbins suggested.

  8. #8
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: does AVERAGEIF work with text values?

    I've done as requested. Please find attached my excel doc.


    let me explain from scratch:

    first i manually input all data on the 'individual player raw data' sheet.
    so now i only need to input the date in column A on the 'Team Data' sheet to get all the data as a team.
    Column E and F on the 'Team Data' sheet is already done. This AVERAGEIF formula calculates the score in each match.
    Now i want the opposition column to automatically update too by calculating that under a certain date, we played a particular opposition so that will show up on column B on the 'Team Data' sheet.
    Because its text and not a number, im not sure how to do this. I think a mode formula would work because it will calculate that its the most common (only) opposition under a particular date.

    feel free to ask any questions.

    thank you so much for your time and effort.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: does AVERAGEIF work with text values?

    Do you ever play more than 1 match a day? If not,
    =INDEX('Individual Player Raw Data'!$C$3:$C$250, MATCH(A3, 'Individual Player Raw Data'!$B$3:$B$250,0))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: does AVERAGEIF work with text values?

    Have you more than 1 match per day?

  11. #11
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: does AVERAGEIF work with text values?

    Quote Originally Posted by Fotis1991 View Post
    Have you more than 1 match per day?
    no. only 1 opposition per date.

  12. #12
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: does AVERAGEIF work with text values?

    Quote Originally Posted by chemistb View Post
    do you ever play more than 1 match a day? If not,
    =index('individual player raw data'!$c$3:$c$250, match(a3, 'individual player raw data'!$b$3:$b$250,0))
    it worked.
    You geinus!!!

    Thank you so much

+ 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