How can I substitute quotation marks in Excel with SUBSTITUTE formula?
“””” escapes a “: =SUBSTITUTE(SUBSTITUTE(B1,” “,””), “”””, “”)
“””” escapes a “: =SUBSTITUTE(SUBSTITUTE(B1,” “,””), “”””, “”)
You don’t need to convert the original entry – you can use TEXT function in the concatenation formula, e.g. with date in A1 use a formula like this =”Today is “&TEXT(A1,”dd-mm-yyyy”) You can change the “dd-mm-yyyy” part as required
Application.WorksheetFunction.Index(array, row, column) If you specify a zero value for row or column, then you’ll get the entire column or row that is specified. Example: Application.WorksheetFunction.Index(array, 0, 3) This will give you the entire 3rd column. If you specify both row and column as non-zero, then you’ll get only the specific element. There is no … Read more
Try ThisWorkbook.Sheets(“name of sheet 2”).Range(“A1”) to access a range in sheet 2 independently of where your code is or which sheet is currently active. To make sheet 2 the active sheet, try ThisWorkbook.Sheets(“name of sheet 2”).Activate If you just need the sum of a row in a different sheet, there is no need for using … Read more
Sounds like a job for VLOOKUP! You can put your 32 -> 1420 type mappings in a couple of columns somewhere, then use the VLOOKUP function to perform the lookup.
You can use the formula INDIRECT(). This basically takes a string and treats it as a reference. In your case, you would use: =INDIRECT(“‘”&A5&”‘!G7”) The double quotes are to show that what’s inside are strings, and only A5 here is a reference.
Don’t know if it’s the best way but I’d do this: =A1 & TEXT(A2,”mm/dd/yyyy”) That should format your date into your desired string. Edit: That funny number you saw is the number of days between December 31st 1899 and your date. That’s how Excel stores dates.
As commented, just in case the link I posted there broke, try this: Add a Name(any valid name) in Excel’s Name Manager under Formula tab in the Ribbon. Then assign a formula using GET.CELL function. =GET.CELL(63,INDIRECT(“rc”,FALSE)) 63 stands for backcolor. Let’s say we name it Background so in any cell with color type: =Background Result: … Read more
Several years too late: Just for completeness I want to give yet another answer: First, go to Excel-Options -> Formulas and enable R1C1 references. Then use =CELL(“width”, RC) RC always refers the current Row, current Column, i.e. “this cell”. Rick Teachey’s solution is basically a tweak to make the same possible in A1 reference style … Read more
Evaluate might suit: http://www.mrexcel.com/forum/showthread.php?t=62067 Function Eval(Ref As String) Application.Volatile Eval = Evaluate(Ref) End Function