+ Reply to Thread
Results 1 to 10 of 10

Find an unespected data item in a row

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    London
    MS-Off Ver
    excel 2010
    Posts
    6

    Find an unespected data item in a row

    Hello everybody,
    There are four values in excel i-e 2.9,3.1,3.4,8.2. How to find out that 8.2 is an unpredicted value. I in fact need an average of these numbers but the average is ruined if there is an unexpected value in the row. Please help me out as i have to do it for thousands of rows and manual way is so frustrating.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find an unespected data item in a row

    Hi,

    Are you saying that you have a list comprising those 4 numbers only and you want to exclude the 8.2 values in your average?

    If so one way:

    As an array formula i.e. entered with Ctrl-Shift-Enter

    =SUM((D1:D100<>8.2)*(D1:D100))/COUNTIF(D1:D100,"<>8.2")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-27-2012
    Location
    London
    MS-Off Ver
    excel 2010
    Posts
    6

    Re: Find an unespected data item in a row

    This is exactly not what i am looking for and i didnt asked for how to sum.
    The fourth value is sometimes unexpected. for example look at this set 3,4,6,19. Now 19 was very much unexpected. How to find out that there is an unexpected value in the fourth cell?

  4. #4
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Find an unespected data item in a row

    Hi

    You could try something like
    {=AVERAGE(IF(A2:D2<=2*STDEV(A2:D2),A2:D2,""))}
    Note that this is an array formula which must be entered or amended using Control+Shift+Enter (CSE) not just Enter.
    When you use CSE, Excel will place curly braces { } around your formula. Do not type them yourself.

    Basically this formula is only taking values that are within 2 standard deviations of the mean of the values.
    You will have to play about with the 2 to find a level which suits your data.

    Alternatively, take a look at the TRIMMEAN function.
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find an unespected data item in a row

    Are you always this rude?

    Quote Originally Posted by Imran688 View Post
    This is exactly not what i am looking for and i didnt asked for how to sum.
    The fourth value is sometimes unexpected. for example look at this set 3,4,6,19. Now 19 was very much unexpected. How to find out that there is an unexpected value in the fourth cell?
    The formula I gave you didn't show you how to sum, it showed you how to average. Which you'd understand if you had actually understood the formula.


    Since your post was by no means clear I specifically asked if what I was proposing was what you meant. All it required was a clarification not a bald statement that it was wrong. Defining what YOU mean by 'unexpected' would have been a start.

    You will do yourself no favours if you continue with this approach.
    Last edited by Richard Buttrey; 07-27-2012 at 09:39 AM.

  6. #6
    Registered User
    Join Date
    07-27-2012
    Location
    London
    MS-Off Ver
    excel 2010
    Posts
    6

    Re: Find an unespected data item in a row

    Well the question is very simple. i just want to find out if the fourth value in the set is not what it should be. i dont know how to explain it but here is the exmaple.
    4, 4.6, 5.1,6 = perfectly fine values
    4, 4.6, 5.1,8 = Not good. Last value could be 7 but 8 is totally wrong.

    I hope you got i am trying to say. I dont have english words to describe this phenomena.

    ---------- Post added at 08:59 AM ---------- Previous post was at 08:51 AM ----------

    @Roger Govier: It did not help. Or i could not understand what this formula means. anyway thanks guys for trying.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find an unespected data item in a row

    The question may be very simple but you don't give any guidance as to why the fourth value is good or bad. How do you define "what it should be". Only you know that. We're not psychic - well I'm not.

    State the rules that determine why 6 or 7 is OK, but 8 is not. What about 7.1, 7.2, 7.3 etc. Are they good or bad and why.

    And don't expect answers if you continue to be rude or curt. A sorry would not go amiss.

  8. #8
    Registered User
    Join Date
    07-27-2012
    Location
    London
    MS-Off Ver
    excel 2010
    Posts
    6

    Re: Find an unespected data item in a row

    Haha. cool.
    In fact these are the prices collected by guys from different shops for a list of products. My purpose is to set the price competitive. Now lets say a cup is priced as 4, 4.5, 7, 18. Now remember there are hundreds of products. If i average it it will result an average of 8.3, which is bad as it will be higher than most competitors in the market. If the price is 4, 4.5, 7, 9 then average will be 6.2 so i will be a good competitor in the market but with 8.3 the cup is less likely to be sold from my shop.
    I can average the first three prices but that will not be a good price standard. There will be a chance of loss sometimes in that case. Is there a way that i can detect which row's fourth value is kind of abnormal?

    I hope that made some sense. and if it didnt then never mind. Thanks for trying anyway.

  9. #9
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Find an unespected data item in a row

    Hi
    Have you looked at the solution I posted a while ago?

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find an unespected data item in a row

    This is rather like how long is a piece of string. Only you can decide what might be competitive in your market but also maximise your margin.

    One strategy might for instance be to take the minimum of -
    1. The average of the first three values x 1.5 (as an example)
    2. The fourth value

    So if the values were say 8,9,12 & 13, the average of the first three x 1.5 is 14.5
    So the minimum of 14.5 and the fourth value is 13

    Just one method. Whether your market is capable of such modelling is of course open to question. Walking the market to get a feeling for what sells and why is probably going to be much more use.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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