formula to assign number to other numbers in array

BSWJON

Board Regular
Joined
Mar 24, 2014
Messages
109
Office Version
  1. 365
Platform
  1. Windows
Right ladies and gents here is my question of the week!

I need to determine how many individual kiln charges have been carried out in a month. The kiln charge numbers take the form of a 5 digit code. This code is entered into column B whenever data attributed to that charge is entered into the database. Therefore working out how many charges have been done is not simply a matter of counting the number of cell values, as one charge may have data entered 3 times, another 6, another once, etc.

An example of the data:
[TABLE="width: 297"]
<tbody>[TR]
[TD]Kiln Charge[/TD]
[TD]kiln [/TD]
[TD]date out[/TD]
[TD]Month[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 297"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD="align: right"]11035[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]18/03/2014[/TD]
[TD]March[/TD]
[/TR]
[TR]
[TD="align: right"]11014[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]14/03/2014[/TD]
[TD]March[/TD]
[/TR]
[TR]
[TD="align: right"]11035[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]18/03/2014[/TD]
[TD]March[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]4[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]11035[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]18/03/2014[/TD]
[TD]March[/TD]
[/TR]
[TR]
[TD="align: right"]11014[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]14/03/2014[/TD]
[TD]March[/TD]
[/TR]
[TR]
[TD="align: right"]11035[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]18/03/2014[/TD]
[TD]March[/TD]
[/TR]
[TR]
[TD="align: right"]11011[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]13/03/2014[/TD]
[TD]March[/TD]
[/TR]
</tbody>[/TABLE]

So I am looking for a formula that counts the number of charges rather than the number of times a single charge has had data entered.

Off the back of this, I would like to display a chart showing how many charges of each pre-set charge length have occurred. I thought of just doing a chart which counted the number of charges and plotted them against cycle time data but again this doesnt work as it in fact counts all of the charge entries as single charges rather than grouping like charges.

I am probably not making any sense but if someone understands what I would like I would really appreciate the help.

Cheers

Jon
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about:
=SUM(IF(FREQUENCY(A2:A9,A2:A9)>0,1))
where your data (not including header is in a2:a9?
 
Upvote 0
I'll give that a crack, the charges are in column B so should it be B2:B9 etc etc?
 
Upvote 0
thank you DKaur, while your formula works well for knowing how many charges there are total, it doesn't physically number each charge.

Upon closer inspection the Rank formula works for me and what I need to do :)
 
Last edited:
Upvote 0
Jon

Would Excel's built-in Pivot Table feature produce what you want - as shown here in columns H:I?

Excel Workbook
BCDEFGHIJ
1Kiln Chargekilndate outMonthCount of date out
211035918/03/14MarchKiln ChargeTotal
311014414/03/14March110111
411035918/03/14March110142
54110354
611035918/03/14MarchGrand Total7
711014414/03/14March
811035918/03/14March
911011913/03/14March
10
PT
 
Upvote 0
That certainly shows me how many charges I have which is useful, more meaningful perhaps than just having the total generated by the formula.
 
Upvote 0

Forum statistics

Threads
1,224,265
Messages
6,177,533
Members
452,782
Latest member
ZCapitao

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