+ Reply to Thread
Results 1 to 4 of 4

Continuous IF (AND?) Formula..

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    Cheshire, England
    MS-Off Ver
    XP
    Posts
    2

    Continuous IF (AND?) Formula..

    Displayed below is a set of general calculations showing a weekly budget across 5 weeks.

    Weekly Budget = £124.84

    Total Spent

    Week 1 Week 2 Week 3 Week 4 Week 5
    £124.84 £124.84 £54.84 £94.84 £94.84

    Remaining

    Week 1 Week 2 Week 3 Week 4 Week 5
    £0.00 £0.00 £70.00 £30.00 £30.00

    Current Saving = £130.00

    Divided across each week (with £ remaining) = £43.33

    As shown, the weekly budget is £124. 84; the top half of the data shows how much has been spent each week, and the bottom half shows the corresponding amount left for each given week. I have then got a formula showing the 'current saving' beneath the data set which adds together the remaining money.

    The problem I'm having is with the following formula shown beneath the 'current saving' formula, known as 'divided across each week (with £ remaining)'.

    What I'm trying to do is divide the 'current saving' amount across each week which still has money remaining. So far, I've got the following formula in place: =IF(AND(B63<=0,G63/4),IF(C63<=0,G63/3,AND(D63<=0,G63/2,IF(E63<=0,G63/1)))) - This has worked up until there is no more money left for week 3 as the formula still divides the 'current saving' by 3, even though there is only 2 cells with money remaining.

    If anyone could help me out on this I would really appreciate it!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Continuous IF (AND?) Formula..

    Have you though about using AVERAGEIF ? The condition being greater than zero.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-30-2014
    Location
    Cheshire, England
    MS-Off Ver
    XP
    Posts
    2

    Re: Continuous IF (AND?) Formula..

    Thanks for the quick response Pete. I was using the AVERAGEIF prior to the formula I'm currently trying to implement; I may end up using that as it is effective, just I was hoping for something more automatic as the AVERAGEIF relies on me changing the range in line with how many weeks with money left in them are remaining. But unless there is another formula that fits my request I'll settle with that. Thanks again.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Continuous IF (AND?) Formula..

    Try this:

    =AVERAGEIFS(B63:F63,B63:F63,">0")

    I'm not sure why you need to adjust the ranges.

    Hope this helps.

    Pete

+ 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. Copy and Pasting non-continuous formula
    By daveycmc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2008, 10:21 AM
  2. Continuous Averages Formula
    By Mof in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-27-2006, 01:23 PM
  3. [SOLVED] continuous sum formula needed
    By NN in forum Excel General
    Replies: 2
    Last Post: 11-04-2005, 02:55 PM
  4. Making a formula continuous
    By Neil_Pattison in forum Excel General
    Replies: 4
    Last Post: 10-07-2005, 02:05 PM
  5. Formula for Continuous Services Dates
    By pvbridges in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2005, 08:51 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