Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2016, 07:26 AM
stupidgirl stupidgirl is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 10 Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 32bit
Novice
Create a formula to count all occurances of HH but multiply by 0.5 first
 
Join Date: Jun 2016
Posts: 3
stupidgirl is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 06-13-2016, 07:37 AM
gebobs gebobs is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 7 64bit Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

=countif((d21:ct26,"h")+countif((d21:ct26,"hh")*0. 5
Reply With Quote
  #3  
Old 06-13-2016, 08:23 AM
stupidgirl stupidgirl is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 10 Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 32bit
Novice
Create a formula to count all occurances of HH but multiply by 0.5 first
 
Join Date: Jun 2016
Posts: 3
stupidgirl is on a distinguished road
Default

I'm afraid I still get an error message trying this formula. Thanks
Reply With Quote
  #4  
Old 06-13-2016, 10:11 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 7 64bit Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #5  
Old 06-13-2016, 01:04 PM
gebobs gebobs is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 7 64bit Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Quote:
Originally Posted by gebobs View Post
=countif((d21:ct26,"h")+countif((d21:ct26,"hh")*0. 5
Somehow, it appears a few extraneous parentheses were added above. Try this...

=countif(d21:ct26,"h")+countif(d21:ct26,"hh")*0.5
Reply With Quote
  #6  
Old 06-14-2016, 12:21 AM
stupidgirl stupidgirl is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 10 Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 32bit
Novice
Create a formula to count all occurances of HH but multiply by 0.5 first
 
Join Date: Jun 2016
Posts: 3
stupidgirl is on a distinguished road
Default

Yay that worked! Thank you so much!!
Reply With Quote
  #7  
Old 06-14-2016, 03:50 PM
KunleExcel KunleExcel is offline Create a formula to count all occurances of HH but multiply by 0.5 first Windows 8 Create a formula to count all occurances of HH but multiply by 0.5 first Office 2010 32bit
Novice
 
Join Date: Jun 2016
Location: Nigeria
Posts: 17
KunleExcel is on a distinguished road
Default Count full and half Holidays

Dear Stupidgirl,

Attached is the simulated sample of count full and half Holiday. I hope it solves your problem.
Attached Files
File Type: xlsx StupidGirl.xlsx (12.2 KB, 11 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a formula to count all occurances of HH but multiply by 0.5 first 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
Create a formula to count all occurances of HH but multiply by 0.5 first 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft