ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   generating list of data from frequencies (https://www.excelbanter.com/excel-discussion-misc-queries/211437-generating-list-data-frequencies.html)

kalik00

generating list of data from frequencies
 
I have a frequency matrix for numeric categories. Some of the frequencies are
very large (1000s) and I want to generate a list of data with the category
value repeated the number of times it occurs in the data set (i.e. if "5" is
category and frequency is 1543 then I want 1,543 "5"s in a column. Any ideas?

Sheeloo[_3_]

generating list of data from frequencies
 
If your category is in A1 and frequency in B1 then enter this in C1
=REPT(TEXT(A1,"@"),B1)
and copy down... It will work subject to maximum characters in a cell.


"kalik00" wrote:

I have a frequency matrix for numeric categories. Some of the frequencies are
very large (1000s) and I want to generate a list of data with the category
value repeated the number of times it occurs in the data set (i.e. if "5" is
category and frequency is 1543 then I want 1,543 "5"s in a column. Any ideas?


Sheeloo[_3_]

generating list of data from frequencies
 
From Excel HELP

The result of the REPT function cannot be longer than 32,767 characters, or
REPT returns #VALUE!.


"kalik00" wrote:

I have a frequency matrix for numeric categories. Some of the frequencies are
very large (1000s) and I want to generate a list of data with the category
value repeated the number of times it occurs in the data set (i.e. if "5" is
category and frequency is 1543 then I want 1,543 "5"s in a column. Any ideas?



All times are GMT +1. The time now is 10:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com