+ Reply to Thread
Results 1 to 6 of 6

How to stop cells displaying results outside required parameters

  1. #1
    Registered User
    Join Date
    07-29-2010
    Location
    North West
    MS-Off Ver
    Excel 2003
    Posts
    9

    How to stop cells displaying results outside required parameters

    Hi,

    I need to find a formula that can stop a value being returned once certain peramiters are exceeded.

    For eaxmple, a policy is valid for 7 days.
    The start date is January 4th, and expiration is Kanuary 10th.

    I need to display the number of days used, and the pro rata cost of the policy used.

    The problem is regarding policies which start before the required start date resulting in an overstatement in policy value, and days used. (highlighted in red).

    Ideally, I need to somehow fix the values returned in the red cells to the total cost of the policy. ie, it has been used, therefore 7 days cost applied, and not eight, and £70 displayed instead of £80.

    I hope my explination is clear enough. I have attached a sample data.

    Thanks all in advance

    Sai
    Attached Files Attached Files
    Last edited by Sai Sari; 08-02-2010 at 04:58 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: How to stop cells displaying results outside required peramiters

    So am I correct if I say that the max period over which the cost is spread is 7 days i.e. if a policy end date- policy start date exceeds 7 days, the fee is still apportioned over 7 days?

    If so, try this formula in cell e4:

    Please Login or Register  to view this content.
    Alternatively, you could limit the days calculation value in cell F4 using this:

    Please Login or Register  to view this content.
    Note that it's considered less than ideal/ lessens a spreadsheet's flexibility to 'hard code' a number into an Excel formula (i.e. your formula uses the number 7 in cell e4). You might consider typing the 7 into an empty cell and referencing that cell in your revised formula.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  3. #3
    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: How to stop cells displaying results outside required peramiters

    Hi,

    In F4 and copied down
    Please Login or Register  to view this content.
    Rgds
    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.

  4. #4
    Registered User
    Join Date
    07-29-2010
    Location
    North West
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to stop cells displaying results outside required parameters

    Hi All,
    Thank you all for your input.
    Now my boss wants me to process all data with a cut off date of june 22 instead u=of july 22.
    This now shows many results as a negative,
    Could someone please sugest a way of keeping these negative values as a zero as they have not yet happened???
    I have attached a copy sheet with the probloem highlighted in yellow.

    Many Thanks

    Sai
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-29-2010
    Location
    North West
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to stop cells displaying negative results outside required parameters

    Hi All,
    Thank you all for your input so far
    .
    Now my boss wants me to process all data with a cut off date of june 22 instead of july 22.
    This now shows many results as a negative,
    Could someone please sugest a way of keeping these negative values as a zero as they have not yet happened???
    I have attached a copy sheet with the probloem highlighted in yellow.

    Many Thanks

    Sai
    Attached Files Attached Files

  6. #6
    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: How to stop cells displaying negative results outside required parameters

    Hi,

    Please Login or Register  to view this content.
    HTH

+ 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