![]() |
|
#1
|
|||
|
|||
![]()
Usually. it is a bad idea to mix in a table numbers and text
Maybe you can get rid of the "A" in this table, and your formula will work, with a little modification your formula evaluates the range , and counts how many cells are >0 (and no mattes what values you have in D9:AH9... =SUMPRODUCT(--(D9:AH9>0);--(WEEKDAY($D$3:$AH$3)=1)) that is why, you get 4 as the result, for excel the "A" cells are >0 , and the result means that there are 4 cells in the sum range for sunday... try instead of "A" leave the cells blank (and make your conditional formatting formula to mark the blanks with red), and remove >0 from formula, you will get the number of hours worked in sundays... try this: =SUMPRODUCT(--(D7:AH7);--(WEEKDAY($D$3:$AH$3)=1)) |
#2
|
|||
|
|||
![]()
@nutrastat: That works!
And yeah - The letters are actually causing the troubles with the formula. I'll see if I can change it without breaking something. Thanks all! |
#3
|
|||
|
|||
![]()
well, i guess you can mark your thread as solved...
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Daria11 | Word VBA | 1 | 06-08-2011 06:54 PM |
calculating points and division in excel | edward masoya | Excel | 1 | 05-09-2011 06:31 AM |
![]() |
jamierbooth | Excel | 2 | 02-22-2011 03:35 AM |
Calculating Form Fields in Microsoft Word | wubba80 | Word | 1 | 06-25-2010 12:42 AM |
Code to auto-forward weekend messages | Whang | Outlook | 0 | 06-16-2010 02:18 PM |