+ Reply to Thread
Results 1 to 6 of 6

Collecting sparse values

  1. #1
    Registered User
    Join Date
    11-09-2007
    Posts
    5

    Collecting sparse values

    Hello,

    Sorry for the cryptic title. My problem is this - I have a large column of values, measurements made every 10 minutes. I have managed to get excel to average each hours worth of measurments in a second column for me. As i'm sure you can imagine this column is sparsely populated, only one value every 6 rows. What i would like to do is have another sheet collect these sparse values into a table. eg.

    FROM

    time value average
    14:00 2
    14:30 3 2.5
    15:00 4
    15:30 5 4.5
    16:00 6
    16:30 7 6.5

    TO

    time average
    14:30 2.5
    15:30 4.5
    16:30 6.5

    I can do this manually but i have a lot of data. In the past I've used python to create scripts to process my data, but it helps to keep it all in excel. Also, if possible, i'd like to stay away from VB.

    Thanks a lot.

    Pete

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    try using auto filter, select non blanks from dropdown in average column
    select all, use select visible cells button, copy paste to new sheet.(visible cells button is found by right click tool bar/customise/comands/edit scroll to botom and its the symbol that looks like 4 black square boxes ,drag to toolbar)

  3. #3
    Registered User
    Join Date
    11-09-2007
    Posts
    5
    I'll try that now. Thanks

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    Or use a pivot table for your data - which will automatically average according to additional time periods you choose.

    See attached...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-09-2007
    Posts
    5
    Wow, thanks Charlie. Pivot tables seem really powerful.

    I have a couple of issues that I don't seem to be able to solve:

    1 - getting the layout I need.
    The attached xls has an example dataset, the pivot table I have managed to create and an example of how I would like it to look. I don't see any obvious way of getting it like that

    2
    The data I am working with is sound pressure levels, decibel scale. Therefore the values need to be linearised before thay are averaged. eg.

    {10*log10(average(10^(0.1*RA:NGE)))}

    Is it possible to ask a pivot table to linearise values, average them, then re-log the result?

    Thanks again,
    Pete.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-09-2014
    Location
    Pale Blue Dot
    MS-Off Ver
    2013
    Posts
    1

    Re: Collecting sparse values

    I had a similar situation where my values were sparse in a column because of how I had processed some data. My solution was to use the if and match commands to return the column of each cell. I then copy and pasted the values of cell positions into a new column and sorted that column from A to Z. In this instance I didn't need the values from cells corresponding to those column numbers; however, if one did they might use the index command.

    Here is the the excel workbook containing the aforementioned solution: Dealing_with_Sparse_Columns_in_Excel(Fixed).xlsx

    Hope that helps.
    -Scott

    P.S. Disregard the below attachment use the fixed one above
    Attached Files Attached Files
    Last edited by Scott Booth; 12-09-2014 at 02:00 AM.

+ 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. Userform's listbox values depending on values on certain matrix
    By Juhanen II in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-19-2008, 08:01 AM
  2. Subtotal unique values in autofiltered field
    By 1eyedjack in forum Excel General
    Replies: 1
    Last Post: 06-28-2008, 12:39 AM
  3. Calculate series of numbers with different values
    By caldera55 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2008, 06:08 PM
  4. Import and export a text document
    By Odysseus in forum Excel General
    Replies: 0
    Last Post: 01-10-2008, 10:41 AM
  5. Adding Row Values depending on Corresponding Rows
    By chr5648 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2007, 05:26 PM

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