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

    Highlight Cell, Only If Special Character Appears Twice In Same Cell

    Use conditional formatting with a formula of =(LEN(A2)-SUBSTITUTE(A2,"(",""))=2 and format as required
  2. X

    Total Hour Calculation

    Format M46 as [h]:mm as well.
  3. X

    Overtime calculation

    Okay, just =IF(B14=0,0,MAX(0,G14-N14))
  4. X

    How to Calculate Age From their DOB

    @kchiba, YM and MD are just telling DATEDIF which interval to use, the doubles usually mean an interval of one type excluding the other, YM is Months excluding Years, MD is Days excluding Months, DATEDIF is in Excel 2000 help, I still keep a copy of old Excel versions.
  5. X

    Overtime calculation

    How about =MAX(0,G14-N14)
  6. X

    How to Calculate Age From their DOB

    Try =DATEDIF(A2,TODAY(),"Y")&" years, "&DATEDIF(A2,TODAY(),"YM")&" months, "&DATEDIF(A2,TODAY(),"MD")&" days"
  7. X

    Excel average excluding #DIV/0! but not in range

    Outsorting the B items, which the OP seemed to want to do.
  8. X

    Excel average excluding #DIV/0! but not in range

    Try this ARRAY formula =AVERAGE(IF((A2:A20="B")*(ISNUMBER(B2:B20)),B2:B20))
  9. X

    VBA - Combining three VBA modules

    HR can be greatly simplified Sub HR(ByVal BeginRow As Long, ByVal EndRow As Long, ByVal ChkCol As Variant) For RowCnt = BeginRow To EndRow Rows(RowCnt).Hidden = Cells(RowCnt, ChkCol).Value = "" Next RowCnt End Sub
  10. X

    i want vba code for finding the number of merged cells in a particular column

    Public Sub ProcessData() Const TEST_COLUMN As String = "A" '<<<< change to suit Dim Lastrow As Long Dim cnt As Long Dim i As Long Application.ScreenUpdating = False With ActiveSheet Lastrow = .Cells(.Rows.Count, TEST_COLUMN).End(xlUp).Row For i = 1 To Lastrow 'Lastrow to...
  11. X

    Is there any Formula which can count a particular alphabet from a string??

    fred, LEN(SUBSTITUTE(A1,{"A","a"},"") doesn't produce 113 per se, it produces an array of two values. It does two substitutions, one for A and one for a. The first returns 59 characters, the second 54, giving a total of 113. If you notice, I do a LEN(A1)*2 because I am looking for two letters...
  12. X

    picture V Lookup

    We might be able to help if you can explain what you want. That terse sentence doesn't give us much chance.
  13. X

    Is there any Formula which can count a particular alphabet from a string??

    This also works for the second case =(LEN(A1)*2-SUM(LEN(SUBSTITUTE(A1,{"A","a"},""))))
  14. X

    Is there any Formula which can count a particular alphabet from a string??

    If it is just capital A, then LEN(A1)-LEN(SUBSTITUTE(A1,"A","")) If capital and lower-case A, then =(LEN(A1)-LEN(SUBSTITUTE(A1,"A","")))+(LEN(A1)-LEN(SUBSTITUTE(A1,"a","")))
  15. X

    Saving a sheet as a cell name, and then returning to another sheet.

    Try Private Sub Saveandreturn_Click() Dim sh As Worksheet Application.ScreenUpdating = False Application.DisplayAlerts = False With Me On Error Resume Next .Parent.Worksheets(.Range("C2").Value).Delete On Error GoTo 0 Set sh =...
  16. X

    Template Protection

    Make it read only.
  17. X

    Theshold Count

    Try =COUNTIF(rng,">"&threshold) and =SUMIF(rng,">"&threshold)-COUNTIF(rng,">"&threshold)*threshold
  18. X

    How to start while making a new Dash board?

    Take a look here http://chandoo.org/wp/excel-dashboards/
  19. X

    merge cells in VBA

    cell.Resize(, 6).Merge
  20. X

    Tab Names as a dynamic varible (which are not links)

    Maybe =IF(ISNA(HLOOKUP(M$2,INDIRECT("'"&C1&"!$C$2:$BB$12"),7,FALSE)),0,HLOOKUP(M$2,,INDIRECT("'"&C1&"!$C$2:$BB$12"),7,FALSE))
  21. X

    Offset Function

    Try selecting the formula in the formula bar, and then hit F9. Take a look at what you see.
  22. X

    Concatenate in Text box

    You could link it to a cell that has a formula that concatenates some others.
  23. X

    Concatenate in Text box

    TextBox1.Text = Range("A1").Value & Range("B2").Value as an example
  24. X

    If function

    It is not clear. You say ... No, I don't want to put value of ranges into one cell ..., then you say ... Instead of C4, It gives me the range of C4 to C11 ... Those two statements are contradictory.
  25. X

    If function

    You can't put the values from a range of cells into one cell without concatenating them. You could just use a formula of =IF(B4,C4,NA()) and just copy down.
Back
Top