Excel で 2 つの列の特定の一致する値を見つける

Excel で 2 つの列の特定の一致する値を見つける

次のようなスプレッドシートがあります。その列 detection_BaP1 と detection_NT1 には Absent と Present があります。Absent と Present の新しい列 Global_detection を追加したいです。

detection_BaP1 と detection_NT1 の両方が「不在」の場合は Global_detection に「不在」を、そうでない場合は「存在」を記入します。

tracking_id coverage_BaP1   coverage_NT1    BaP1    NT1 FC        detection_BaP1    detection_NT1   Global_detection
NM_000028   1.06E-14    1.35E-44    1.65E-15    2.40E-45    6.87E+29   Absent   Absent  
NM_000041   1.50439 0.472338    0.26732 0.0828073   3.228217802 Present Absent  
NM_000055   0.0677437   0.135153    0.0103961   0.0236942   -2.27914314 Absent  Absent  
NM_000061   0.0315361   0.0939712   0.00967921  0.033096    -3.419287318    Absent  Absent  
NM_000067   112.34  204.529 17.5228 36.5017 -2.08309745 Present Present 
NM_000070   0.00346421  0.0089972   0.000629599 0.00174727  -2.775210888    Absent  Absent  
NM_000072   4.78E-08    2.81E-07    8.52E-09    6.28E-08    -7.368209171    Absent  Absent  
NM_000076   0.901573    0.452928    0.141912    0.0806631   1.759317457 Absent  Absent  
NM_000084   2.40985 0.252053    0.378136    0.0454107   8.327024248 Present Absent  
NM_000087   1.2429  1.7001  0.216543    0.360131    -1.663092319    Present Present 

誰かExcelでこれを行う方法を教えてもらえますか?

答え1

おそらくIF()と を使用する必要がありますAND():

=IF(AND(A2="Absent",B2="Absent"),"Absent","Present")

ここに画像の説明を入力してください

関連情報