COUNTIF and cell matching the countif

beachsideaccounting

New Member
Joined
Jun 11, 2011
Messages
10
I am trying to make a formula and I have part of it down. Here is the working half. The time sheet has drop down lists with choices of 12 HR REG, 24 HR REG, etc. These are 12&24 hour shifts. The cell next to 12 HR REG (not always in the same cell) is the total number of hours (not always the same number). I would like to add to the COUNTIF the hour number. No two cells are ever the same. This is for a weighted average calculation on a paycheck. :confused:

=COUNTIF('Time Sheet'!B24:H30, "12 HR REG")
 
You have a string of decimals after the 12.56, which is why its calculating to 502.48. The value in B16 is 609.26/48.5 = 12.5620618.....

Expand the number of decimals on B16's formatting and you'll see it.

Make sense?
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Yes sir, is there a way to block that from happening? I have scoured the Excel 2010 In Depth book and I can't find anything. It has been 15 years since I touched excel.
 
Upvote 0
Wrap your existing formula in B16 with the round function:

Code:
=ROUND(*existing formula*,2)
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top