+ Reply to Thread
Results 1 to 14 of 14

A straightforward question about organizing data in Excel

  1. #1
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    A straightforward question about organizing data in Excel

    I am working with the data in the attached excel file. This is a stock that is traded on an exchange. There is price for every trade. A deal is comprised of several trades. I want to find the average price PER DEAL (I can do this), and then to form a new column where I have the average price PER DEAL for every trade WITHIN the deal. Thanks very much in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel

    How about showing us a couple of the results you expect. Tell us what numbers are included in the averages.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: A straightforward question about organizing data in Excel

    I attach an updated file. Here you can see some of the results. If you look at deal 115, it consists of two trades: 156 and 157. Price is 68 for both, so the average is 68 also. Look also at trade 118, it consists again of two trades: trade 165 with price 67.95 and trade 166 with price 67.9. Here the average price is 67.925 and I want it for both trades as shown in the file
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel

    Maybe this...

    Entered in E2 and copied down:

    =AVERAGEIF(A:A,A2,D:D)

  5. #5
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: A straightforward question about organizing data in Excel

    Cannot express my gratitude.....THANKS!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel

    You're welcome!

  7. #7
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: A straightforward question about organizing data in Excel

    Can you help me with the final issue (again a very quick one I believe, but beyond my abilities). I attach the file. Basically what I need is to fill all the blanks between two values with the value above. I provide some examples in the file. Much appreciated!
    Attached Files Attached Files

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel


  9. #9
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: A straightforward question about organizing data in Excel

    For some reason Excel says : "No cells found" when I try to go to Special>Blanks>Ok. When I specified my columns, I used a formula and wrote "" for these cells in order to be blank, dont know if this might have an impact. Copying the columns to a new sheet (values only) does not make a difference

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel

    If the cells contain formulas then they are not blank (even if they look blank).

    Your sample file didn't contain any formulas, just empty cells and constant values.

    I'd have to see the formula to see if it can be modified to do what you want.

  11. #11
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: A straightforward question about organizing data in Excel

    The formula I used is:
    =IF(AND(L2=1,O2=1),R2,"")

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel

    I would need to see it in context in the file (or a SMALL sample file).

  13. #13
    Registered User
    Join Date
    04-28-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: A straightforward question about organizing data in Excel

    Problem solved!

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: A straightforward question about organizing data in Excel

    Good deal!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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