Not exactly. I need to accomplish this withouot user input. Bascially the
data for each worksheet will be imported from a text file. I have this set
up so that all they have to do is click the Refresh Data button. At that
point, the new text is imported, and I need this function to calculate the
unique values from a column in the newly imported text.
"mcwilsong" <(E-Mail Removed)> wrote in message
news:70497874-9430-4F79-AB7F-(E-Mail Removed)...
> Hi Medirate,
>
> I found this in Excel's help. Is this what you were looking for?
>
> Count the number of unique values by using a filter
> You can use the Advanced Filter to extract the unique values from a column
> of data and paste them to a new location. Then you can use the ROWS
function
> to count the number of items in the new range.
>
> Ensure that the first row in the column has a column header.
> On the Data menu, point to Filter, and then click Advanced Filter.
> In the Advanced Filter dialog box, click Copy to another location.
> If the range that you are counting is not already selected, delete any
> information in the List range box and then click the column (or select the
> range) that contains your data.
> In the Copy to box, delete any information in the box or click in the box,
> and then click a blank column where you want to copy the unique values.
> Select the Unique records only check box, and click OK.
> The unique values from the selected range are copied to the new column.
>
> In the blank cell below the last cell in the range, enter the ROWS
function.
> Use the range of unique values that you just copied as the argument. For
> example, if the range of unique values is B1:B45, then enter:
> =ROWS(B1:B45)
>
>
> "medirate" wrote:
>
> > I have a column of text where I need to count the unique values. The
column
> > of text is in another worksheet called Dist. The column of data may look
> > like this:
> >
> > 24509
> > 13450
> > 24509
> > 18709
> > 24509
> > 13450
> >
> > I have no idea what the column of data may contain beforehand, so I
can't do
> > a count of "24509", but I need the result to look like this:
> >
> > 24509 3
> > 13450 2
> > 18709 1
> >
> > Any suggestions?
> >
> > Thanks!
> >
> >
> >
|