+ Reply to Thread
Results 1 to 4 of 4

Return Unique Sequence of Data

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    iran
    MS-Off Ver
    2013
    Posts
    32

    Return Unique Sequence of Data

    Hi
    I have a sequence of data in Range A2:A25 and its Sales in B2:B25
    I want to write a formula that return unique sequences like example and then return related average
    using temp cells is forbidden but using name manager is allowed.
    Thanks
    Attached Files Attached Files
    Last edited by ieumts; 02-09-2021 at 02:49 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return Unique Sequence of Data

    This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see.

    That said the sequential values you show in column A are NOT unique. By disallowing helper cells I can't see any simple way in which Excel can identify the different sequences containing the same value. Your brain knows, but your brain is a mass of helper cells :-)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Return Unique Sequence of Data

    I find it hard to believe that this is NOT coursework, given the similarity of this post:

    https://www.excelforum.com/excel-for...nce-value.html
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Return Unique Sequence of Data

    In I2, copied down:
    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$25)/(T(IF($A$2:$A$25<>$A$1:$A$25,$A$2:$A$25))<>""),ROWS(I$2:I2))),"")

    in J2,copied down:
    =IFERROR(AVERAGE(INDEX($B:$B,AGGREGATE(15,6,ROW($A$2:$A$25)/(T(IF($A$2:$A$25<>$A$1:$A$25,$A$2:$A$25))<>""),ROWS(J$2:J2))):INDEX($B:$B,AGGREGATE(15,6,ROW($A$2:$A$25)/(T(IF($A$2:$A$25<>$A$3:$A$26,$A$2:$A$25))<>""),ROWS(J$2:J2)))),"")
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 02-09-2021 at 01:23 PM.

+ 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. Find data based off unique identifiers and return only columns showing data
    By yomamma34 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-23-2014, 05:03 PM
  2. [SOLVED] Creating Unique Number Sequence
    By CCSLBuckles in forum Excel General
    Replies: 3
    Last Post: 10-12-2014, 12:16 AM
  3. Return Unique data using mutliple but same ID in V - Look up. Help!!!!
    By Azael in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2013, 03:27 PM
  4. Duplicate unique ID and concatenate data with loop sequence
    By lalagirl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2013, 01:44 AM
  5. return data for last record in sequence by row
    By tinkerbelle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2010, 09:39 AM
  6. unique number sequence
    By stormrider in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-05-2007, 02:25 PM
  7. Macro for a unique sequence number
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2005, 08:45 PM

Tags for this Thread

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