returning a value if multiple criteria are true

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
85
Office Version
  1. 365
Platform
  1. Windows
hours log.xlsx
ABCDEFGHIJKLMNOPQRST
14/26/2024
2DaydatenotesColumn2ROstatusSUMDaignosisCODEJOBFLAG TIMEADJUSTMENTColumn1
3Monday4/22/20246208395g1.0  1don’t countWaitingincorect
4Tuesday4/23/20246209405g0.2window molding  0.2000
5Monday4/22/20246209839g1.0  1TotalNot VerifyedVerifyed
6Saturday4/20/20246209943g1.0kkey164.110.253.9
7Monday4/22/20246209944g0.5  0.5
8Monday4/22/20246209944g0.5  0.5DayHoursAverage
9Monday4/22/20246209944g1.5  1.5xMonday8.615.775
10Wednesday4/24/20246209974g0.1afair filter0.1xTuesday15.3
11Wednesday4/24/20246209974g0.2cfcabin filter0.2xWednesday29
12Wednesday4/24/20246209974g0.5tsTrans service0.5xThursday0
13Wednesday4/24/20246209974g0.7bsBrake Service0.8-0.1xFriday0
14Wednesday4/24/20246209974g1.0csCoolant Service1Saturday1
15Wednesday4/24/20246209974g1.5brturn rotors1.5
16Wednesday4/24/20246209974g3.0  3xToday 10.2
17Monday4/22/20246209996g0.7  0.7
18Monday4/22/20246209996g1.4  1.4
19Tuesday4/23/20246209999g0.7propropack0.7
20Tuesday4/23/20246209999g1.4pdipdi1.4
21Monday4/22/20246210011g2.09ts9speed 2
22Tuesday4/23/20246210012g1.0head light rest  1
23Tuesday4/23/20246210012g2.0ps pump  2
24Tuesday4/23/20246210012g10.0oil pump  10
25Wednesday4/24/20246210042g0.1  0.1
26Wednesday4/24/20246210042g0.2af 0.2
27Wednesday4/24/20246210042g0.3cf 0.3XIncorrect
28Wednesday4/24/20246210042g4.0  4GVerifyed
29Wednesday4/24/20246210042g6.0  6WWaiting
30Wednesday4/24/20246210094g1.5  1.5NDon’t Count
31Wednesday4/24/20246210094g3.0  3cNeed to check
32Wednesday4/24/20246210178g1.4pdipdi1.4nfclosed not flaged
33Wednesday4/24/20246210185g2.0adas  2wtfWrong tech flaged
34Wednesday4/24/20246210185g2.0  2
35Wednesday4/24/20246210192g1.5  1.5
36Friday4/26/202462098471.0dDiag1
37Friday4/26/202462101822.0  2
38Friday4/26/2024622099753.0  3
39Friday4/26/202462103261.4PDIpdi1.4
40Friday4/26/202462103260.7PROpropack0.7
41Friday4/26/202462103241.4PDIpdi1.4
Log
Cell Formulas
RangeFormula
A1A1=TODAY()
C4,C35:C41,C30:C33,C19:C24,C10:C16,C6C4=IF([@RO]<>"",IF(C4="",TODAY(),C4),"")
P4P4=SUMIF(G:G,"N",H:H)+SUMIF(G:G,"cnf",H:H)
Q4Q4=SUMIF(G:G,"w",H:H)
R4R4=SUMIF(G:G,"x",H:H)
P6P6=SUM(H:H,)-SUMIF(G:G,"N",H:H)-SUMIF(G:G,"nf",H:H)-Q2
Q6Q6=SUMIF(G:G,"",H:H)+SUMIF(G:G,"c",H:H)
R6R6=SUMIF(G:G,"G",H:H)-Q2
R9R9=AVERAGEIFS(Q9:Q16,Q9:Q16,">0",O9:O16,"X")
Q9:Q14Q9=SUMIFS($H$3:$H$280,$B$3:$B$280,P9,$C$3:$C$280,"<"&A$1)
Q16Q16=SUMIF($C$3:$C$280,A1,$H3:$H280)
K3:K25,K28:K41K3=IF(J3="","",INDEX($AA$3:$AA$91,MATCH(J3,$Z$3:$Z$91,0),1))
L3:L41L3=IF(K3="","",INDEX($AB$3:$AB$91,MATCH(J3,$Z$3:$Z$91,0),1))
B3:B41B3=IFERROR(TEXT(WEEKDAY($C3),"Dddd"),"")
H3:H41H3=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E3:E280Expression=(E3="")*(F3<>"")textNO
E3:E280Expression=(E3="x")*(F3<>"")textNO
Q30,Q77Expression=COUNTIF(AG:AG,Q30)>0textNO
M22:M52,F3:F280Expression=COUNTIF(W:W,F3)>0textNO
G3:G280Cell Value=$P$33textNO
I5:I7Cell Value=$P$32textNO
I5:I7Cell Value=$P$31textNO
I5:I7Cell Value=$P$30textNO
I5:I7Cell Value=$P$29textNO
I5:I7Cell Value=$P$28textNO
I5:I7Cell Value=$P$27textNO
I19Cell Value=$P$32textNO
I19Cell Value=$P$31textNO
I19Cell Value=$P$30textNO
I19Cell Value=$P$29textNO
I19Cell Value=$P$28textNO
I19Cell Value=$P$27textNO
G3:G280Cell Value=$P$32textNO
G3:H280Cell Value=$P$31textNO
G3:H280Cell Value=$P$30textNO
G3:H280Cell Value=$P$29textNO
G3:H280Cell Value=$P$28textNO
G3:H280Cell Value=$P$27textNO
H3:H280Expression=" =COUNTIFS(D:D,A1,E:E,J2)>0"textNO
H3:H280Expression=COUNTIFS(W:W,F3,X:X,H3)>0textNO
M3:O5,N6:O7Expression=COUNTIFS(XFA:XFA,L3,XFC:XFC,M3)>0textNO
F28:F38Expression=COUNTIF(XEU:XEU,F28)>0textNO

i am wanting to have a formula in column E that if column F has a value in it and column G is blank then the cell in E returns "X" and if f has a value and G is G has "G" then E is blank and if both F and G are blank then Eis blank. any help would be appreciated
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
formula in column E
if column F has a value in it and column G is blank then the cell in E returns "X"
if f has a value and G has "G" then E is blank
if both F and G are blank then Eis blank.

how about
in E3 - copied down
=IF( OR(AND( F3="",G3=""),AND(F3<>"",G3="G")), "", IF( AND(F3<>"", G3=""), "X", "Criteria NOT met"))


added to xl2bb
Book2
ABCDEFGHIJKLMNOPQR
14/26/24
2DaydatenotesColumn2ROstatusSUMDaignosisCODEJOBFLAG TIMEADJUSTMENTColumn1
3Monday45404 6208395g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  1don’t countWaitingincorect
4 =IF([@RO]<>"",IF(C4="",TODAY(),C4),"") 6209405g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])window molding  0.2000
5Monday45404 6209839g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  1TotalNot VerifyedVerifyed
6 =IF([@RO]<>"",IF(C6="",TODAY(),C6),"") 6209943g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])k#N/A#N/A000
7Monday45404 6209944g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  0.5
8Monday45404 6209944g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  0.5DayHoursAverage
9Monday45404 6209944g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  1.5xMonday0#DIV/0!
10 =IF([@RO]<>"",IF(C10="",TODAY(),C10),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])af#N/A#N/AxTuesday0
11 =IF([@RO]<>"",IF(C11="",TODAY(),C11),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])cf#N/A#N/AxWednesday0
12 =IF([@RO]<>"",IF(C12="",TODAY(),C12),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])ts#N/A#N/AxThursday0
13 =IF([@RO]<>"",IF(C13="",TODAY(),C13),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])bs#N/A#N/A-0.1xFriday0
14 =IF([@RO]<>"",IF(C14="",TODAY(),C14),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])cs#N/A#N/ASaturday0
15 =IF([@RO]<>"",IF(C15="",TODAY(),C15),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])br#N/A#N/A
16 =IF([@RO]<>"",IF(C16="",TODAY(),C16),"") 6209974g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  3xToday 0
17Monday45404 6209996g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  0.7
18Monday45404 6209996g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  1.4
19 =IF([@RO]<>"",IF(C19="",TODAY(),C19),"") 6209999g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])pro#N/A#N/A
20 =IF([@RO]<>"",IF(C20="",TODAY(),C20),"") 6209999g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])pdi#N/A#N/A
21 =IF([@RO]<>"",IF(C21="",TODAY(),C21),"") 6210011g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])9ts#N/A#N/A
22 =IF([@RO]<>"",IF(C22="",TODAY(),C22),"") 6210012g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])head light rest  1
23 =IF([@RO]<>"",IF(C23="",TODAY(),C23),"") 6210012g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])ps pump  2
24 =IF([@RO]<>"",IF(C24="",TODAY(),C24),"") 6210012g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])oil pump  10
25Wednesday45406 6210042g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  0.1
26Wednesday45406 6210042g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])af 0.2
27Wednesday45406 6210042g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])cf 0.3XIncorrect
28Wednesday45406 6210042g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  4GVerifyed
29Wednesday45406 6210042g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  6WWaiting
30 =IF([@RO]<>"",IF(C30="",TODAY(),C30),"") 6210094g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  1.5NDon’t Count
31 =IF([@RO]<>"",IF(C31="",TODAY(),C31),"") 6210094g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  3cNeed to check
32 =IF([@RO]<>"",IF(C32="",TODAY(),C32),"") 6210178g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])pdi#N/A#N/Anfclosed not flaged
33 =IF([@RO]<>"",IF(C33="",TODAY(),C33),"") 6210185g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])adas  2wtfWrong tech flaged
34Wednesday45406 6210185g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  2
35 =IF([@RO]<>"",IF(C35="",TODAY(),C35),"") 6210192g=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  1.5
36 =IF([@RO]<>"",IF(C36="",TODAY(),C36),"")X6209847=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])d#N/A#N/A
37 =IF([@RO]<>"",IF(C37="",TODAY(),C37),"")X6210182=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  2
38 =IF([@RO]<>"",IF(C38="",TODAY(),C38),"")X62209975=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])  3
39 =IF([@RO]<>"",IF(C39="",TODAY(),C39),"")X6210326=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])PDI#N/A#N/A
40 =IF([@RO]<>"",IF(C40="",TODAY(),C40),"")X6210326=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])PRO#N/A#N/A
41 =IF([@RO]<>"",IF(C41="",TODAY(),C41),"")X6210324=SUMIF(Table1112933[@[FLAG TIME]:[ADJUSTMENT]],"<>",Table1112933[@[FLAG TIME]:[ADJUSTMENT]])PDI#N/A#N/A
Sheet2
Cell Formulas
RangeFormula
A1A1=TODAY()
P4P4=SUMIF(G:G,"N",H:H)+SUMIF(G:G,"cnf",H:H)
Q4Q4=SUMIF(G:G,"w",H:H)
R4R4=SUMIF(G:G,"x",H:H)
P6P6=SUM(H:H,)-SUMIF(G:G,"N",H:H)-SUMIF(G:G,"nf",H:H)-Q2
Q6Q6=SUMIF(G:G,"",H:H)+SUMIF(G:G,"c",H:H)
R6R6=SUMIF(G:G,"G",H:H)-Q2
R9R9=AVERAGEIFS(Q9:Q16,Q9:Q16,">0",O9:O16,"X")
Q9:Q14Q9=SUMIFS($H$3:$H$280,$B$3:$B$280,P9,$C$3:$C$280,"<"&A$1)
Q16Q16=SUMIF($C$3:$C$280,A1,$H3:$H280)
K3:K25,K28:K41K3=IF(J3="","",INDEX($AA$3:$AA$91,MATCH(J3,$Z$3:$Z$91,0),1))
L3:L41L3=IF(K3="","",INDEX($AB$3:$AB$91,MATCH(J3,$Z$3:$Z$91,0),1))
B3:B41B3=IFERROR(TEXT(WEEKDAY($C3),"Dddd"),"")
E3:E41E3=IF( OR(AND( F3="",G3=""),AND(F3<>"",G3="G")), "", IF( AND(F3<>"", G3=""), "X", "Criteria NOT met"))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,798
Messages
6,181,038
Members
453,013
Latest member
Shubashish_Nandy

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