+ Reply to Thread
Results 1 to 10 of 10

AVEDEV with an array formula

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    London, UK
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    AVEDEV with an array formula

    Hi - I'm trying to run the AVEDEV function on a column of data which needs to be converted from text to numeric, using a separate reference table. I'm very keen on avoiding a helper column! I was hoping the following as an array function would work, but alas it returns #N/A (and a similar formula with Index/Match also doesn't seem to work)...

    {=AVEDEV(VLOOKUP(Datasheet!A:A,Referencesheet!$A$1:$B$10,2,FALSE))}

    (average deviation of all values in datasheet column A, converted to numeric values based on a vlookup to the table in the referencesheet)

    Please help!

  2. #2
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: AVEDEV with an array formula

    You need an array as an argument for AVDEV.
    VLOOKUP() will not give you an array. It would return the first number in column B. You can try running the VLOOKUP() formula separately.
    AVEDEV() of a single number is ZERO.
    But your formula is returning #NA which is interesting. Try giving a name to range Referencesheet!$A$1:$B$10 and use it in your formula. At least you will get rid of #NA.

    I am still not sure about your requirement though. A sample sheet might help.
    Shashank Mishra
    Please hit "Add Reputation" Button if you liked the answer.

  3. #3
    Registered User
    Join Date
    01-02-2013
    Location
    London, UK
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    Re: AVEDEV with an array formula

    Shashank, thanks for looking into this! Attached is an example file.
    Attached Files Attached Files

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: AVEDEV with an array formula

    vlookup can't return array
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in the case values on the Referencesheet is not arranged.
    Attached Files Attached Files
    Last edited by BMV; 01-14-2020 at 09:28 AM.

  5. #5
    Registered User
    Join Date
    01-02-2013
    Location
    London, UK
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    Re: AVEDEV with an array formula

    BMV, many thanks for this, the second formula works perfectly! It does seem to be sensitive to the data range specified (in this case B4:B12) e.g. returns #N/A if the actual data range is only B4:B9. I'm hoping to use the formula across multiple sheets with varying range sizes (that will also change over time) - any idea if this can be reflected in the formula?

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: AVEDEV with an array formula

    Could you show the example? For me it's not clear what you mind
    to use the formula across multiple sheets with varying range sizes

  7. #7
    Registered User
    Join Date
    01-02-2013
    Location
    London, UK
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    Re: AVEDEV with an array formula

    Sure, attached you'll see I've deleted two entries (in red) and now the formula returns an error. Ideally, the formula would be dynamic to whatever the range size was. Is this possible?
    Attached Files Attached Files

  8. #8
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: AVEDEV with an array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    1=0 - it's FALSE
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    999 - is reservation

  9. #9
    Registered User
    Join Date
    01-02-2013
    Location
    London, UK
    MS-Off Ver
    Office 365 ProPlus
    Posts
    18

    Re: AVEDEV with an array formula

    The first formula works perfectly (as an array formula). Thanks again, this is great!

  10. #10
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: AVEDEV with an array formula

    Quote Originally Posted by lukethomas View Post
    (as an array formula)
    it could be changed also. There is non array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Array summing inventory of a specific part (array formula) EXCEL 2007
    By fdirosa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2018, 12:51 PM
  2. [SOLVED] Difference between STDEV and AVEDEV
    By GIS2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2017, 11:33 AM
  3. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  4. [SOLVED] Avedev formula required
    By bigband1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2014, 08:20 AM
  5. Array formula + Array formula with criteria that lookups a Table
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 11:41 AM
  6. avedev
    By Dianne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2006, 07:20 PM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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