Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default How to get Holidays in cell/s? (Find explaination in details)

Dear reader, I am again trying to explain in details (My Project name: Leave
Application)

I have Data for an Excel Sheet as:-
1) Cell A1 : Start Date (e.g. 12 Dec 2007)
2) Cell A2 : End Date & (e.g. 31 Dec 2007)
3) Total Holidays of year : Filled in Colomn B (e.g. List of total 15
Holidays in year 2007 :26 Jan, 2 Oct,------, 14 Dec, 25 Dec)

I got the results for calculation for "Total no. of leaves including
Holidays= "cell A3" i.e. 15 Days using "networkdays" function (modified for 6
working days as per my requirnment) within start & End dates
Now I want a function which can fill the Holidays dates from Start
date (A1) & End dates (A2) in the cell/s named as "And Holidays are on: 14
Dec 2007, 25 Dec 2007" from the Holiday list.
If you got the clearity for the problem, please reply for solution,
else reply. I will be thankful to you.

Nilay

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to get Holidays in cell/s? (Find explaination in details)

Try this array formula** :

Assumptions:

A1 = start date = named cell = start
A2 = end date = named cell = end
B1:B15 = list of holiday dates = named range = hdays

Enter this array formula** in cell D1 and copy down to a number of cells
that is equal to the number of holiday dates in your holiday list. In this
example, that would be 15 cells.

=IF(ROWS(D$1:D1)<=INDEX(FREQUENCY(Hdays,A$1:A$2-{1;0}),2),SMALL(IF((Hdays=start)*(Hdays<=end),Hda ys),ROWS(D$1:D1)),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



--
Biff
Microsoft Excel MVP


"Nilay Excel 2003" wrote in
message ...
Dear reader, I am again trying to explain in details (My Project name:
Leave
Application)

I have Data for an Excel Sheet as:-
1) Cell A1 : Start Date (e.g. 12 Dec 2007)
2) Cell A2 : End Date & (e.g. 31 Dec 2007)
3) Total Holidays of year : Filled in Colomn B (e.g. List of total 15
Holidays in year 2007 :26 Jan, 2 Oct,------, 14 Dec, 25 Dec)

I got the results for calculation for "Total no. of leaves
including
Holidays= "cell A3" i.e. 15 Days using "networkdays" function (modified
for 6
working days as per my requirnment) within start & End dates
Now I want a function which can fill the Holidays dates from Start
date (A1) & End dates (A2) in the cell/s named as "And Holidays are on: 14
Dec 2007, 25 Dec 2007" from the Holiday list.
If you got the clearity for the problem, please reply for solution,
else reply. I will be thankful to you.

Nilay



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default How to get Holidays in cell/s? (Find explaination in details)

Dear T. Valko,
Its working in very correct manner & I got the exact result
thats needed.
Really Great helpline I got from you & Greg Wilson also for my project.
Thanks again.


Nilay



"T. Valko" wrote:

Try this array formula** :

Assumptions:

A1 = start date = named cell = start
A2 = end date = named cell = end
B1:B15 = list of holiday dates = named range = hdays

Enter this array formula** in cell D1 and copy down to a number of cells
that is equal to the number of holiday dates in your holiday list. In this
example, that would be 15 cells.

=IF(ROWS(D$1:D1)<=INDEX(FREQUENCY(Hdays,A$1:A$2-{1;0}),2),SMALL(IF((Hdays=start)*(Hdays<=end),Hda ys),ROWS(D$1:D1)),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



--
Biff
Microsoft Excel MVP


"Nilay Excel 2003" wrote in
message ...
Dear reader, I am again trying to explain in details (My Project name:
Leave
Application)

I have Data for an Excel Sheet as:-
1) Cell A1 : Start Date (e.g. 12 Dec 2007)
2) Cell A2 : End Date & (e.g. 31 Dec 2007)
3) Total Holidays of year : Filled in Colomn B (e.g. List of total 15
Holidays in year 2007 :26 Jan, 2 Oct,------, 14 Dec, 25 Dec)

I got the results for calculation for "Total no. of leaves
including
Holidays= "cell A3" i.e. 15 Days using "networkdays" function (modified
for 6
working days as per my requirnment) within start & End dates
Now I want a function which can fill the Holidays dates from Start
date (A1) & End dates (A2) in the cell/s named as "And Holidays are on: 14
Dec 2007, 25 Dec 2007" from the Holiday list.
If you got the clearity for the problem, please reply for solution,
else reply. I will be thankful to you.

Nilay




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to get Holidays in cell/s? (Find explaination in details)

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Nilay Excel 2003" wrote in
message ...
Dear T. Valko,
It's working in very correct manner & I got the exact result
that's needed.
Really Great helpline I got from you & Greg Wilson also for my project.
Thanks again.


Nilay



"T. Valko" wrote:

Try this array formula** :

Assumptions:

A1 = start date = named cell = start
A2 = end date = named cell = end
B1:B15 = list of holiday dates = named range = hdays

Enter this array formula** in cell D1 and copy down to a number of cells
that is equal to the number of holiday dates in your holiday list. In
this
example, that would be 15 cells.

=IF(ROWS(D$1:D1)<=INDEX(FREQUENCY(Hdays,A$1:A$2-{1;0}),2),SMALL(IF((Hdays=start)*(Hdays<=end),Hda ys),ROWS(D$1:D1)),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



--
Biff
Microsoft Excel MVP


"Nilay Excel 2003" wrote in
message ...
Dear reader, I am again trying to explain in details (My Project name:
Leave
Application)

I have Data for an Excel Sheet as:-
1) Cell A1 : Start Date (e.g. 12 Dec 2007)
2) Cell A2 : End Date & (e.g. 31 Dec 2007)
3) Total Holidays of year : Filled in Colomn B (e.g. List of total 15
Holidays in year 2007 :26 Jan, 2 Oct,------, 14 Dec, 25 Dec)

I got the results for calculation for "Total no. of leaves
including
Holidays= "cell A3" i.e. 15 Days using "networkdays" function (modified
for 6
working days as per my requirnment) within start & End dates
Now I want a function which can fill the Holidays dates from
Start
date (A1) & End dates (A2) in the cell/s named as "And Holidays are on:
14
Dec 2007, 25 Dec 2007" from the Holiday list.
If you got the clearity for the problem, please reply for
solution,
else reply. I will be thankful to you.

Nilay






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I auto save details from one cell...... dim Excel Discussion (Misc queries) 2 October 10th 07 12:03 PM
Function explaination need hoachen Excel Worksheet Functions 2 July 26th 07 11:38 PM
Nested formula - seeking explaination mldancing Excel Discussion (Misc queries) 2 March 20th 07 09:04 PM
Formula explaination r Excel Discussion (Misc queries) 6 May 16th 06 04:12 AM
Automatic transfer of cell details Muckshifter New Users to Excel 1 July 28th 05 07:23 PM


All times are GMT +1. The time now is 09:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"