+ Reply to Thread
Results 1 to 5 of 5

Formula to Find the last sales price for a particiular unit; and formula to find last Sal

  1. #1
    Registered User
    Join Date
    02-22-2024
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    2

    Formula to Find the last sales price for a particiular unit; and formula to find last Sal

    I am looking to calculate the last sales price for a particular unit and also return the last sales date for a unit.
    excel.jpg

    i would like to have the most recent Agreement Sales Price to be returned in a cell based on Unit type matching. Additionally, i would like to get the date of the last sale based on the unit type returned in a separate cell. would love some help with this.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formula to Find the last sales price for a particiular unit; and formula to find last

    rather than an image would you load a sample sheet

    Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet.

    A sample sheet would help here, and possibly will enable a quicker and more accurate solution for you.


    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-22-2024
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    2

    Re: Formula to Find the last sales price for a particiular unit; and formula to find last

    here is a sample sheet. i put a box to the right to show what im looking to get back. thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formula to Find the last sales price for a particiular unit; and formula to find last

    last date
    =MAXIFS($C$2:$C$100,$B$2:$B$100,G3)
    value
    =INDEX($D$2:$D$100,MATCH(H3&G3,$C$2:$C$100&$B$2:$B$100,0))

    as you are on 365 - it maybe possible to do all in 1 formula with a LET() - but not sure - so old school formulas
    Attached Files Attached Files

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: Formula to Find the last sales price for a particiular unit; and formula to find last

    With Power Query,
    1. Load your data table to the PQ Editor and employ the following Mcode to get the max sale date

    Please Login or Register  to view this content.
    2. Load the data table to the PQ Editor again but with the query name of Table1 (2) and employ the following Mcode

    Please Login or Register  to view this content.
    3. Join the two queries with the following Mcode

    Please Login or Register  to view this content.
    4. Close and Load your final result to Excel

    Excel 2016 (Windows) 64 bit
    G
    H
    I
    J
    8
    Lot unit sale date agreement sales price
    9
    5
    a
    2/15/2024
    235000
    10
    10
    b
    10/15/2023
    267000
    11
    11
    c
    1/15/2024
    234999
    12
    12
    d
    2/1/2024
    185000
    Sheet: Sheet1
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 20
    Last Post: 12-21-2022, 01:31 PM
  2. [SOLVED] Find out the unit price according to the date and material within the date range
    By rayhen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2022, 05:20 AM
  3. Replies: 3
    Last Post: 01-23-2021, 11:05 AM
  4. Formula to find sales for fixed event at a certain sales date
    By iantix in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-27-2015, 07:56 AM
  5. [SOLVED] Find the Last Price with formula
    By turist in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2013, 04:42 PM
  6. formula for unit price with minimum amount
    By yvanblanchette in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2008, 11:55 PM
  7. [SOLVED] How do I set up a daily average of unit sales formula
    By jim m in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2005, 06:40 PM

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