![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
i have atable of almost 6000 numbers (6x5 table). Each number is between 1-99. I would like to know how many times a number appears in the table. I don't care how the results appear.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,512
|
Suppose all those numbers will appear in Column A....
=COUNTIF(A:A,99) or =COUNTIF(A2:A6000,99)
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 6
|
THE TABLE IS SET UP IN A 6 COLUNM(A-F) x 979 ROWS. There is acutually 5874 numbers. The table keeps on growing on a weekly basis.
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Activate the option Insert|Name|Define. Enter DataRecs as name in the Names in workbook box. Enter as formula in the Refers to box: MATCH(9.99999999999999E+307,x!$A:$A) Activate Add. Enter DATA as name in the Names in workbook box. Enter as formula in the Refers to box: =OFFSET(x!A2,0,0,DataRecs-1,6) Activate OK. Note. Change x to the name of the sheet where your numbers are. The OFFSET formula assumes that your data grow downwards. In column A in a different sheet, in A2 enter: 1 in A3 enter: 2 Select A2:A3 and copy down until the number 99 appears. In B2 enter: =COUNTIF(DATA,B2) Double click on the fill handle of B2 in order to copy down the formula. Aladin |
|
|
|
|
|
|
#5 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi ms5435
A very simple Pivot Table based on a Dymnamic range: http://www.ozgrid.com/Excel/DynamicRanges.htm Would be ideal for this. |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
{=FREQUENCY(range,ROW(INDIRECT("1:99")))} ...where "range" is the cell reference of your 2-dimensional table. Note: Array formulas must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. [ This Message was edited by: Mark W. on 2002-04-08 07:06 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|