Count if with multiple condition.

avisoft20

Board Regular
Joined
Sep 10, 2016
Messages
64
[TABLE="width: 139"]
<tbody>[TR]
[TD]Dear Sir,

I want to count state wise status of billed or not billed,i am applying countifs but its not working.

Example
SHEET:1

[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD="align: center"]State[/TD]
[TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD]ASSAM[/TD]
[TD]BILLED[/TD]
[/TR]
[TR]
[TD]ASSAM[/TD]
[TD]NOT BILLED[/TD]
[/TR]
[TR]
[TD]ASSAM[/TD]
[TD]BILLED[/TD]
[/TR]
[TR]
[TD]CHANDIGARH[/TD]
[TD]BILLED[/TD]
[/TR]
[TR]
[TD]CHANDIGARH[/TD]
[TD]NOT BILLED[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


ANS:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]COUNT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]STATE[/TD]
[TD="align: center"]BILLED[/TD]
[TD="align: center"]NOT BILLED[/TD]
[/TR]
[TR]
[TD="align: center"]ASSAM[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]CHANDIGARH[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
</tbody>[/TABLE]



thank you
Avinash kr singh
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi, not sure what you tried exactly but COUNTIFS() should be what you need..:


Excel 2013/2016
ABC
1STATEBILLEDNOT BILLED
2ASSAM21
3CHANDIGARH11
Sheet2
Cell Formulas
RangeFormula
B2=COUNTIFS(Sheet1!$A:$A,$A2,Sheet1!$B:$B,B$1)



Excel 2013/2016
AB
1StateStatus
2ASSAMBILLED
3ASSAMNOT BILLED
4ASSAMBILLED
5CHANDIGARHBILLED
6CHANDIGARHNOT BILLED
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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