Create custom year

oskr989

New Member
Joined
Apr 7, 2011
Messages
8
Hi, is there any way to create a custom year using a formula, for example from May 1, 2010 to April 30,2011.

Thanks in advance!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I think you would need to expand a bit more on just what you would want to achieve.
 
Upvote 0
Thanks Peter, sorry about that.
I have a spreadsheet that tracks vacations. I need to know if a person has taken at least three vacation days within that specific timeframe (from May 1, 2010 to April 30,2011).
 
Upvote 0
Thanks Peter, sorry about that.
I have a spreadsheet that tracks vacations. I need to know if a person has taken at least three vacation days within that specific timeframe (from May 1, 2010 to April 30,2011).
We would need to know how your sheet is laid out andf how we can tell when/if a person has taken a vacation and for how many days.
 
Upvote 0
This is how it looks:
layout.png

The light-blue cells are the ones with the quantity of days taken.
 
Upvote 0
Posting a screen shot like that will not get you nearly as many helpers as posting sample data directly in your post. My signature block below has 3 ways to do that. The reasons are that ..

a) many people will not bother to go to another screen to look

b) more importantly, your sample data cannot be copied from that image to a sheet to test developing a solution. Most helpers here would rather be trying to actually solve a problem than typing out sample data.

From what I can see, something like this may get you what you want.

=IF(SUMIF(B1:B100,"Vacation",F1:F100)>=3,"At least 3","Less than 3")
 
Upvote 0
Posting a screen shot like that will not get you nearly as many helpers as posting sample data directly in your post. My signature block below has 3 ways to do that. The reasons are that ..

Thanks for the advice and the formula, my apology for not posting correctly, now my concern is this (and I should've specified this from the very begging :???:). I need a formula that lets me know whether or not a person has taken at least three vacation days in one request, so to speak, the number in the "Enjoy" column (last one in blue)should be at least three or more, all that within the specific timeframe (from May 1, 2010 to April 30,2011).

Here is the code, as requested:
Excel Workbook
ABCDEF
110Vacation100%5
121Vacation5-Mar-105-Mar-10100%1
132Comp+1-Apr-102-Apr-10100%2
143Comp-23-Apr-1023-Apr-10100%1
154Comp-4-Jun-104-Jun-10100%1
165Personal10-Mar-1010-Mar-10100%1
176Personal13-Aug-1013-Aug-10100%1
187Personal17-Aug-1017-Aug-10100%1
198Vacation13-Dec-1024-Dec-10100%9
209Vacation19-Nov-1019-Nov-10100%1
2110Personal4-Feb-114-Feb-11100%1
EE01
Excel 2007
 
Last edited:
Upvote 0
Try something like this. This wouldn't be foolproof because there could be complications if a vacation was taken that started before the end of a 'year' but ended in the following 'year'.

For example, if the only Vacation taken was say 28-Apr-10 to 3-May-11, from what I can see of your sample this leave would probably show '4' in column F. However, without looking at a calendar, it would be difficult to work out if that leave included 3 daya in April or not.

I also don't see how 13-Dec-10 to 24-Dec-10 gives 9? Apart from a weekend is there another holiday in that period?

Excel Workbook
ABCDEFGHI
110Vacation100%5Start1/05/2010
121Vacation5-Mar-105-Mar-10100%1End30/04/2011
132Comp+1-Apr-102-Apr-10100%2>= 3 days at once?Yes
143Comp-23-Apr-1023-Apr-10100%1
154Comp-4-Jun-104-Jun-10100%1
165Personal10-Mar-1010-Mar-10100%1
176Personal13-Aug-1013-Aug-10100%1
187Personal17-Aug-1017-Aug-10100%1
198Vacation13-Dec-1024-Dec-10100%9
209Vacation19-Nov-1019-Nov-10100%1
2110Personal4-Feb-114-Feb-11100%1
22
Vacations
 
Upvote 0
I also don't see how 13-Dec-10 to 24-Dec-10 gives 9? Apart from a weekend is there another holiday in that period?

The actual holiday was 24-DEC-10, Christmas Eve, the person who wrote that, forgot it (although I am the "administrator", that spreadsheet is being used by several users, so I am not in control of what they put).

Regarding your formula, thank you very much, I'll give it a try.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top