LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional Arrays

I have a holiday sheet and am trying to sum the total days taken each month
in columns H to AL based on the contracted hours in columns B to F

CONTRACTED HOURS DAYS OF MONTH
A B C D E F G H I J K L
M ~ AL AQ

1 WEEKDAY 2 3 4 5 6 5 6 7 1 2 3 ~ 4
2 STAFF Mo Tu We Th Fr Total 1 2 3 4 5 6 ~ 31
TOTAL
3 John 9 9 8 7 7 40 7 7 9
3.285
4 Sam 8 8 8 8 8 40 8 8 8 4
3.5

In row 1 above the days of the week for the contracted hours and the days of
the month I have the weekday number (Su=1 to Sa=7).This is used to compare
the day taken against the contract.

In the example above Sam is calculated correctly as he works the same hours
each day buy John works different hours per day so instead of the total being
3 it is 3.285714

I am using the following formula entered as an Array in Cell AQ3 and the
dragged down.

=SUM(H3:AL3/HLOOKUP($H$1:$AL$1,$B$1:F3,ROW(A3)))

I think this due to a range being entered instead of a constant but Excel
doesnt reject it and it is basing the calculation on the first day of the
month. I have tried variations of INDEX, MATCH & SUMIF formulas but I have
hit a brick wall...any help would be greatly appreciated.
 
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
Arrays Abdul Shakeel Excel Worksheet Functions 1 December 12th 08 10:24 AM
Conditional arrays within SUMPRODUCT Phil H[_2_] Excel Worksheet Functions 0 August 15th 08 10:39 PM
Conditional w/ arrays PAL Excel Worksheet Functions 2 October 24th 07 02:53 AM
Fantasy Football Conditional Arrays altopalo Excel Worksheet Functions 4 May 8th 06 05:08 AM
Arrays [email protected] Setting up and Configuration of Excel 3 February 18th 05 02:43 AM


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