+ Reply to Thread
Results 1 to 7 of 7

Extracting earliest and latest prices in excel

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    Elstree
    MS-Off Ver
    Excel 2003
    Posts
    3

    Extracting earliest and latest prices in excel

    I am trying to extract the earliest and most price for a given set of products from a long data file. I have tried Min and Max functions which works where the price of the product has increased over time, but does not work where the price has dropped. I have over 7,000 lines of data and do not want to pull out the prices manually using filters. I attach an extract of the dataset so you can see what I trying to do.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Extracting earliest and latest prices in excel

    Hi rsecomak

    Try with these two formula

    1) =MIN(IF($A$2:$A$26=E2;$C$2:$C$26))

    2) =MAX(IF($A$2:$A$26=E2;$C$2:$C$26))

    Both of these are Arrays Formula. Not just Enter, but Ctr+Shift+Enter

    Hope to helps you.

    Because of Forum problems, i am not able to upload a sample workbook!!!!!!!!!!
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Extracting earliest and latest prices in excel

    ..And this is the sample workbook...
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Extracting earliest and latest prices in excel

    hi rsecomak, welcome to the Excelforum, longer formula option but without using array formulas, please check attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-05-2012
    Location
    Elstree
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Extracting earliest and latest prices in excel

    Thanks - Fotis - max and min worked for some but not all parts.

  6. #6
    Registered User
    Join Date
    01-05-2012
    Location
    Elstree
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Extracting earliest and latest prices in excel

    Hi Watersev - this worked - got the prices as required. Brill

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Extracting earliest and latest prices in excel

    Glad to found your solution.

    But, Just out of curiosity, what does not work correctly in my formula?

+ 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