• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search results

  1. p45cal

    Unpivot bad dataset that contains headings and records

    See attached, result table at cell N2. No attempt made to make it 'elegant'!
  2. p45cal

    Insert numbers into the respective date

    Various solutions from other responders in columns B:E. This should translate to Italian formulae when you open it.
  3. p45cal

    IFERROR not working on #SPILL!

    Recognises it here: after clearing the cell causing the SPILL error:
  4. p45cal

    Identifying the top level in a hierarchy of numbers

    I'd guess, unlike the dataset you gave, that there are some Project IDs without a dot at all, truly top level ones. To debug, you can enter parts of the equation into a cell, eg. =TEXTBEFORE($A$2:$A$982,".")=TEXTBEFORE($A2,".") to get the full column of results. You can change the $A2 to another...
  5. p45cal

    Identifying the top level in a hierarchy of numbers

    Test: in a cell in row 2: =IF(MIN(IF(TEXTBEFORE($A$2:$A$31,".")=TEXTBEFORE($A2,"."),$B$2:$B$31))=$B2,"top level", "") copy down.
  6. p45cal

    Required changes in the existing code

    The thread is fine here. I just wonder how many people will respond, because in that workbook's Module1 there are some 1300 lines of vba, 720 of which are actual code. I don't know who will be prepared to sift through it to get you want you want. There have been 8 views of that workbook so far…
  7. p45cal

    How to get an end date in a production cycle with given working days and holidays.

    In the file I attached in my last message I included a solution which will work for Excel 2021 (and Excel 2013). The formulae are in the yellow highlighted cells C11 and B12:C13. You need to move range B11:C13 to B3:C5 (overwriting what's already there), then you can delete all but the Holidays...
  8. p45cal

    Settle customer outstanding

    This sort of thing might be interesting to the likes of credit card companies, or those paying off debt/credit. People don't always pay the entire outstanding every month and the credit card companies charge different rates of interest at different times for various outstanding amounts...
  9. p45cal

    Settle customer outstanding

    looks like @Deepak_S lost interest…
  10. p45cal

    Filter Column A Dates with most recent month

    ws.Range("A1:A" & lastRow).AutoFilter Field:=1, _ Criteria1:=">=" & CLng(DateSerial(recentYear, recentMonth, 1)), _ Criteria2:="<" & CLng(DateSerial(recentYear, recentMonth + 1, 1))
  11. p45cal

    Formula to convert range of positive & negative numbers to degrees

    It might depend on how you want the scale to read: If like the blue line, one of AliGW's formulae [or =ABS(C6:C366/6-30)-15 ], if like the orange line then in D6: =COS(C6:C366*PI()/180)*15 or in older versions of Excel: =COS(C6*PI()/180)*15 copied down.
  12. p45cal

    Excel - Dynamic output based on Min / Max Inputs

    Try: To replace current formula in H9 (=C9): =SEQUENCE(,16,C9,(D9-C9)/15) and delete the formula =D9 in cell W9 You can copy this formula down one cell to get the percentages. In cell X9: =SEQUENCE(,15,D9+(E9-D9)/15,(E9-D9)/15) copy down. Delete the formulae in column AL I do not understand...
  13. p45cal

    Extracting second last data (Delimiter)

    =TAKE(DROP(TEXTSPLIT(A1,","),,-1),,-1) or =LET(a,TEXTSPLIT(A1,","),INDEX(a,COUNTA(a)-1))
  14. p45cal

    Settle customer outstanding

    I'm having great difficulty understanding how you reach your Table-2 figures. So the following is a guess: I'm taking your invoices in date order, earliest first, then I'm looking for payments made after that invoice date and using them to pay that invoice, using as many payments as is needed to...
  15. p45cal

    Settle customer outstanding

    Is this correct?: Date Invoice Amount Payment received Amount Balance 21/03/2022 90,098.00 90,098.00 03/11/2022 -106,376.00 -16,278.00 14/11/2022 1,467,993.00 1,451,715.00 16/06/2023 -56,872.00 1,394,843.00 11/07/2023 -1,595.00 1,393,248.00 25/09/2023 50,951,006.00...
  16. p45cal

    Column entry search and highlight issue

    In D2 of Details sheet (also in D1 add the header, whatever you want (Flag?)): =IF(ISNUMBER(MATCH(A2,Students!$A$2:$A$4,0)),1,"") copy down.
  17. p45cal

    Value of a cell changed based on another cell

    Try =MATCH(A1-0.00001,{-0.00001,0.2,0.4,0.6,0.8,1},1)
  18. p45cal

    Value of a cell changed based on another cell

    =XMATCH(A1-0.00001,{-0.00001,0.2,0.4,0.6,0.8,1},-1)
  19. p45cal

    Financial Monthly, Quarterly & YTD Reporting

    See attached. Click on cell F2 and choose a Month/Year, refresh the results table. If you choose a month/year in the future and there is no data for the month-to-date or for that quarter those columns will not show in the results table. If you want to see those columns with 0 values you need to...
  20. p45cal

    Financial Monthly, Quarterly & YTD Reporting

    In the attached, results table at cell Q5. Change the company table at cell B1 by say adding companies, changing company names, changing percentages then: right-click somewhere in the results table and choose Refresh to see the table update itself. The month/quarter/year to date are the current...
  21. p45cal

    Recursive filter

    In the linked-to workbook below: Only your DATA sheet A results table at cell E1 A copy of your 'desired result in the "END" tab, between columns "E" and "G" ' at cell I1 (values only so that I could sort it and the results table in the same way to demonstrate similarity). This is a Power...
  22. p45cal

    Time Calculation having negative value

    Also =(D2-C2+(D2<C2))*24
  23. p45cal

    Calculate the amount of overlapping time

    In the attached: 1. Your source Table1 minus its calculated columns. 2. A new results table at cell K1 which is the same as your table plus 4 columns: Call duration Count - the count of other incident numbers overlapping this one total overlap - the sum of all overlaps with other incident...
  24. p45cal

    Calculate the amount of overlapping time

    On Sheet3 of the attached workbook, a Power Query solution. It uses only the 3 columns of data in columna A,B & C (calculating the duration for itself). The result table at cell I1 has the column Overlap which is the sum of all overlaps for that row with all table's rows for that Unit. The...
Back
Top