LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default A formular to look up data and return dates

Hi Louis,

To keep it simple you'd need to use the COUNTIF function.

e.g.

With dates in row 1 starting at column A and staff names in column A
starting at row 1.
Enter the formulae =COUNTIF(B2:D2,"H") into cell E2 and
=COUNTIF(B2:D2,"S") into F2.
Copy these formulas down for the other staff members.
Blank cells and any cells containing anything other the H or S are
ignored.

14/12 15/12 16/12 Holidays Sick Days
Rob h s s 1 2
Mary h h 2 0
Kevin 0 0

NB The range B2:D2 works only for this example and will need to be
expanded for your version.

Hope this helps.
JF.

louiscourtney wrote:
I keep a spread sheet running that has dates along the top for each month and
names of staff down the side, if they take a holiday or are sick we enter "H"
or "S"
What i would like to have is a summery sheet that will list actual days
taken as sick or Holiday. So i assume maybe some sort of Lookup at looks for
the Letter H or S and then checks the date and then the name and returns a
date.
Is this possible?

Many thanks in advance for any help


 
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
Vlookup to Return a Range of Data James Excel Discussion (Misc queries) 0 July 13th 06 09:44 PM
Lookup & Return Range of Data shehasclass Excel Discussion (Misc queries) 2 April 6th 06 04:17 PM
Return Single Row of Numeric Data to Single Column Sam via OfficeKB.com Excel Worksheet Functions 4 December 17th 05 12:31 AM
Return result only if data complies. John Moore Excel Discussion (Misc queries) 3 November 8th 05 02:28 PM
Using a Vlookup to return values in a data list? rtjeter Excel Worksheet Functions 2 April 26th 05 05:56 AM


All times are GMT +1. The time now is 08:25 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"