+ Reply to Thread
Results 1 to 8 of 8

Calculate standard deviation based on conditions.

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Calculate standard deviation based on conditions.

    Hi Experts,

    I have a requirement to validate the values (cost & prices) in the product list based on following conditions and then calculate the deviation in the cost & price of material.

    1. Material #
    2. Vendor ID & name
    3. Currency

    Ideally the product list should have same cost and prices for the materials with same currency and vendor irrespective of the country.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-29-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Calculate standard deviation based on conditions.

    Hi,

    From what I can see the topic does not correspond with the desired result. Standard deviation is a measure that quantifies the amount of variation and applies on a set of values of the same matter. In your sample you calculate the difference between two values in %. Unless it is clear exactly what you need I do not see how to help.

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Calculate standard deviation based on conditions.

    Hi,

    I want to know if a part (with same vendor and currency) has different cost or price in the data.

    E.g in sample data:
    1. Part # OFF-AR-10002833 has different price in Canada region but the cost is same for both US and Canada.
    2. Similarly part # OFF-BI-10003910 has different cost in Canada but same price for US and Canada.
    3. Part # FUR-BO-10001798 has same cost and price for both US and Canada.

    Hope this helps.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Calculate standard deviation based on conditions.

    Perhaps this pivot table hybrid proposal will help.
    Produce a pivot table (modeled on Sheet1) from the data on the 'Worksheet'
    Populate columns H:I using: =IF(OR($B4<>$B$5,$C3<>$C4,F4=F3),"",F3/F4-1)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Calculate standard deviation based on conditions.

    JeteMc,

    Thanks, your solution eases my work a bit with the formula. I am using two pivot tables, each for cost & price. Just wondering if there's any way out without the pivot table as I have a huge list to work with.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Calculate standard deviation based on conditions.

    Perhaps the following will be of some help.
    Place the Cost and Price pivot tables on different sheets. Append each pivot table with a 'Difference' column using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that the formula to find the difference in prices replaces "Cost" with "Price".
    Filter the 'Difference' column by unselecting zero and #REF. (Modeled on the 'Cost Pivot' sheet)
    Let us know if you have any questions.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-30-2013
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: Calculate standard deviation based on conditions.

    Thanks for the help! This is very helpful.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Calculate standard deviation based on conditions.

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. help to calculate standard deviation
    By lana86 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-12-2015, 10:27 PM
  2. [SOLVED] VBA to calculate Standard Deviation
    By schmidtkicker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2014, 06:17 AM
  3. Calculate Standard Deviation
    By goss in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2013, 05:11 AM
  4. calculate weighted standard deviation based on filtered results
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2013, 02:14 PM
  5. Calculate standard deviation for column based on column heading
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 04:25 PM
  6. Calculate one standard deviation from mean
    By missyreiber in forum Excel General
    Replies: 3
    Last Post: 09-08-2010, 11:40 AM
  7. How to calculate 2 standard deviation?
    By Li in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2005, 05: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