sir need to know no of cells on particular and particular status

lathish

New Member
Joined
Feb 10, 2018
Messages
15
sir need to know one particular day three types of sales like closed,deliver,cancelled in huge sheet
[TABLE="width: 243"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD]date[/TD]
[TD]name [/TD]
[TD]status[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]Nancy[/TD]
[TD]delivered[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]Makbool[/TD]
[TD]delivered[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]VARADARAYA[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]Pradhyum[/TD]
[TD]cancelled[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]A[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]KISHORE KUMAR UBRANGALA[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]28 /1/2018[/TD]
[TD]K Prakash[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]28 /1/2018[/TD]
[TD]N VISWANATHAN[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]28 /1/2018[/TD]
[TD]K Prakash[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]28 /1/2018[/TD]
[TD]Prakash[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]28 /1/2018[/TD]
[TD]Wasim[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]ragul[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]BHUVANESHWARI[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]BHUVANESHWARI[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]Manu[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]BHASKAR[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]ragul[/TD]
[TD]Cancelled[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]ARULMOLI[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]MAHESH[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]SRINIVASAN A[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]Dr Gopalakrishna[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]

and result should come in this format
[TABLE="width: 324"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD]date[/TD]
[TD]cancelled[/TD]
[TD]delivered[/TD]
[TD]closed[/TD]
[/TR]
[TR]
[TD]29 /1/2018[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]28 /1/2018[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]27 /1/2018[/TD]
[TD]5[/TD]
[TD]0[/TD]
[TD]3

[/TD]
[/TR]
</tbody>[/TABLE]

this is just example i need to clear huge sheet
kindly let me know if possible
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If you don’t want to use a pivot table :
- Copy column A and paste to column E
- Remove duplicates from column E (Data/Data Tools)
- Enter Cancelled in F1, Delivered in G1, Closed in H1
- Enter in F2 =COUNTIFS($A:$A,$E2,$C:$C,F$1) and drag down and across

A macro based on these steps :
Code:
Sub Summary()
[E:H].ClearContents
[A:A].Copy [E:E]
[E:E].RemoveDuplicates Columns:=1, Header:=xlYes
[F1] = "Cancelled"
[G1] = "Delivered"
[H1] = "Closed"
Range([F2], Cells(Rows.Count, "E").End(xlUp)(1, 4)) _
    .Formula = "=COUNTIFS($A:$A,$E2,$C:$C,F$1)"
[E:H].Columns.AutoFit
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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