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

    Median Price

    Hi: May an array formula? =MEDIAN(IF(G6:G12<>0,G6:G12)) Confirm Using Control+Shift+Enter Keys. Thanks
  2. N

    Concatenating cells in the same column

    Hi: No, the M code I have given is from the start, if you already have codes that connect to source you do not need the lines to connect the source again. Open the excel file I have uploaded and go through the logic I have applied. You may have to look at the following lines, the logic are in...
  3. N

    Pretty basic loop?

    Hi: I have highlighted in yellow the helper row I have created and have highlighted in red rectangle where you have Type 1 repeating. The formula is straight forward just use evaluate the formula to understand what I have done. Thanks
  4. N

    Pretty basic loop?

    Sorry Typo, I mean to say you had two "Type 1" percentages in your file.
  5. N

    Pretty basic loop?

    Hi: I have fixed the formula, since you had to type 1 % i had to create a helper row in BF. Thanks
  6. N

    Concatenating cells in the same column

    Hi: This is easy to do with a power query, find the attached. The result is in green table. let Source = Excel.Workbook(File.Contents("C:\Users\nebusud\Downloads\Concat.xlsx"), null, true), Table1_Table = Source{[Item="Table1",Kind="Table"]}[Data], #"Changed Type" =...
  7. N

    Percentage of row amount over previous row

    Hi: May be something like this? Step 1: Add index column Step 2: Calculate Previous sales as Measure Step 3: Calculate Percentage difference as column Thanks
  8. N

    Pretty basic loop?

    Hi: In case you are using Sumproduct formula yo do not need a macro(ignore my macro). I guess you need to go with formula which will be much faster considering you have only limited no:of rows to do the calculation. Thanks
  9. N

    Pretty basic loop?

    Hi: You do need need additional macro for this just use the following formula. =SUMPRODUCT(($AD45:$AH45)*(INDIRECT("$AD$"&BB$10+10&":$AH$"&BB$10+10))) Thanks
  10. N

    Pretty basic loop?

    Hi: I do not think you need a loop for this, the macro will trigger when ever you change the year in AW9 and copy the values to respective columns. Private Sub Worksheet_Change(ByVal Target As Range) With Me If Not Intersect(Target, .Range("AW9")) Is Nothing Then .Range("AW11:AW47").Copy i& =...
  11. N

    Rotating a shape with VBA code

    Duplicate Post: https://chandoo.org/forum/threads/ambiquous-name-detected-error.40333/#post-241214
  12. N

    2 Excel Merged = data 12 lac+=Apply Pivot = How to do the same

    Hi: The only way you can do this in excel is by adding the data set to data model and merging it in power query and use this merged data set to build power pivot. There are a lot of resources available on internet how to do this, please give a google search. Alternatively, if you do not have...
  13. N

    Find all row numbers from a table matching a value

    Hi: Formulas in Coloured cells Thanks
  14. N

    Extracting information between two dates

    Hi: I still recommend G's method , pivots are designed to summarise data into meaningful information and is much more easier to manage. If you want a formula solution here is one. Thanks
  15. N

    Finding data from second table with key in first table, with loop

    Hi: Have included the named ranges to make the rows dynamic. Thanks
  16. N

    Finding data from second table with key in first table, with loop

    Hi: Formula in Yellow cells. Thanks
  17. N

    vba copy paste special values not working

    Click on the highlighted button to tag the code
  18. N

    vba copy paste special values not working

    Hi: Which code are you using? The code you have given above is different to what I had given you. Note: Please use code tags when you paste VBA. Thanks
  19. N

    vba copy paste special values not working

    Not sure What you want to achieve here May be this? Sub Macro2() 'AS SHEET Dim Lr As Long With Sheets("AS") Lr = .Range("H:H").Cells.SpecialCells(xlCellTypeConstants).Count + 3 .Range("H4:J" & Lr).Copy Sheets("Dump").Range("A5000").End(xlUp).PasteSpecial xlPasteValues...
  20. N

    Help with Excel functions

    Hi: Do this Non-Array formula work for you? =SMALL(IF(MMULT((Share_Id=Share_Key)*(Shares_sold>0)*(Date>=From_Date),1),Num),ROW(A1)) Thanks
  21. N

    ytd comparison P&L till a particular month

    Hi: Formulas in yellow cells. Thanks
  22. N

    Multiple Results Using Column Header As Criteria

    Hi: May be this formula? =INDEX('Card Number'!$A$2:$AH$5,ROW(A1),AGGREGATE(15,6,(COLUMN('Card Number'!$A$1:$AH$1))/('Card Number'!$A$1:$AH$1=$C$3),1)) Thanks
  23. N

    If too much criteria

    Hi: May be this? formula in red. Thanks
  24. N

    Max formula multiple IF statements

    Hi: Can't you use a pivot as attached? If you want only a formula solution use the native function "MAXIFS" in excel. Note: The slicer will control both the pivot Thanks
  25. N

    Date Range Filter on a Pivot Table?

    Hi: Use the following code Sub test() 'Set the Variables to be used Dim pt As PivotTable Dim Field, Field2, Field3 As PivotField Dim NewCat, NewCat2 As String Dim pi As PivotItem 'Here you amend to suit your data Set pt = Worksheets("Top (Cons)").PivotTables("PivotTable1") Set Field =...
Back
Top