Hi ,
It looks like you're using an ad blocker.



The revenue generated from the adverts on the site is a critical part of our funding - and it's because of these ads that I can offer the site for free. But using the site for free AND blocking the ads doesn't feel like a great thing to do, which is why this box is so large and inconvenient. Some sites will completely block your access, but I'm not doing that - I'm appealing to your good nature instead. Did you know that you can allow ads for specific sites, whilst still blocking them on others?

Thanks,
Ian Williams aka Fetch

or for an ad-free Fetcheveryone experience!

SpreadEveryone: The Fetchland Excel wire

2 lurkers | 102 watchers
Aug 2011
4:55pm, 30 Aug 2011
20,401 posts
  • Quote
  • Pin
John66
This is bugging me, I'm sure it should be much easier

A1 has 25/6/2010
B1 has 24/6/2013

So the date range of my grant is from 25/6/10 to 24/6/2013 and the number of days is 1095. Easy so far.

I want a formula to calculate, for a lot of grants, how many relevant grant days are in 2010, 2011, 2012, 2013, 2014 etc.

Make sense??
Aug 2011
5:00pm, 30 Aug 2011
4,635 posts
  • Quote
  • Pin
Stander
Dates in excel are actually numbers counting up from 0th Jan 1900 (which is value zero) . If you have Cell A2 as +A1 but format it as a number you will see what I mean.
If you type in the dates you what you can therefore do a simple deduction, but just format the answer as a number not a date.

Clear?
Aug 2011
5:01pm, 30 Aug 2011
4,636 posts
  • Quote
  • Pin
Stander
My consultancy rates are very cheap btw.

:)
Aug 2011
5:08pm, 30 Aug 2011
20,403 posts
  • Quote
  • Pin
John66
I know all that - sadly doesn't help one jot :-(
Aug 2011
5:10pm, 30 Aug 2011
4,639 posts
  • Quote
  • Pin
Stander
Does the answer 365 in every year help? *

*Leap years = 366
Aug 2011
5:12pm, 30 Aug 2011
16,011 posts
  • Quote
  • Pin
HappyG(rrr)
John, what's your question?

B1 - A1 = 1095 on my spreadsheet.

What are "relevant grant days"? :-)G
Aug 2011
5:14pm, 30 Aug 2011
4,640 posts
  • Quote
  • Pin
Stander
=if formula?

i.e. =if(A1<40179,0,40544-a1)

40179 = 01/01/10
40544 = 01/01/11
i.e. the forumla returns a value of zero unless your date falls within 2010 in which case it will then give you the number of days in 2010
Aug 2011
5:15pm, 30 Aug 2011
2,951 posts
  • Quote
  • Pin
GlennR
Happy has hit the nail on the head John - we need to know what the question is.
Aug 2011
5:15pm, 30 Aug 2011
4,641 posts
  • Quote
  • Pin
Stander
Shit. What happened to trest of my post?

=if(a1<40179,0,40544-a1)

returns a value of zero for dates before 01/01/10 (value 40179), but if the date is within 2010 (1/1/10 = value 40544) it then gives you the number of days within 2010.

Helpful?
Aug 2011
5:18pm, 30 Aug 2011
4,642 posts
  • Quote
  • Pin
Stander
it did it again!

I'll fmail it to you John

About This Thread

Maintained by John66
This is bugging me, I'm sure it should be much easier

A1 has 25/6/2010
B1 has 24/6/2013

So t...
  • Show full description...

Related Threads

  • excel
  • support
  • tech
  • work

Report This Content

You can report any content you believe to be unsafe. Please let me know why you believe this content is unsafe by choosing a category below.



Thank you for your report. The content will be assessed as soon as possible.










Back To Top

Tag A User

To tag a user, start typing their name here:
X

Free training & racing tools for runners, cyclists, swimmers & walkers.

Fetcheveryone lets you analyse your training, find races, plot routes, chat in our forum, get advice, play games - and more! Nothing is behind a paywall, and it'll stay that way thanks to our awesome community!
Get Started
Click here to join 114,107 Fetchies!
Already a Fetchie? Sign in here