• 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

    Complex Excel Formula Required

    One way:=LET(a,FILTER(M4:N753,M4:M753>=D4),b,SCAN(0,TAKE(a,,-1),LAMBDA(c,d,c+d)),e,XLOOKUP(H4,b,TAKE(a,,1),,1),e) See cell I7 with that formula. Cell I4 has the named lambda equivalent with hints as to what belongs in the arguments:
  2. p45cal

    Gant Chart in excel with conditional formatting for calendar - please help

    See attached where I've done your number 1 requirement. Data validation in cell H1. Delete cell H1 contents or choose All from the dropdown to see all dates. Worksheet_Change event code in that sheet's code-module. (For debugging/explanation purposes, code called StepByStepWorksheet_Change takes...
  3. p45cal

    Need help in Data to age formula in excel

    =IF(B4<=1,0,DATEDIF(B4,TODAY(),"Y"))
  4. p45cal

    Summary Sheet - losing connection

    try in row 3:=INDIRECT("'" & B3 & "'!F" & MATCH("Net Functional Area",INDIRECT("'" & B3 & "'!$E$1:$E$10000"),0))and copy down.
  5. p45cal

    Filter function - making edits or apply format to filtered selection cf old row Filter selection ...

    the visible cells it selects are from only those cells which were selected before you use the GoTo dialogue, but when only a single cell is selected before you use it, it assumes you want the whole sheet processing in that way.
  6. p45cal

    Splitting pivot chart

    Sparklines?:
  7. p45cal

    Power Query Help - Merge null rows

    That's a big ask. It would take me all morning to go through the steps. There is some manual editing of the M-code. The most obscure bit will be how the function fnMergeRows was put together. In the attached, I've duplicated that function (fnMergeRows (2)) and turned it back into a normal query...
  8. p45cal

    Power Query Help - Merge null rows

    Obviously, we have no access to C:\Users\27833\Downloads\Donaldson PDf\ so we can't add to the queries and refresh them, so I've taken your existing results table and processed that. See the query Donaldson_PDfNew which uses the fnMergeRows function. In a part of the function I've used the ¬...
  9. p45cal

    Importing about 2.5 million rows of data from TXT file

    So if you've managed to get the data into the data model, it's only the design of the pivot you need. Supply (a) a workbook with the data-acquiring query/whatever in it, (b) a small sample of the of the text file (sensitive data removed if necessary, but still realistic) for us to experiment...
  10. p45cal

    Check for empty cells across multiple sheets and return values

    Same IF statements, just different things to do inside the innermost one. It adds a link that will take you to the blank cell.
  11. p45cal

    Check for empty cells across multiple sheets and return values

    You might like this small change: If Len(Application.Trim(cll.Offset(, 1).Value)) = 0 Then Destn.Value = cll.Value NewSht.Hyperlinks.Add Anchor:=Destn.Offset(, 1), Address:="", SubAddress:=cll.Offset(, 1).Address(0, 0, External:=True)...
  12. p45cal

    Check for empty cells across multiple sheets and return values

    Try: Sub blah() NewSheetName = "Summary" 'adjust this to a sheet name of your liking. Application.DisplayAlerts = False On Error Resume Next Sheets(NewSheetName).Delete On Error GoTo 0 Application.DisplayAlerts = True Set Newsht =...
  13. p45cal

    Check for empty cells across multiple sheets and return values

    Let's have a file with, say 5 sheets in, with realistic data in each with about 10 rows on each sheet. It will answer lots of questions that we'll probably guess (wrongly) the answers to. What version of Excel? A formula such as: =LET(a,VSTACK(Sheet1:Sheet5!$A$1:$B$12),FILTER(TAKE(a,,1)...
  14. p45cal

    Randomly select rows without duplication from an excel sheet

    Awaiting some kind of acknowledgement…
  15. p45cal

    Copy the top row of multiple sheets to sheet1

    https://support.microsoft.com/en-us/office/create-a-3-d-reference-to-the-same-cell-range-on-multiple-worksheets-40ca91ff-9dcb-4ad1-99d2-787d0bc888b6 about half way down: Create a 3-D reference Click the cell where you want to enter the function. Type = (equal sign), enter the name of the...
  16. p45cal

    Copy the top row of multiple sheets to sheet1

    =VSTACK(Sheet2:Sheet1000!1:1)
  17. p45cal

    Excel Count Problem

    Excel will implicitly convert numeric to strings and vice versa according to context: =8 + "1" ="8" + 1 ="8" + "1" will all return the number 9 ="8" & 1 =8 & "1" =8 & 1 will all return the string "81" In the formula you use, it makes no difference, so why use quotes at all? The fact that...
  18. p45cal

    Excel Count Problem

    =SUMIFS(AR19:AR205,$B18:$B204,">"&DATE(2024,1,1)) The the two ranges need to be the same size.
  19. p45cal

    Excel Count Problem

    Dates can be a little difficult for Excel to identify robustly but maybe: =COUNTIFS($B18:$B205,">" & DATE(2020,1,1),C18:C205,4) or shorter: =COUNTIFS($B18:$B205,">43831",C18:C205,4) will both include the count if the dates are after 1/Jan/2020 (but will also count if there's a plain number...
  20. p45cal

    Small Formula

    Old thread, I realise, but for anyone searching for alternative methods with the evolving functions in Excel: =AVERAGE(TAKE(SORT(TAKE(FILTER(BG15:BG234,BG15:BG234<>"-"),-20)),8)) or to reduce the range references in the formula to just one...
  21. p45cal

    Excel Count Problem

    =COUNTIFS($B18:$B205,"<>",C18:C205,4)copied across.
  22. p45cal

    to use between mm/dd/yyyy and mm/dd/yyyy to return as next day

    I'm not at a computer right now but perhaps INT(A2+(1/3)) or INT(CEILING.MATH(A2,1/3)) 1/3 of a day being 8 hours, 16:00 + 8 hours = midnight. I will look more closely later. Edit: later: seems OK, with a difference with what happens at exactly 16:00 where the CEILING formula aligns with your...
  23. p45cal

    highlight in yellow if within same month

    Perhaps he did:
  24. p45cal

    Excel VBA Applying Sort not working

    I suspect that Sort line should be: Range("A1:H" & LastRow).Sort Key1:=Range("B1"), Order1:=xlDescending, Header:=xlYes
  25. p45cal

    highlight in yellow if within same month

    Conditional formatting in the attached: Edit, taking a leaf from @AliGW the CF formula for Q2:U22 could be a little simpler: =AND($I2<>"",MONTH($I2)=MONTH(Q2),YEAR($I2)=YEAR(Q2))
Back
Top