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

    Sum of specific label matching from different column lables

    =SUMIF(C:C, "total", A:A) + SUMIF(C:C, "total", B:B)
  2. Monty

    Option Explicit

    Sure, let me know in case if you encounter any challenges
  3. Monty

    Saving as cell values

    Try updating that line in your code and see if the error persists. ThisWorkbook.SaveAs fileName:=path & fileName, FileFormat:=xlOpenXMLWorkbookMacroEnabled
  4. Monty

    Option Explicit

    Helli Yash I have started working on gradient descent in VBA to get solution for your problem..let me know... but for sure will take some time..
  5. Monty

    Add filter in pivot table

    Unable to op3n your excel file... To add filters in the top of a pivot table, you can follow these steps: 1. Click anywhere inside the pivot table to select it. 2. Go to the "PivotTable Analyze" or "Options" tab on the Excel ribbon. 3. In the "Filter" group, click on the "Insert Slicer"...
  6. Monty

    Sum of specific label matching from different column lables

    As an example =SUMIF(A:A, "total", B:B)
  7. Monty

    Option Explicit

    Having gone through your entir code and problem statment. It seems like you're working on calculating various portfolio metrics and covariance matrices using VBA. To optimize weights without Solver, you can implement optimization algorithms like gradient descent or genetic algorithms. These...
  8. Monty

    Multiple Regression

    Hmmmm...Strange..lets try with modified code with some additional error handling: Sub MultipleRegressionAnalysis() Dim ws As Worksheet Dim rngY As Range, rngX As Range Dim lr As Long ' Set worksheet Set ws = ThisWorkbook.Sheets("Sheet1") ' Change "Sheet1" to your...
  9. Monty

    Compare price and show result

    Hi Based on your requirements, here's how the result column can be calculated: For vendor X: Result = Price * (1 - Share of business) = 20 * (1 - 0.70) = 20 * 0.30 = 6 For vendor Y: Result = Price * (1 - Share of business) = 10 * (1 - 0.30) = 10 * 0.70 = 7 So, the comparison based on the...
  10. Monty

    Multiple Regression

    Okay... you're still encountering an error with your code. Debugging can be a bit tricky, but let's try to identify the issue. Can you provide more details about the specific error message you're receiving?
  11. Monty

    Need help in making 3D Pie-Chart

    I can siggest steps as unable view your file. To create a pie chart in Excel based on the data you provided, you can follow these steps: 1. Open your Excel file and go to "Sheet1" where you want the pie chart to appear. 2. Select the cells containing the language and article data. 3. Go to the...
  12. Monty

    add dates until finishing the month based on current month

    This change should ensure proper formatting and hopefully resolve the "expected array" error. Let me know if it works!
  13. Monty

    add dates until finishing the month based on current month

    Replace This dateString = Format(currentDate, "MM/dd/yyyy") With This dateString = Format(currentDate, "mm/dd/yyyy")
  14. Monty

    Multiple Regression

    No, the line 'Application.EnableCancelKey = xlDisabled' will not solve the 'Product deactivated' message issue in Excel. This message typically indicates a problem with the activation status of your Microsoft Office product. You should ensure that your Office subscription or license is active...
  15. Monty

    add dates until finishing the month based on current month

    I think there is date format issue, however modified code for you Sub InsertDateColumn() Dim ws As Worksheet Dim todayDate As Date Dim currentMonth As Integer Dim months As Variant Dim i As Integer Dim month As String Dim lastColumn As Integer Dim headers As...
  16. Monty

    Multiple Regression

    Modified as required Sub MultipleRegressionAnalysis() Dim ws As Worksheet Dim rngY As Range, rngX As Range Dim lr As Long ' Set worksheet Set ws = ThisWorkbook.Sheets("Sheet1") ' Change "Sheet1" to your worksheet name ' Find last row of data lr =...
  17. Monty

    Identifying dates overlapping - Power Query

    Here's a step-by-step guide: 1. Open your Power Query Editor. 2. Select your data source. 3. Add a custom column (let's call it "Overlap Check") with the following formula: = if List.Count( List.Select( Table.SelectRows(#"PreviousStep", each...
  18. Monty

    Why doesnt the formula work now but worked last month ?? VSTACK FILTER

    Hello Can you please show what error you are facing with the formul
  19. Monty

    add dates until finishing the month based on current month

    This code performs thensame task using VBA Sub InsertDateColumn() Dim ws As Worksheet Dim today As Date Dim currentMonth As Integer Dim months As Variant Dim i As Integer Dim month As String Dim lastColumn As Integer Dim headers As Variant Dim columnIndex As...
  20. Monty

    Multiple Regression

    Great..Please do let us know!
  21. Monty

    2 conditions mark true

    May be! =IF(OR(ConsonantCount(LEFT(A1, 4))>=3, ConsonantCount(LEFT(A2, 4))>=3), TRUE, FALSE) UDF Function ConsonantCount(str As String) As Integer Dim i As Integer Dim consonantCount As Integer Dim vowels As String Dim letter As String ' Define vowels vowels =...
  22. Monty

    add dates until finishing the month based on current month

    Sorry Marc....Noted!
  23. Monty

    Multiple Regression

    Try This! Sub MultipleRegressionAnalysis() Dim ws As Worksheet Dim rngY As Range, rngX As Range Dim lr As Long ' Set worksheet Set ws = ThisWorkbook.Sheets("Sheet1") ' Change "Sheet1" to your worksheet name ' Find last row of data lr =...
  24. Monty

    Autoplay a scroll controlled chart and record as video?

    Hello Iam assuming your dynamic chart is embedded as a chart object in the worksheet named "Sheet1". Update the sheet name and chart object name accordingly and try Sub CreateChartVideo() Dim ws As Worksheet Dim chartObj As ChartObject Dim i As Integer ' Set the worksheet...
Back
Top