• 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.

Recent content by xld

  1. X

    Vacation Dashboard, Calculate accrued days YTD

    Suzanne, A couple of points first. You are using SUM unnecessarily a lot. SUM is only needed if you are addig things, not in every arithmetic operation. For instance you use =SUM(TODAY()-[@[Hire Date]])/365 whereas you would only need =(TODAY()-[@[Hire Date]])/365 and you certainly don't...
  2. X

    Simplifying COUNTIFS

    Try =--SUMPRODUCT(--(A3:K3<$A$2:$K$2))=COUNTA($A$2:$K$2)
  3. X

    CONCATENATE FORMULA

    Write yourself a UDF Public Function Conc(rng As Range, Optional delim As String = ",") Dim cell As Range For Each cell In rng Conc = Conc & cell.Value & delim Next cell Conc = Left(Conc, Len(Conc) - 1) End Function`
  4. X

    Sumproduct. Help!

    Try this alternative =SUMPRODUCT(COUNTIFS(Audits!$B$2:$B$179,{"Tech*","Temp*"},Audits!$F$2:$F$179,Plan!ProductCategory))
  5. X

    multiple values in a cell; count cells only once if have both of 2 val [SOLVED]

    This should do it for you =SUMPRODUCT(--((ISNUMBER(SEARCH("FRND",Q3Answrs)))+(ISNUMBER(SEARCH("COMMUN",Q3Answrs)))>0))
  6. X

    Macro creates sheet and renames it based on cell value

    Try deleting the sheet with that name before the rename, wrap it with OnError in case it doesn't exist.
  7. X

    Second version of Index Function

    It is all explained in Help. If reference refers to a multi-area range, you can specify which area withing the range that you find the intersect for For example =INDEX((A1:C6, A8:C11), 2, 2, 2) Looks at row 2, column 2 of the area A8:C11, that is B9. Can't say I have ever needed to use...
  8. X

    If data is missing, skip a row?

    Public Sub ProcessData() Dim Lastrow As Long Dim i As Long Dim cell As Range Application.ScreenUpdating = False With ActiveSheet Lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = Lastrow To 2 Step -1 If .Cells(i, "B").Value2 = "" Then .Cells(i...
  9. X

    Excel Formula

    Use COUNTIFS =COUNTIFS(name_range,"somebody's name",attendance_range,"Absent")
  10. X

    offset and match formula

    If VLOOKUP works, why do you want to use OFFSET and MATCH?
  11. X

    Sum month columns based on =NOW()

    Assuming that the dates are in A1:L1, I think you need =SUM(INDEX(A:L,0,MONTH(TODAY())))-INDEX(A1:L1,MONTH(TODAY())) adjust if your ranges are different.
  12. X

    Excel Formulas

    Use =MIN(8,SUM(A2:C2)) and =SUM(A2:C2)-D2
  13. X

    color cells depend on condition

    Off the top With Activesheet lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = 1 To lastrow If .Cells(i, "B").Value < Now() Then .Cells(i, "A").Interior.Colorindex = 3 End If Next i End With
  14. X

    application.ontime

    Not sure, but try this Private nTime As Double Sub time() If nTime <> 0 Then Application.OnTime nTime, "timecall", , False nTime = Now + TimeValue("00:01:00") Application.OnTime nTime, "timecall" End Sub Sub timecall() Dim ticker As Integer Dim check As Integer...
  15. X

    how can i manage it.....?

    Try this macro Public Sub ProcessData() Dim lastrow As Long Dim lastcol As Long Dim endcol As Long Dim i As Long, ii As Long Application.ScreenUpdating = False With ActiveSheet lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row .Range("A1:E1").Resize(lastrow).Copy...
Back
Top