+ Reply to Thread
Results 1 to 5 of 5

Unique values * buy/sell * market ?

  1. #1
    Registered User
    Join Date
    02-24-2008
    Posts
    11

    Unique values * buy/sell * market ?

    Hey Guys!

    I´ve been trying to figure this out for 2 days.

    Attached file has 3 columns. a) market b)buy or sell c)price.

    QUESTION: In Madrid market - at how many unique prices did i buy stocks?


    this is what i´ve got so far(all these are arrays):
    =SUM(IF((IF(A:A="madrid",1,0))*(IF(B:B="buy",1,0)),1,0))
    It tells me that 25 buys were done in madrid.

    and

    This gives me the nr of unique values for column C which is 19.
    =SUM(IF(FREQUENCY(N:N,N:N)>0,1))

    But how do we combine these two things? I tried like this:
    =SUM((IF(((IF(A:A="madrid",1,0)))*(IF(B:B="buy",1,0)),1,0))*(IF(FREQUENCY(C:C,C:C)>0,1,0)))

    but... it gives N/A. I think its because the Frequency function gives one value too much, but i dont know.


    Any ideas? Maybe its a lot easier some other way?


    thanks in advance!!

    toorik
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER

    EDIT: I just realized you might also want only "buys" from Column B....

    try then:

    Please Login or Register  to view this content.
    Last edited by NBVC; 09-09-2008 at 08:45 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-24-2008
    Posts
    11
    It gives me the answer of 16 but the right nr of buys in unique levels done in madrid is 13.

    I dont quite understand your formula yet. so i dont know whats wrong. I cant see a word "buy" in that formula so how would it know to count only "buys"?


    so still looking...

    ps: i have office 2007. if that matters.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I edited my post to include "buy"

  5. #5
    Registered User
    Join Date
    02-24-2008
    Posts
    11
    seems to be working.

    so thanks a mil!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count Unique values with vlookup
    By gsrai31 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2011, 03:00 PM
  2. Subtotal unique values in autofiltered field
    By 1eyedjack in forum Excel General
    Replies: 1
    Last Post: 06-28-2008, 12:39 AM
  3. List of unique values from an array
    By scubohuntr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2008, 06:05 PM
  4. Function that will pull the unique values out of a column?
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2007, 09:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1