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

    Replace special character in whole column

    With following code Dim i As Long For i = 1 To Len(Selection.Value) Debug.Print i & ")." & Asc(Mid(Selection.Value, i, 1)) & "-" & AscB(Mid(Selection.Value, i, 1)) & "-" & AscW(Mid(Selection.Value, i, 1)) Next i The output in immediate window is 1).84-84-84 2).104-104-104...
  2. shrivallabha

    Find positions by value and return adjacent cell

    What will be life if there were no "ties" ;) I was expecting it. You need to provide a tie-breaker logic in order to get desired results. In the past, there was one discussion; check if you find it useful https://chandoo.org/forum/threads/tiebreaker-formula-not-working-as-expected.36011/...
  3. shrivallabha

    Find positions by value and return adjacent cell

    If there are no ties then you can use below formula in cell B15 =INDEX($A$2:$A$12,MATCH(LARGE($B$2:$B$12,ROWS($B$12:B12)),$B$2:$B$12,0)) copy down...
  4. shrivallabha

    How to convert Numbers to Text in Excel without VBA

    Liked your documentation style!
  5. shrivallabha

    VBA Macro for Sending mails to a list with time intervals

    Well, it is not custom made to solve your problem but it should be good enough to nudge in the right direction. If you already have put together something then post it here along with your data layout and describe the issue. It will be easier to help you with it then.
  6. shrivallabha

    VBA Macro for Sending mails to a list with time intervals

    There are several codes available online. Key is to search for the one that appears closest to your needs and adopt it. See if below link helps you in some way: https://www.rondebruin.nl/win/s1/outlook/amail8.htm
  7. shrivallabha

    How to convert Numbers to Text in Excel without VBA

    Here's one which is available on Microsoft site. https://support.office.com/en-us/article/convert-numbers-into-words-a0d166fb-e1ea-4090-95c8-69442cd55d98 @Marc L I suspect OP means words and not text formatting!
  8. shrivallabha

    Macro to delete 3 rows, skip row, delete 3

    Etb, see my post which is a VBA solution. You can also use a formula and auto-filter to achieve this. To insert VBA code in your workbook you can refer instructions in below link https://www.ablebits.com/office-addins-blog/2013/12/06/add-run-vba-macro-excel/
  9. shrivallabha

    Macro to delete 3 rows, skip row, delete 3

    Welcome to Chandoo Org Forums! Assuming that you have data in Column A and Column B is empty then below macro will identify all rows not to be deleted as you have mentioned. Public Sub IdentifyDeletionRows() Dim i As Long For i = 4 To Range("A" & Rows.Count).End(xlUp).Row Step 4 Range("B"...
  10. shrivallabha

    How to convert Numbers to Text in Excel without VBA

    This is a tough ask without VBA. Why do you want to do this without VBA?
  11. shrivallabha

    Happy 10th Anniversary Chandoo.org Forums

    Off late, I have not checked this section of the forum that often and this post just silently passed by! I have always thought that the forums like these simply existed and never accounted for the fact that they must have begun some day. It has been a wonderful journey so far and I have been...
  12. shrivallabha

    Need to replace numbers with X

    You probably will have to use VBA solution like below. Public Sub ReplaceNumbers() Dim rg As Range For Each rg In ActiveSheet.UsedRange If IsNumeric(rg.Value) Then rg.Value = "X" Next End Sub
  13. shrivallabha

    Get Certain Text From a Sentence

    This is bit of sledgehammer approach which works with your data. If your data always starts with 0 then below formula can be reduced...
  14. shrivallabha

    RTRIM, LTRIM excel

    Otherwise to mimic what it is doing, you need to create an UDF like below. Public Function ufLTRIM(strInput As String) As String ufLTRIM = LTRIM(strInput) End Function Public Function ufRTRIM(strInput As String) As String ufRTRIM = RTrim(strInput) End Function And then use like normal...
  15. shrivallabha

    How to extract text between two characters > < in excel even having another characters the same, starting and ending the full text..

    I just color my formula mostly in blue color. That is all. For VBA code, I wrap it in [CODE ] tags.
  16. shrivallabha

    How to extract text between two characters > < in excel even having another characters the same, starting and ending the full text..

    You can probably cut down the formula like below considering the fact that OP's posted data is consistently formatted. =TRIM(MID(SUBSTITUTE(SUBSTITUTE(A3,"<",REPT(" ",99),2),">",REPT(" ",99),1),99,99))
  17. shrivallabha

    Calculate Days

    Your setup and requirement is bit unclear. Suppose in cell A1: 03-Mar-2019 B1: 31-Dec-2019 C1: 01-Oct-2019 (start date of the month you are interested in) then you can try: =NETWORKDAYS(MAX(A1,C1),MIN(B1,EOMONTH(C1,0)))
  18. shrivallabha

    Close another app (Crome) using vba

    There's a built-in object in MS Word VBA called tasks. https://docs.microsoft.com/en-us/office/vba/api/word.application.tasks It should give you starting point!
  19. shrivallabha

    Get 1D Array using Evaluate

    My bad! I have fixed it.
  20. shrivallabha

    Get 1D Array using Evaluate

    But do not forget the fact that columns are 16384 ;) So if you are going beyond 16384 you will need other logic!
  21. shrivallabha

    Get 1D Array using Evaluate

    Basically yes! The issue is not that it cannot transpose beyond 65536 but it doesn't raise any error. Public Sub TestThis() Dim x As Long x = 1048576 a = Evaluate("ROW(1:" & x & ")") b = Application.Transpose(a) For i = 1 To x Cells(i, 1).Value = b(i) Next i End Sub Error will come in the...
  22. shrivallabha

    Get 1D Array using Evaluate

    Since you have variable x which is an integer and therefore will have elements much less than the limit anyway. However, if in reality you have more elements than the limit then there will be no one-liner code. Instead an array will need to be populated using conventional methods. You can get...
  23. shrivallabha

    Get 1D Array using Evaluate

    You can try: Dim x As Integer x = 4 a = Application.Transpose(Evaluate("ROW(1:" & x & ")")) Word of caution: Application.Transpose has limitation beyond 65536 elements.
  24. shrivallabha

    Set workbook which is already open with specific name

    You can use below approach to loop through all workbooks... Public Sub CheckForWorkbook() Dim wbReqd As Workbook, wb As Workbook For Each wb In Application.Workbooks If InStr(1, wb.Name, "FileNameComesHere", vbTextCompare) > 0 Then Set wbReqd = wb End If Next wb If wbReqd Is...
  25. shrivallabha

    VBA Code for Copy & Paste

    There are several codes available online which do this. Example: https://www.rondebruin.nl/win/s3/win002.htm You need to adopt the one that suits your purpose.
Back
Top