+ Reply to Thread
Results 1 to 4 of 4

If question... I think!

  1. #1
    Registered User
    Join Date
    02-28-2006
    Posts
    24

    If question... I think!

    This is probably really easy but I can't get it to work. Please help!!!

    Below is a sample of the spreadsheet...
    I only want the variance to appear when there is something in the actual field.
    Here is what try IF((B18>C18),(B18-C18),IF((C18>B18),(C18-B18),$A$1)).

    Forecast Actual Variance
    7306 8214 908
    9321 10173 852
    8211 9097 886
    7233 8276 1043
    7025 8025 1000
    6682 7523 841
    9866 0 9866
    8510 0 8510
    7475 0 7475
    7075 0 7075
    6935 0 6935

  2. #2
    Forum Contributor
    Join Date
    12-02-2004
    Location
    London
    Posts
    255
    If you don't want to see a variance when the actual is 0, then can't you do:-

    If(C18=0,0,C18-B18)

  3. #3
    Kevin B
    Guest

    RE: If question... I think!

    IF(Actual>0,Actual-Forecast,0)

    Example, assuming that Forecasts are in column A and actuals are in column B:

    =IF(B2>0,B2-A2,0)
    --
    Kevin Backmann


    "kelljeff" wrote:

    >
    > This is probably really easy but I can't get it to work. Please help!!!
    >
    >
    > Below is a sample of the spreadsheet...
    > I only want the variance to appear when there is something in the
    > actual field.
    > Here is what try IF((B18>C18),(B18-C18),IF((C18>B18),(C18-B18),$A$1)).
    >
    > Forecast Actual Variance
    > 7306 8214 908
    > 9321 10173 852
    > 8211 9097 886
    > 7233 8276 1043
    > 7025 8025 1000
    > 6682 7523 841
    > 9866 0 9866
    > 8510 0 8510
    > 7475 0 7475
    > 7075 0 7075
    > 6935 0 6935
    >
    >
    > --
    > kelljeff
    > ------------------------------------------------------------------------
    > kelljeff's Profile: http://www.excelforum.com/member.php...o&userid=32007
    > View this thread: http://www.excelforum.com/showthread...hreadid=542441
    >
    >


  4. #4
    Don Guillett
    Guest

    Re: If question... I think!

    in YOUR particular scenario, try this.
    =IF(G1<1,"",MAX(F1:G1)-MIN(F1:G1))
    or substitute "" for $a$1??

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "kelljeff" <[email protected]> wrote in
    message news:[email protected]...
    >
    > This is probably really easy but I can't get it to work. Please help!!!
    >
    >
    > Below is a sample of the spreadsheet...
    > I only want the variance to appear when there is something in the
    > actual field.
    > Here is what try IF((B18>C18),(B18-C18),IF((C18>B18),(C18-B18),$A$1)).
    >
    > Forecast Actual Variance
    > 7306 8214 908
    > 9321 10173 852
    > 8211 9097 886
    > 7233 8276 1043
    > 7025 8025 1000
    > 6682 7523 841
    > 9866 0 9866
    > 8510 0 8510
    > 7475 0 7475
    > 7075 0 7075
    > 6935 0 6935
    >
    >
    > --
    > kelljeff
    > ------------------------------------------------------------------------
    > kelljeff's Profile:
    > http://www.excelforum.com/member.php...o&userid=32007
    > View this thread: http://www.excelforum.com/showthread...hreadid=542441
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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