+ Reply to Thread
Results 1 to 6 of 6

Excel calculating based on new/unique row entry

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Excel calculating based on new/unique row entry

    Hello,

    Say I have this data set (very small representation of what i really have)

    1 2
    1 2.5
    1 4
    1 5
    2 7
    2 8
    3 5
    3 6
    3 7
    3 8

    I need to make excel recognize that whenever there is a new entry, say new entry 3, to calculate the difference between the maximum value from its corresponding column to its minimum. So in the case of entry 3, 8-5 =3. I can't have a pattern recognition since the number of times an entry stays at same value, is not constant.

    One thing to know, whenever there is a new row entry in column one, the first corresponding value will always be the lowest, and the last corresponding row will always be the largest.

    I appreciate any help on how I can program excel to carry this out (my actually data set has 5 columns, and 30,000 rows !)


    -Reza

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel calculating based on new/unique row entry

    will the entries always be numbered? as you have 11122333333
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Excel calculating based on new/unique row entry

    yes, the new rows will always have a number which will be repeatable a random amount of time.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel calculating based on new/unique row entry

    not sure but try maxif-minif arrays see attached may be a tad slow with 1000's of rows
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Excel calculating based on new/unique row entry

    Thank you for the reply
    I'm not quite sure if that solves.
    I need a value for each set of unique entries.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel calculating based on new/unique row entry

    get a list of unique entries using advanced filter then reference those

+ 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