We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

EXCEL question.

Options
I have an EXCEL spreadsheet, where I input my daily electricity usage. This works out the units used from the previous day, and it accurately predicts my monthly bill. One of the calculations involves finding the average by taking the amount of units used, and dividing by the number of days elapsed since the beginning of the billing cycle(cycle starts on 14th, so today the number of elapsed days is 27 and so on), then simply multiplying the average by the number of days in the month to get a monthly prediction. I know it's a trivial thing but is there a function in EXCEL that will increase the elapsed days automatically without me having to manually input ? Not important but I'm just curious. Was many years ago since I did any programming, so any help appreciated.

Comments

  • Think you have the wrong section of the forum. 
  • tacpot12
    tacpot12 Posts: 9,242 Forumite
    Ninth Anniversary 1,000 Posts Name Dropper
    This should be asked in the Technical section, but pending it being moved, I think this formula will do what you want:
    =INT(IF(DAY(NOW())<14,NOW()-DATE(YEAR(NOW()),MONTH(NOW())-1,14),NOW()-DATE(YEAR(NOW()),MONTH(NOW()),14)))

    This will return a number between 0 and 30 depending on the number of days between todays date and either 14th of the current month (if today's date is 14th or greater), or the 14th of the previous month (if today's date is less than 14th of the month). 
    The comments I post are my personal opinion. While I try to check everything is correct before posting, I can and do make mistakes, so always try to check official information sources before relying on my posts.
  • You could use COUNT to count the number of days with a value in to then divide the total by, or if you use the AVERAGE function but leave the future days blank it will calculate the average only of the days that have been entered.
  • Thanks everyone.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.8K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.8K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.8K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.