+ Reply to Thread
Results 1 to 5 of 5

Formula for finding Start, Stop, Highest and Lowest value

Hybrid View

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    norway
    MS-Off Ver
    2010
    Posts
    37

    Formula for finding Start, Stop, Highest and Lowest value

    Dear Excel pros!

    I want to find and extract the following information from a matrix:

    - The first registered value within a specific date ("Start")
    - The last registered value within a specific date ("Stop")
    - The highest registered value within a specific date
    - The lowest registered value within a specific date

    (This will look very much like a table of stock values).

    So I need the four formulas to find this information within a table ("'Table 1") and copy the data to a new table ("Table 2").

    Please see the attached file for more information.

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for finding Start, Stop, Highest and Lowest value

    e5=if(countif($B$5:$B5,$B5)=1,C5,"") and drag down

    f5=if(countif($B$5:$B5,$B5)=countif($B$5:$B11,$B5),D5,"")

    after that a pivot table.

    see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Formula for finding Start, Stop, Highest and Lowest value

    Try in...

    G5=INDEX(Tabell1[Start],MATCH([@Date],Tabell1[Date],0))

    H5=LOOKUP([@Date],Tabell1[Date],Tabell1[Stop])

    I5=MAX(OFFSET(Tabell1[[#Headers],[Start]],MATCH([@Date],Tabell1[Date],0),,COUNTIF(Tabell1[Date],[@Date]),2))

    J5=MIN(OFFSET(Tabell1[[#Headers],[Start]],MATCH([@Date],Tabell1[Date],0),,COUNTIF(Tabell1[Date],[@Date]),2))

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Formula for finding Start, Stop, Highest and Lowest value

    g5
    =INDEX(Tabell1[Start],MATCH(Tabell2[[#This Row],[Date]],Tabell1[Date],0))
    h5
    =INDEX(Tabell1[Stop],MATCH(Tabell2[[#This Row],[Date]],Tabell1[Date]))
    i5
    =MAX(INDEX((Tabell1[Date]=Tabell2[[#This Row],[Date]])*(Tabell1[[Start]:[Stop]]),0))
    j5
    =LARGE(INDEX((Tabell1[Date]=Tabell2[[#This Row],[Date]])*(Tabell1[[Start]:[Stop]]),0),COUNTIF(Tabell1[Date],Tabell2[[#This Row],[Date]])*2)
    try the above and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Formula for finding Start, Stop, Highest and Lowest value

    Or try this
    =INDEX(Tabell1[Start],1/AGGREGATE(14,6,1/(--(Tabell1[Date]=$F5)*(ROW(Tabell1[Date]))),1)-ROW(Tabell1[#Headers]))
    =INDEX(Tabell1[Stop],AGGREGATE(14,6,(--(Tabell1[Date]=$F5)*(ROW(Tabell1[Date]))),1)-ROW(Tabell1[#Headers]))
    =MAX(AGGREGATE(14,6,(--(Tabell1[Date]=$F5)*(Tabell1[Start])),1),AGGREGATE(14,6,(--(Tabell1[Date]=$F5)*(Tabell1[Stop])),1))
    =MIN(1/AGGREGATE(14,6,1/(--(Tabell1[Date]=$F5)*(Tabell1[Start])),1),1/AGGREGATE(15,6,1/(--(Tabell1[Date]=$F5)*(Tabell1[Stop])),1))

+ 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. [SOLVED] Using Stochastic formula find highest or lowest
    By DavidRoger in forum Excel General
    Replies: 8
    Last Post: 10-21-2015, 01:32 AM
  2. [SOLVED] In need of a formula to rank highest to lowest
    By ellie2014 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2014, 12:48 AM
  3. [SOLVED] finding the X highest (or lowest) numbers in a set.
    By jimboryan in forum Excel General
    Replies: 3
    Last Post: 07-25-2014, 02:20 AM
  4. [SOLVED] Finding the category with the highest/lowest score
    By Vemonstrocity in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2012, 07:08 PM
  5. Finding the highest or lowest value
    By simonjg in forum Excel General
    Replies: 0
    Last Post: 09-18-2011, 10:39 AM
  6. Finding highest and lowest number between to key numbers
    By garbs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2007, 06:35 PM
  7. [SOLVED] Formula for highest/lowest cost
    By S S in forum Excel General
    Replies: 2
    Last Post: 04-29-2006, 11:25 AM

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