#1
|
|||
|
|||
Create a formula to count all occurances of HH but multiply by 0.5 first
Hi,
I have a spreadsheet with various cells that either have H or HH (and also S or SS). The double letter represents half a day sick (S) or half a day holiday (H) and the single letter represents the full day. I have a formula in my totals cell which currently counts all H's =COUNTIF(D21:CT26,"H") This is working fine. What I now need to add to the formula is that within the same criteria (D21:CT26) it finds all HH data in the same set of cells, multiplies them by 0.5 to make it a half day, and adds these to the same cell where the above formula is already in (my total holiday days) I need to only multiple the HH before they get added up and combined with the H totals. Thanks |
#2
|
|||
|
|||
=countif((d21:ct26,"h")+countif((d21:ct26,"hh")*0. 5
|
#3
|
|||
|
|||
I'm afraid I still get an error message trying this formula. Thanks
|
#4
|
||||
|
||||
Which error message please?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#5
|
|||
|
|||
Somehow, it appears a few extraneous parentheses were added above. Try this...
=countif(d21:ct26,"h")+countif(d21:ct26,"hh")*0.5 |
#6
|
|||
|
|||
Yay that worked! Thank you so much!!
|
#7
|
|||
|
|||
Count full and half Holidays
Dear Stupidgirl,
Attached is the simulated sample of count full and half Holiday. I hope it solves your problem. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Logic formula to only count patient once, even though they are listed multiple times | Carol Salcido | Excel | 17 | 02-26-2014 03:57 PM |
Word Count Formula | clau_dos | Word VBA | 1 | 08-27-2013 02:05 PM |
Formula to count entries as per month, year and submission wise from different sheets | pinkacidpunk | Excel | 1 | 05-28-2013 08:26 AM |
multiply by incrementing by 5s | marynomore | Excel | 2 | 03-27-2013 05:36 AM |
Count If Formula | beb1227 | Excel | 10 | 06-19-2011 11:19 AM |