LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Macro or Formula

If I understand what you want then just put the formula on each persons own
sheet.

--
Biff
Microsoft Excel MVP


"terilad" wrote in message
...
Many thanks Biff,

Just to another pain, is there a way to ling the name to a sheet name as I
have sheets named with employees names and the input sheet contains the
input
as the sample but can the dates of hoidays be put into the individuals
sheet?

Many thanks

Mark

"T. Valko" wrote:

Ok, I'm assuming in your schedule table you have a list of employee
names.

So, C6:I6 are the dates, B7:B10 are employee names. C7:I10 matrix with
some
cells marked with X.

A2 = some employee name

Enter this formula in B2. This will return the count of X's for the
employee
in A2:

=COUNTIF(INDEX($C$7:$I$10,MATCH($A2,$B$7:$B$10,0), 0),"x")

Enter this array formula** in C2 and copy across to I2. This will return
the
holiday dates for the employee in A2:

=IF(COLUMNS($C2:C2)$B2,"",SMALL(IF(INDEX($C$7:$I$ 10,MATCH($A2,$B$7:$B$10,0),0)="x",$C$6:$I$6),COLUM NS($C2:C2)))

Format as Date

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Here's a small sample file that demonstrates this.

Sample1.xls 14kb

http://cjoint.com/?dfeImjWlgF

--
Biff
Microsoft Excel MVP


"terilad" wrote in message
...
Yes, ok will try that one.

Can you give me a formula for it?

Regards

Mark

"T. Valko" wrote:

This would be easier to do (with a formula) if you put each date in a
separate cell.

Interested in that method?

--
Biff
Microsoft Excel MVP


"terilad" wrote in message
...
Hi,

I need help with a problem.

I have a range of cells C6 to I6 tith the date in them Mon to Sun,
below
these cells I have input in some of the cell an X to mark the days a
person
is taking a holiday. so Wed, Thurs, Fri the cells below are marked
with
an X
to indicate a holiday, what I am looking to do is report on another
sheet
the
dates of the holiday this person is taking, so it would report 10th,
11th
and
12th Feb 2010 in cell A1 to indicate the dates of the holiday.

Can anyone help me with this i'm stuck.

Many thanks

Mark



.



.



 
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
Formula in Macro nc Excel Discussion (Misc queries) 2 July 19th 09 10:00 AM
Possible Macro or formula ash3154 Excel Discussion (Misc queries) 2 February 8th 09 01:58 PM
Macro formula help El Bee Excel Worksheet Functions 5 October 20th 08 04:16 PM
Formula or Macro help?... Klee Excel Discussion (Misc queries) 0 July 28th 07 06:52 PM
how to run a macro from a formula? davidhub Excel Discussion (Misc queries) 2 July 5th 05 02:42 PM


All times are GMT +1. The time now is 09:11 AM.

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

About Us

"It's about Microsoft Excel"