+ Reply to Thread
Results 1 to 5 of 5

Average of Words in Excel

  1. #1
    Registered User
    Join Date
    09-05-2018
    Location
    Oxford
    MS-Off Ver
    2016
    Posts
    7

    Average of Words in Excel

    Hello Everyone,

    I am looking for a little help with a formula issue I am having. I have created the below formula to return the avearge of several words in a list on MPANs onto sheet 1 which works really well.

    =INDEX(OFFSET(MPANs!AB2,0,0,MAX(ROW(MPANs!AB:AB)*(MPANs!AB:AB<>""))-1,1),MODE.MULT(MATCH(OFFSET(MPANs!AB2,0,0,MAX(ROW(MPANs!AB:AB)*(MPANs!AB:AB<>""))-1,1),OFFSET(MPANs!AB2,0,0,MAX(ROW(MPANs!AB:AB)*(MPANs!AB:AB<>""))-1,1),0)))

    Unfortunatlye however if there is only one value in Column AB it is returning as '#N/A'

    Is there a way to get the value of the first row if there are no other entries in the column?

    Any help would be greatly appreciated.

    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
    25,427

    Re: Average of Words in Excel

    I don't know what you mean by "an average of several words", so could you attach a sample workbook to help explain this.

    Pete

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average of Words in Excel

    I would avid the use of whole column ranges for a start... and OFFSET, which is volatile.

    Named Range (CTRL-F3), here set for up to 1000 rows:
    =MPANS!$AB$2:INDEX(MPANS!$AB$2:$AB$1000,COUNTA(MPANS!$AB$2:$AB$1000))

    And an array formula:
    =IFERROR(INDEX(Range,MODE(MATCH(Range,Range,0)+{0,0})),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    09-05-2018
    Location
    Oxford
    MS-Off Ver
    2016
    Posts
    7

    Re: Average of Words in Excel

    Thank you so much Glenn, that has worked a treat! This is super helpful.

    Thank you so much!

    Rhian

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average of Words in Excel

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Replies: 15
    Last Post: 08-07-2017, 02:40 PM
  2. [SOLVED] Looking to average times "excluding" certain key words
    By carwinski33 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-15-2017, 10:41 PM
  3. Replies: 0
    Last Post: 04-29-2013, 03:13 PM
  4. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  5. Replies: 1
    Last Post: 04-04-2012, 07:15 PM
  6. IF using words and average
    By nixilix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2008, 04:54 AM
  7. [SOLVED] how do I find an average number of specific words in a column
    By cashgrfx in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 01-06-2005, 01:06 PM

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