Count IF Counting a values in a row, but only if two other rows have specific values.

xryanx

Board Regular
Joined
Jul 30, 2015
Messages
61
I hope that I ask this correctly.

In the first table B5 needs to equal the count of all in B31:B200, but only for the same value as in A5. I currently have this formula: =COUNTIF(B31:B218, A5)

But now I have a problem, I need that to be true only if the cell in column C in the same row number is FR.
Ex: B32 = DR
B35 = DR
C32 = FR
C35 = FR
That combination is how B7 has a value of 2. IF C35 were to change to CB, then B7 would change to 1.

Any help is appreciated. Thank you



ABCDEFG

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]5[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]R [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]$60.00[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]$60.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]6[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]RK[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]$65.00[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]$65.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]7[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]DR[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]2[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]$380.00[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]$380.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]8[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]HS[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]9[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"]BP[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CCCCFF]#CCCCFF[/URL] , align: center"] [/TD]

</tbody>


ABCDEFGHIJKLMN

<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"><col style="width: 68px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]30[/TD]
[TD="align: center"]Date[/TD]
[TD="align: center"]SP[/TD]
[TD="align: center"]Type (FR or CB)[/TD]
[TD="align: center"]Location[/TD]
[TD="align: center"]Date of Repair[/TD]
[TD="align: center"]Referral #[/TD]
[TD="colspan: 2, align: center"]Name[/TD]
[TD="colspan: 2, align: center"]Vehicle[/TD]
[TD="align: center"]Date of Replace [/TD]
[TD="align: center"]$$$ Full Replacement[/TD]
[TD="align: center"]$$$ Clawback[/TD]
[TD="align: center"]Days Since Repair[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]31[/TD]
[TD="align: center"]1/15/2018[/TD]
[TD="align: center"]JY[/TD]
[TD="align: center"]FR[/TD]
[TD="align: center"]308[/TD]
[TD="align: center"]12/8/2017[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2017 Ford Escape[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] "] [/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]32[/TD]
[TD="align: center"]1/23/2018[/TD]
[TD="align: center"]DR[/TD]
[TD="align: center"]FR[/TD]
[TD="align: center"]LV[/TD]
[TD="align: center"]12/16/2017[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2008 Ford Edge[/TD]
[TD="align: center"]1/25/2018[/TD]
[TD="align: center"]$190.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]33[/TD]
[TD="align: center"]1/23/2018[/TD]
[TD="align: center"]ID[/TD]
[TD="align: center"]FR[/TD]
[TD="align: center"]308[/TD]
[TD="align: center"]8/28/2017[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2016 Hyundai Santa Fe[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] "] [/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]34[/TD]
[TD="align: center"]1/23/2018[/TD]
[TD="align: center"]JY[/TD]
[TD="align: center"]FR[/TD]
[TD="align: center"]355[/TD]
[TD="align: center"]1/14/2018[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2009 Chevy T&C[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] "] [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] "] [/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]35[/TD]
[TD="align: center"]1/25/2018[/TD]
[TD="align: center"]DR[/TD]
[TD="align: center"]FR[/TD]
[TD="align: center"]LV[/TD]
[TD="align: center"]3/14/2017[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2010 Ford Edge[/TD]
[TD="align: center"]1/25/2018[/TD]
[TD="align: center"]$190.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]36[/TD]
[TD="align: center"]1/26/2018[/TD]
[TD="align: center"]RK[/TD]
[TD="align: center"]CB[/TD]
[TD="align: center"]NEL[/TD]
[TD="align: center"]6/22/2017[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2008 Jeek Cherokee[/TD]
[TD="align: center"]1/26/2018[/TD]

[TD="align: center"]$65.00[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]37[/TD]
[TD="align: center"]1/26/2018[/TD]
[TD="align: center"]R [/TD]
[TD="align: center"]CB[/TD]
[TD="align: center"]NEL[/TD]
[TD="align: center"]10/6/2016[/TD]

[TD="colspan: 2"] [/TD]
[TD="colspan: 3, align: center"]2016 Ford Escape[/TD]
[TD="align: center"]1/26/2018[/TD]

[TD="align: center"]$60.00[/TD]

</tbody>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Your requirement is not very clear but I think you can do what you want with the countifs function :
=COUNTIFS(B31:B218, A5,A31:a218,"FR")
 
Upvote 0
All I had to do was change A31:A218 to C31:C218. But that worked perfectly. I'm glad that you were able to decipher my question. Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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