+ Reply to Thread
Results 1 to 6 of 6

Variance for none blank cells only

  1. #1
    Registered User
    Join Date
    02-08-2016
    Location
    CANADA
    MS-Off Ver
    2013
    Posts
    11

    Variance for none blank cells only

    Column A has Load Weights
    Column B has Unload Weights

    I need an equation/formula to calculate the total variance between Column A minus Column B, but only when Column B has a number entered (If blank than do not add this to the total as the variance is unknown).


    In C1 I need the Sum of all variances from Column A - Column B (If not blank)


    Thank you for the help!
    Last edited by CHRYSTALMCKAY; 02-16-2016 at 12:28 PM.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Variance for none blank cells only

    I entered this in column C

    =if(B1="","",A1-B1)

    copy formula down column C

  3. #3
    Registered User
    Join Date
    02-08-2016
    Location
    CANADA
    MS-Off Ver
    2013
    Posts
    11

    Re: Variance for none blank cells only

    In C1 I need the Sum of all variances from Column A - Column B (If not blank)

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Variance for none blank cells only

    If I understand what you want, maybe this...

    Data Range
    A
    B
    C
    D
    1
    5
    4
    5
    2
    10
    8
    3
    22
    4
    10
    10
    5
    5
    3
    6
    ------
    ------
    ------
    ------


    This formula entered in D1:

    =SUMPRODUCT(--(B1:B5<>""),A1:A5-B1:B5)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    02-08-2016
    Location
    CANADA
    MS-Off Ver
    2013
    Posts
    11

    Re: Variance for none blank cells only

    PERFECT! Thank you!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Variance for none blank cells only

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. toggle between variance in units and % variance
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 06-03-2014, 07:21 PM
  2. Code to allocate a value 1 row at a time until the variance between 2 cells disappears
    By suemcintyre in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2013, 03:56 PM
  3. [SOLVED] Find the date of a variance amount over a limit and count the days since the variance.
    By avidcat in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-21-2013, 12:00 PM
  4. Price Variance and Dollar Variance for multiple stores on certain products
    By hutchgeo4 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-22-2013, 05:49 PM
  5. [SOLVED] Pivot Tables - Variance and Variance %
    By PJS in forum Excel General
    Replies: 2
    Last Post: 01-17-2006, 11:15 PM
  6. Formula to say Yes or No based on variance in time cells
    By KingCreole in forum Excel General
    Replies: 1
    Last Post: 05-25-2005, 06:03 AM
  7. [SOLVED] Pivot Tables - Variance and % Variance fields
    By CraigS in forum Excel General
    Replies: 5
    Last Post: 01-05-2005, 09:06 PM

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