+ Reply to Thread
Results 1 to 15 of 15

Price Development

  1. #1
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Price Development

    Hi,

    This is my 1st post here as I have just signed up.

    I am not able to find a working formula for my Price development table (attached). I expect it to do the following:
    • List unique dates (Date) from the source table (T) horizontaly - DONE
    • List unique part numbers (PN) vertically - DONE
    • Display Price which based on the corresponding Date (start date of price validity) and PN (Part Number) from the source table. The price should be displayed for each PN either as a previous valid price before the Date or matching the Date in the source table.

      I was able to display previous price with INDEX(Price;XMATCH(K$1;Date+1;-1)) but it did not display price matching to the date from the source table. I also do not get how to use multiple criteria in XMATCH so that I would add PN criteria to it.

      The green, manually created table represents the desired outcome.

      Many thanks for help

      Tomas

    Price development.xlsx

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Price Development

    Try Cell F2 formula, Drag down and across

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


    365

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 01-12-2022 at 08:39 PM.

  3. #3
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    Hello wk9128, that was easier than I though! Typical, though . Thanks a lot. I added a step chart to the spreadsheet to visualize the data but realized I need another modification to get correct chart. The step chart is not a standard Excel chart so I had to modify data of the standard line chart. The step chart is supposed to show vertical line connecting 2 prices the day they changed. I manually created a table which is able to produce correct chart. This table need to show changed price at the closest future Date (one Date later) and one extra column with the same Date as the latest Date has to be added and probably also calculated different way.

    I tried to create a correct chart using the orifinaly correct final table with adding an extra column to its beginning but I am not able to the line modify chart to show correct results.

    Can you help with this too? Other are welcome to help as well!!! Thank you!


    The updated spreadheet is here:

    Thanks!Attachment 763195
    Last edited by tomas777; 01-13-2022 at 04:16 PM.

  4. #4
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    Does someone has an idea how to fix it? I am desparate.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Price Development

    POST#3 The attachment is invalid and cannot be opened

    Please re-upload the attachment

    Your post and scroll down with the mouse , When see Attachments\manage Attachments start from here to Upload
    Last edited by wk9128; 01-13-2022 at 09:17 PM.

  6. #6
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    Reaploading working file.Attachment 763379

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,181

    Re: Price Development

    No file attached: please follow instruction in the yellow banner at top page.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Price Development

    In F2 then copied across

    =IFERROR(INDEX(Price,AGGREGATE(14,6,ROW(Price)/((INDIRECT("T[PN]")=$E2)*(INDIRECT("T[Date]")<=F$1)),1)-ROW($A$1)),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  9. #9
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    I have uploaded new file succesfully following the instructions. Apologies for the previsou upload issues.
    Attached Files Attached Files
    Last edited by tomas777; 01-14-2022 at 07:02 AM.

  10. #10
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    Quote Originally Posted by kvsrinivasamurthy View Post
    In F2 then copied across

    =IFERROR(INDEX(Price,AGGREGATE(14,6,ROW(Price)/((INDIRECT("T[PN]")=$E2)*(INDIRECT("T[Date]")<=F$1)),1)-ROW($A$1)),"")
    Hi kvsrinivasamurthy,
    thanks a lot. Your solution works for my original request. Could you modify it to get results in the spreadsheet uploaded in the previous post, please?

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Price Development

    What is the basis to get values in your expected result.
    Eg: For B in 20-4-22 the table value is 10, expected is 15.

  12. #12
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    15 is expected as this is B value of the previous date 01-02-22. The data in this table needs to be organized this way to get correct Step chart which is not a native Excel chart. Please see V3 file it will be clearer what I am looking for.

    I also would like to design the formulas the everything is fully dynamic (see the list below). I elaborated your formula but it is not dynamic solution.

    Issues to be Fixed / Desired Improvements:
    1) Can the Charts Source Table be completely dynamic automatic updates if Source Table changes?
    The column axis (yellow) is already dynamic while row table axis's rightmost orange cell and table core cells (matte yellow) are not.
    2) Can the core cells formulas be spilled in the area framed by the dynamic Dates and PN axis?
    3)I would also like if the formulas in the Chart Core Cells display the same result even if Source data table is not sorted (something like solution which wk9128 posted (2nd post in the thread)
    Attached Files Attached Files
    Last edited by tomas777; 01-14-2022 at 01:22 PM.

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Price Development

    Source data not sorted means to which column Pn or Date.

  14. #14
    Registered User
    Join Date
    01-12-2022
    Location
    Brno, Czech Republic
    MS-Off Ver
    365
    Posts
    44

    Re: Price Development

    The data is added incrementally to the source table, hence it is completely unsorted and they can also be changed. In reality, my spreadhseet is supposed to display price changes for different product the way every price change will be recorded and the other Chart Source Table will be dynamically generated. Price and its implementation date can be negetoated after anouncement and new values may render the Source table unsorted. It can be sorted manually but I would like it automated at max level.

  15. #15
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Price Development

    For any particular NP, say B the dates are in ascending order. No necessity of sorting required. All dates in the table need not be in sorted manner. Even NP's are not required to be continuous rows as in the table, if they are distributed formula works. The only condition required is each NP's dates should be in ascending order. If you feel your problem different from this Pl upload the file to show what type of data will be there in table. Sorting of table not required. Only formula is to be modified.

+ 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: 2
    Last Post: 12-05-2020, 05:29 AM
  2. Replies: 10
    Last Post: 08-06-2018, 05:33 AM
  3. Replies: 3
    Last Post: 09-12-2015, 10:42 AM
  4. [SOLVED] Multiple IF's to calculate price based on cost and add handling charge and round price
    By RoyRose in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-13-2014, 01:18 PM
  5. Replies: 3
    Last Post: 01-03-2013, 12:32 AM
  6. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  7. [SOLVED] C# vba development
    By Foeyshell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2005, 10:06 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