+ Reply to Thread
Results 1 to 6 of 6

Count of date before and after max value

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Count of date before and after max value

    I have a sheet with about 1100 product IDs. Each ID has a certain volume that is recorded each day.
    I found the max volume for each ID. Now I would like to use a formula that will allow me to tag all the dates
    before the max volume with negative numbers(-1,-2,-3 etc...) and all the dates after the max volume with
    positives numbers(1,2,3,etc...).

    Any help will be appreciated. Thanks

    Please see attached file for an example.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Count of date before and after max value

    In D2 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In E2 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag both the formula's down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count of date before and after max value

    Wow, Works like a charm. Thanks a lot.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Count of date before and after max value

    I got the D2 as a CSE array formula of:

    Please Login or Register  to view this content.
    Maybe that will help shorten the E2 formula?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    02-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count of date before and after max value

    MarvinP, thanks for your reply.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Count of date before and after max value

    Quote Originally Posted by MarvinP View Post
    Maybe that will help shorten the E2 formula?
    Yes, surely that will reduce the formula length, but just wanted to avoid array

    Thanks for the rep too

+ 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