My end goal is for "Find and Replace" to take an extra parameter and to show me a custom column in the "Results" table when I click "Find All".
When I search a spreadsheet for "value" and click "Find All", the dialog shows me the Book, Sheet, Name, Cell, Value, Formula for every cell that has "value" in it. But I want it to show me the contents of another cell in that row as well. I would like that cell to be from a column I specify when I enter the seach parameters.
I'm relatively new to programming, and am sure that I can figure out something with Python or AutoHotKey. But I would be surprised if there isn't a better way.
I don't want something that is associated with the spreadsheet or workbook specifically, so it needs to be part of Excel or stand alone (not a macro from what I understand). Is it possible to modify the Find and Replace dialog box in Excel?
A point in the right direction would be much appreciated, thanks!
It's not possible (at least with any sensible level of effort) to modify the built-in search functionality to add parameters and to display different output. You would need to create a similar tool in your language of choice and build in your new requirements.
Related
Hope you could help, don't know if its possible.
I'm using Excel to create a layout with some ID's in that layout.
Since it's a layout, I can't just show all information needed as it's too much, so, I would like with a click in that cell or when mouse hover it shows a tooltip/comment with a custom vlookup that search that ID in another sheet. When the user click in a empty cell or takes mouse point to an empty cell the tooltip/comment disappear.
Already make some searches but couldn't find anything. Any suggestions in how to achieve this?
Thanks.
I have an Excel spreadsheet that I'm generating from a SharePoint dashboard. It's turning my checkboxes in the SharePoint table to "true" or "false" values in the Excel spreadsheet. I wanted to know if it is possible to turn those "true" or "false" values back into checked boxes, with the appropriate check or uncheck option selected.
Any help at all is appreciated!
I strongly advise against using check boxes in Excel if you already have the data as TRUE/FALSE in a cell. Check box controls are meant to be for user forms, and even though they can be placed in the spreadsheet grid, they live in a layer on top of the spreadsheet. Yes, they can be linked to a spreadsheet cell, but this is cumbersome.
Instead of using a macro that inserts a check box for each data row you could use a helper column with a formula along the lines of
=IF([#checkBoxField],"a","r")
Then format the helper column with the Marlett font, which will show the letter "a" as a tick and the letter "r" as a cross.
Applying a formula like this will be much faster than inserting check box controls into each row and linking them to the field cells.
You can add a checkbox over a given cell, then edit its properties (Format Control --> Control Tab) and set its Cell Link property to the address of the cell; i.e. "B2". If you have too many such boolean cells, the task is tedious so you might need to automate it with VBA.
p.s. I agree with #teylyn that this shouldn't be a good choice if you have a huge column of boolean data; it adds too many shapes which is cumbersome. You should use it if the number of boolean cells is rather limited.
I have previously known an excel short-cut command that popped up an window where one could select a layout for a range of cells in the worksheet. There were many selections and several of them were quite beautiful. The layout would change the background color of the heading (first row selected), and format the first column and the cells in the body respectively.
I'm not talking about making tables or the table formatter, also it was only accessible through the shortcut command as far as I know (which I've now forgotten). Does anyone recall what I mean and could that person please share? I've been trying to remember it for some time now.
I believe what you first need to do is enable Excel to recognise your table. Take a look at my screenshot above!
By using Alt + O + A one will get up the AutoFormat window.
I am trying to create an Excel VBA that would delete only a specific part of the cell in only one column.
In Column A, I have a directory values:
For example:
Directoryof K:\data\Admin\
What I would like to do is remove the "Directoryof" from all the cells in column A and leave only the remaining text that follows it.
To create a macro to perform the above follow the below steps:
Click the "Developer" tab on the top menu.
You will find an option "Record Macro".
Click the Record Macro ->
a. A dialog box appears, give your macro a name
b. Shortcut key (if you want) can give by pressing (shift and any key such as
letters)
c. Store macro in : This workbook (this allows your macro to run on this sheet).
Click on "Use Relative References".
Once you are done, just perform the delete operation ( by removing the portion you do not want) on one of the column so that the macro may record the process which you are performing.
Once done, below at the lowest pane you will find Stop Macro option (a small blue square box). Click it to stop the recording of the macro.
Now you are ready with a macro to replicate the same without you performing the operation.
Just goto any other column where you want to perform the operation and click on "Macro" option on the developer tab and then click on your created marco, and you will see the magic happen.
You could probably use regex to accomplish what you are going for. Regular Expressions are often used for finding patterns. If all of your follows the same format, you could break your strings apart into two capture groups with something like:
(.+)([A-Z]:\\.+)
https://regex101.com/r/uD4uJ0/2 <-- this will show you your capture groups
Edit: I updated this link, sorry, originally had the wrong one.
This here How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops will show you how to split up capture groups if you are interested.
You could use something like text to columns, fixed width, and split the columns after Directoryof and then copy/paste the values back into column A.
I'm not sure if there's a method to do this without a helper column without VBA. If you can afford to use a second column, you can also use =LEFT(Cell, # of characters) assuming that the part you want to strip off is always "Directoryof" and then copy/paste values back into column A.
I can usually find an answer to the problems I'm having via a quick google search, but this one I'm struggling to even form the question in order to locate an answer.
I'm trying to find out whether it is possible to use Excel Tooltips to display cell data. For example, on mouse over: a tooltip appears displaying the cell values from selected cells, preferably with some plain text but not essential.
i.e. I have an overview table which simplifies data from another table but want said cell values to appear on mouse over.