Formula to count if hours meet target and do not meet based

Lukma

Board Regular
Joined
Feb 12, 2020
Messages
240
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Friends

Please once again i am having issue around this formula in Cell W6 and X6
i have use sumifs formula to extract hours from L6 to Cell R6 upto V6 based criteria now i also need to count in Cell W6 and X6 that meet the target and do not meet based on criteria above target . which i have been help out with a formula that is useful to me , but my issue now is that it count the zero since there is a formula is all cell from R6 to V6 which i do not neet to count any Zero or Blank

Appreciate with an update solution to the formula X and Y not to count zero or blank Cell

Book2
BCDEFGHIJKLMNOPQRSTUVWX
1FullHalf
21610
301-Jan-21
4Island
5MonthIssued MonthMUS No.VesselVSLHalfRigs & ComplexSiteDate & Time Date & TimeSpentSupply Vessel'sP&D VSLVoyage Mus NoMsft PlanAsseifiya Island Ettouk Island Al Ghallan Island Umm Al AnbarBu Sikeen IslandMeetDo Not meet
601-Jan-21ADNOC-1010Asseifiya Island 04/11/20 08:1004/11/20 23:3015ADNOC-1010Half15000041
Sheet1
Cell Formulas
RangeFormula
L6L6=INT(TEXT(ABS(K6-J6),"[h]"))
R6R6=SUMIFS(L6:L7,I6:I7,R5,E6:E7,N6,B6:B7,B3)
S6:V6S6=IFERROR(SUMIFS('ILSP_Performance Tracking Data.xlsx'!Hours[#Data],'ILSP_Performance Tracking Data.xlsx'!Site[#Data],S5,'ILSP_Performance Tracking Data.xlsx'!Vessel[#Data],#REF!,'ILSP_Performance Tracking Data.xlsx'!Month[#Data],$C$5),"")
W6W6=IF($O6=$S$1,COUNTIFS($Q6:$V6,"<=" & $T$2),IF($O6=$T$1,COUNTIFS($Q6:$V6,"<=" & $S$2),""))
X6X6=IF($O6=$S$1,COUNTIF($R6:$V6,">" & $S$2),IF($O6=$T$1,COUNTIF($R6:$V6,">" & $T$2),""))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G5Cell Valuecontains "M"textNO
G5Cell Valuecontains "Naf"textNO
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Change formula at W6 to
Excel Formula:
=IF($O6=$S$1,COUNTIFS($Q6:$V6,"<=" & $T$2, $Q6:$V6,">" & 0),IF($O6=$T$1,COUNTIFS($Q6:$V6,"<=" & $S$2, $Q6:$V6,">" & 0),""))
AND X6 to
Excel Formula:
=IF($O6=$S$1,COUNTIF($R6:$V6,">" & $S$2, $R6:$V6,">" & 0),IF($O6=$T$1,COUNTIF($R6:$V6,">" & $T$2, $R6:$V6,">" & 0),""))

And edit formula at S6 it has #ref error for address.
 
Upvote 0
Solution
Maabadi

Thanks So much so great now i feel more relived with this am to glad my headache all gone

Appreciate
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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