• 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

    Data Validation similar to the userform Combobox

    Maybe: Private Sub Worksheet_Change(ByVal Target As Range) Dim DVCells As Range Set DVCells = Intersect(Target, Range("Tabela13[Status]")) If Not DVCells Is Nothing Then On Error Resume Next Me.Unprotect For Each cll In DVCells Select Case cll.Value Case "A": VD = "B" Case "B"...
  2. p45cal

    Data Validation similar to the userform Combobox

    Don't know. When you delete a cell on a protected sheet, the data validation seems to be deleted too, but not on an unprotected sheet.
  3. p45cal

    Formulas in headers of Excel table

    I must be missing something big, because having watched the video I can see no earthly reason you might want to do this! What are you trying to do?!
  4. p45cal

    Dynamic referencing of cells from other sheet with Indirect() Function

    You could do something like: =INDIRECT("Sheet2!" & CELL("address", C2)) but I don't see the point, why not just have: =Sheet2!C2 and copy that down and across? Or a single cell which spills: =Sheet2!C2:E5
  5. p45cal

    Dropdown filter to show year of date and contain text

    Yes, I think you have a version of Excel which supports the worksheet function FILTER, so see cell K5 in the attached...
  6. p45cal

    Dropdown filter to show year of date and contain text

    Another macro approach: A one liner: Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("G3:I3")) Is Nothing Then Range("B4:D19").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range("G1:I2"), CopyToRange:=Range("G4:I4"), Unique:=False End Sub It uses...
  7. p45cal

    Show the first row value from rows wtth same date with DAX

    I can do this in Power Query but I'm not good enough with DAX to do it in DAX; would this be any use? Also note that I've added a few test rows to your source data, is the result above what you're wanting (especially the last row)?
  8. p45cal

    Multi-conditional Weighted Average - same and separate columns

    1. I can see that one condition is Transaction Type being "Purchase" but I can't determine the 2nd condition; what is it? 2. What version of Excel are you using?
  9. p45cal

    Conditional formatting applied incorrectly but formula works

    Also, what does this look like in your workbook?: I want to see the whole formula and the Applies to: field.
  10. p45cal

    reference from worksheet , partial match and exact match

    See query table at cell A22 of the query sheet. You don't really need the right-most column since, by definition, it's a repeat of the CHEQUE AMOUNT column.
  11. p45cal

    formula to lookup values across multiple sheets that doesn't slow down my application

    You're looking at whole columns in 14 sheets. I don't imagine you have about 1 million rows of data in each month. In the following formula, still inefficient, I've assumed 100 rows per month, and that you have a version of Excel with the functions LET, CHOOSECOLS, TAKE and VSTACK. It should...
  12. p45cal

    Facing issue formula GOOGLE sheet

    No I really need a link to a workbook. A complete guess from your picture:=ARRAYFORMULA(IF(O3:O<>$W$1,"-", IF(P3:P = "", "", IF(ISNUMBER(MATCH($W$1 & P3:P & O3:O, $S$1 & K3:K & J3:J, 0)), "Received", "Missing"))))
  13. p45cal

    Excel formula Help

    Try:=SUMPRODUCT(BYROW(Table1[[Expdiotor]:[Field]],LAMBDA(a,OR($C16=a)))*BYROW(Table1[[EDD first]:[EDD last]],LAMBDA(a,OR(D$15=a))))
  14. p45cal

    Facing issue formula GOOGLE sheet

    It seems to work all right, so the problem is what is the 'correct' result? Difficult to know what needs putting right from something which is giving the wrong result. Probably best to give us some data along with the expected results somewhere and a bit of narrative explaining what it's...
  15. p45cal

    Match and Sum

    Someone else may chip in…
  16. p45cal

    Match and Sum

    Very hard work with formulas. Easier with tables, Power Query and Pivot tables. See attached.
  17. p45cal

    Multiple lines data in each cell conversion

    With a user-defined-function? See attached in cells H9 and H15.
  18. p45cal

    Want to fetch the Rows data into columns

    See attached. Both Sheet1 and Sheet2 have been processed. 1. Add a cell at the bottom of column A with just MZ in it (A26 and A253 in those sheets (green coloured)). 2. See the green cells at Sheet1 B2:J2 and Sheet2 B1:N1. In Excel 2007 you need to be careful how you enter the formula: For...
  19. p45cal

    Conditional Formatting will be the death of me.

    Perhap the attached?
  20. p45cal

    Need help in combination of Sendkeys for macros

    Would this do the same?: Selection.End(xlToRight).Select Selection.End(xlToRight).Select If not, under what circumstances are you wanting to execute these sendkeys? Another application? A dialogue box? There may be the same thing with quite different code.
  21. p45cal

    if value exist in multiple non-adjacent ranges ?

    This worked for me (I was searching plain values, not the results of formulae): Dim AddOnRange As Range Set AddOnRange = AA04.Range("AD5:AD100") Dim WorksheetRange As Range Set WorksheetRange = AA04.Range("AI5:AI100") Dim MyRange As Range Set MyRange = Union(AddOnRange, WorksheetRange) Dim str...
  22. p45cal

    Trouble with IF / Match Statement - Can't Generate the Correct Result. ( solved )

    In AD2: =INDEX(E2:W2,MATCH(TRUE,(F2:X2-D2)>=0,0))copy down. In AE2:=INDEX(E2:W2,AGGREGATE(15,6,IF((F2:X2-D2)>=0,SEQUENCE(,19)),2))copy down.
  23. p45cal

    Date Formula Question_Follow-up for dates falling on same weekly cut-off

    Try something along the lines of: =CEILING.MATH(A1-6,7)+12 where cell A1 contains the transaction date. (If you don't have the CEILING.MATH function, just CEILING will give you the same result.
Back
Top