• 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

    Export specific data

    That depends on how often you might want to change things. If it's only very occasionally then we can change those things manually, otherwise it'll be a case of writing it in to the code - perhaps a bit like the path.
  2. p45cal

    Export specific data

    That's odd. Are you using the web version of Excel, or perhaps you're on a Mac? I don't know. What version of Excel are you using? OK, try this:
  3. p45cal

    Export specific data

    No macro, no vba (it's not a .xlsm file). Right-click the results table, choose Table, then Edit Query…
  4. p45cal

    Export specific data

    Was this after trying the new file in msg#4 or before?
  5. p45cal

    Export specific data

    1. No need to. You can, but do not delete the entire table. 2. Yes 3. Yes.
  6. p45cal

    Export specific data

    My fault. I have updated the attached file in msg#4. Please try again.
  7. p45cal

    Export specific data

    That error dialogue shouldn't be trying to look at …\Chandoo57767… it should be looking at what's in cell A13 via cell A13 being a named range in Name Manager called Path. Have you changed something there? Attach you failing file here so I can check for changes?
  8. p45cal

    Export specific data

    Be absolutely sure that the path is correct, with no leading/trailing spaces and no final slash character. Copy/Paste that folder path from somewhere if you can. If you still can't make it work, could you quote the actual path here?
  9. p45cal

    Export specific data

    In the attached, table at cell A14 of FinalResults sheet. I think that values in cells D9 and F9 should be swapped? I put your 3 csv files into a folder on my system called C:\Users\Public\Documents\Chandoo57767 by themselves and that folder path is in cell A13, which is a single-cell named...
  10. p45cal

    how to solve averageif function error ?

    =LET(a,IFERROR(CHOOSE({1,2,3},5*4,10*1,22*0),0),AVERAGE(FILTER(a,a<>0)))or=LET(a,IFERROR(CHOOSE({1,2,3},5*4,10*1,22*0),0),AVERAGE(IF(a<>0,a))) Note that 22*0 does not raise an error. Do you really have formulae with values manually typed in like that?!
  11. p45cal

    Parent/ Child Hierarchy from table

    Me too. Can you confirm which table you want to add a column to? Looking at your data, there's not a single matching 8-character string between the tables, so I haven't the foggiest what I'm looking for.
  12. p45cal

    Help in Textjoin Formula along with Count

    Yes! I discovered I'd acquired GROUPBY and PIVOTBY only today - I don't know how long I've had it; a week or two perhaps.
  13. p45cal

    Help in Textjoin Formula along with Count

    fnStuff is my lack of imagination when naming a function! In the attached, I've added a second group of queries called develop function. In it I've shown 2 versions of the query fnStuff (2) and fnStuff (3). fnStuff (2) is the function converted (back) into a plain query fnStuff (3) is the same...
  14. p45cal

    Sum Based On Criteria

    I don't understand the above sentence! The equivalent for ALL in the slicers is the red cross (which means no filtering):
  15. p45cal

    If my string of a cell contains keyword matching from list then results must be that keyword only.

    Test: Function FindCodes(ProdCode, Codes) Set dict = CreateObject("Scripting.Dictionary") dict.CompareMode = vbTextCompare RawCodes = Codes.Value 'Filter out blank codes: Count = -1 ReDim Codes(-1 To 0) If IsArray(RawCodes) Then For Each RCode In RawCodes x = Application.Trim(RCode)...
  16. p45cal

    Sum Based On Criteria

    Why re-invent the wheel?
  17. p45cal

    Lookup using Index match based on column name where search Column is not the first

    In the attached, run the macro blah. ps. there is no sheet Travel
  18. p45cal

    If my string of a cell contains keyword matching from list then results must be that keyword only.

    For Excel2016 I can only suggest a UDF: Function FindCodes(ProdCode, Codes) Dim result As String For Each code In Codes.Cells If InStr(1, ProdCode.Value, code.Value, vbTextCompare) > 0 Then result = result & "+" & code.Value End If Next code If Len(result) > 0 Then result = Right(result...
  19. p45cal

    If my string of a cell contains keyword matching from list then results must be that keyword only.

    Try in cell BR2:=TEXTJOIN("+",TRUE,FILTER(Classification!$G$3:$G$5,ISNUMBER(SEARCH(Classification!$G$3:$G$5,Sale!L2)),"STOP"))and in cell BS2:=TEXTJOIN("+",TRUE,FILTER(Classification!$G$3:$G$5,ISNUMBER(SEARCH(Classification!$G$3:$G$5,Sale!X2)),"STOP"))both copied down. Cell BR8 has the only...
  20. p45cal

    Help in Textjoin Formula along with Count

    I looked at this and didn't reply because my solution was so convoluted that I thought there must be a more elegant formula (I still do!). @mohamed ilyas' solution made me think that my formula wasn't so bad! So in the attached, on Sheet1 there's a single-celled formula at cell D2 (with hints...
  21. p45cal

    Read same sheet with varying lines.

    Then point no.2 is the way to go.
  22. p45cal

    Read same sheet with varying lines.

    1. If the spreadsheet is in the same workbook as the Power Query query it can read updated Tables (proper Excel Tables, not just ranges that look like tables) and defined/named ranges. [MCode starts Excel.CurrentWorkbook()] 2. If the spreadsheet is in a different workbook from the workbook which...
  23. p45cal

    Modify the equation to bring in the dollar data first.

    I have a 4 year old car. I need to travel 2,000 miles. I'm going to cycle.
  24. p45cal

    Modify the equation to bring in the dollar data first.

    Then Power Query is the way to go. I'm not going to re-write what is already a complicated formula into old versions of Excel. These formulae would be totally unmanageable. In the attached a Pivot Table at cell F2 of the Total sheet based on your source data transformed by Power Query...
Back
Top