+ Reply to Thread
Results 1 to 4 of 4

Macro to display list of unique data from spreadsheet

Hybrid View

  1. #1
    Registered User
    Join Date
    10-06-2008
    Location
    uk
    Posts
    2

    Macro to display list of unique data from spreadsheet

    Hi,

    Im trying to get some info from a spreadsheet automatically using a macro but after 2 weeks i have to beg for help.

    Im trying to display each unique reg number from col "reg" from cell t1 onwards. In cell t2 onwards i want to put the difference between the highest value in the "odo" column and the lowest for each reg.

    any help or pointers would be a great help.

    PC
    Attached Files Attached Files
    Last edited by VBA Noob; 02-04-2009 at 09:50 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to display list of unique data from spreadsheet

    Use Advanced Filter -> unique records only
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-06-2008
    Location
    uk
    Posts
    2

    Re: Macro to display list of unique data from spreadsheet

    Quote Originally Posted by royUK View Post
    Use Advanced Filter -> unique records only
    Thanks roy, that has helped me with the unique reg value. Any idea how i can acheive the second part?

    PC

  4. #4
    Forum Contributor
    Join Date
    07-24-2008
    Location
    Athome
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: Macro to display list of unique data from spreadsheet

    here's a solution for you.
    1. use advanced filter to get unique reg nrs.
    2. paste the reg nrs. to be column headers.
    3. used if formula to pull odo readings relating only to those reg nrs.
    4. used max and min formulas to work out the diff that you're looking for.
    Attached Files Attached Files

+ 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