View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
JP[_4_] JP[_4_] is offline
external usenet poster
 
Posts: 897
Default Select data from list without duplicates on a certain criteria

You would use the MATCH formula to return the row where the date is
found, then the COUNTA formula to count the number of instances of
each letter pair.

For example, if cell A1 on Sheet 2 contains the dropdown, and you
select "17.10.08", then this formula would return the row where it was
found on Sheet 1:

=MATCH(A1,Sheet1!A1:A3,0)

and this formula builds on that to count how many "AA" are in that
row:

=COUNTIF(OFFSET(Sheet1!A1,B1-1,0,1,6),"AA")


The formulas above are based on the sample data you provided in your
original post.


--JP

On Oct 16, 9:10*am, Niju David
wrote:
Dear JP,
The sample output would be like, when i select 17.10.08 in another sheet it
should show

AA-2
BB-1
CC-1
DD-1

If i select 18.10.08 then it should show

AA-3
CC-1

Hope this is clear

Thank you



"JP" wrote:
Can you show a sample of the output you expect?


--JP


On Oct 16, 5:08 am, Niju David
wrote:
Kindly Help!!!


In Sheet 1 I have the following data


Clmn A * * * * *1 * * * *2 * * 3 * * 4 * * 5
16.10.08 * * AA * * BB *CC * BB *AA
17.10.08 * * CC * * DD *AA *AA *BB
18.10.08 * * BB * * *AA *CC *AA *AA


In Sheet 2 I have a drop down list of dates. When I choose a certain date I
want excel to display the items in that particular date (without duplicates)
and the number of times that item is present.- Hide quoted text -


- Show quoted text -