Excel 2007 - Find a word - excel

I have like 3000 works in an excel cell that I need to search one word in. It does not highlight the word, it only places me into the cell with the word.
Anybody has any idea how I can get the word highlighted that I am looking for?
Thank you,
Steve

You have to change the font/highlighting/background of the characters you find using the Characters property in VBA. This can be packaged with the actual search or you can perform the search manually and the highlighting with a macro. See this link for code samples http://www.ozgrid.com/forum/showthread.php?t=66197
Note that since you are actually changing font in Excel you will need to revert it to normal if you don't want the highlight saved with the document.

If you save the whole book as an HTML. Then open it in your preferred browser, you can search in the normal way and it should highlight the desired word.

You can use conditional formatting to highlight the entire cell that contains the search criteria, but I think you want only the specific text to be identified?
I haven't tried this, but here is a discussion on this:
http://www.mrexcel.com/forum/showthread.php?t=397445

If it's just one long cell, or if all the long cells are in a column, you could try using the "Text to Columns" feature (under the Data tab of the Ribbon). If you set it to be delimited by space (assuming your words are separated by spaces), this will make it so that each word occupies its own cell. Then when you use Find, it will highlight the exact cell.
Another option would be to copy the range you want to search and paste into MS Word. From there, you can search, and it will highlight the exact word.

export as a .csv then, then import so that it breaks each column on the space, then you can do what i said above, and then combine the cells. why don't you just copy paste the contents of the cell into notepad and do a seach & replace there?

There is no equivalent to the highlighting feature in Word in Excel.
What I would suggest is doing a Replace where you set the replace with to the word you are searching for, plus set the Format (using the Format... button on the Replace tab) to a yellow color (on the Fill tab of the Replace Format dialog). Once you have that, clicking on "Replace All" will get the effect that you are seeking (that is, all instances of the term "yellow" in the worksheet will now have a yellow fill color in the cell).
I hope this is what you were thinking of.
Mike

alt-e-f (find), type the word, then you can go thru the cells with em

Related

Txt document data doesn't format correctly in Excel

Disclaimer - this should be a very simple task, but clearly everything I thought I knew about excel is false.
I'm trying to copy and paste data from a txt document to an excel document. An example of a line I'm trying to copy from the txt doc is: 4512544425701264.
However, when I paste into excel it pastes as 4512544425701260 but displays in the cell as 4.51254E+15. This happens for each line of data.
I've tried numerous ways to fix this problem none have worked including:
Copied the txt data into a Microsoft Word document, then tried
pasting into the excel.
Resized the cell.
Tried each cell formatting option.
Tried opening the txt doc in Excel, even progressed through the text import wizard. Interestingly, I noticed the data preview on page 3 displayed the data correctly. But after proceeding past the importer, the data loaded with the same problem.
Tried on another PC.
Copied and pasting one line at a time.
The only solution I have found is manually typing out each line, however this is highly unpractical due to the large amount of data.
Any help/advice would be greatly appreciated.
To show full number rightclick on cell, choose "Format cells..". In "Number" tab choose "Number" category and set "Decimal places" to zero.
Unfortunately excel lets to put only 15 digits as a number. Every additional number is converted to 0, that is why your number 4512544425701264 is converted to 4512544425701260
If you don't need this number to be used in calculation, you can format cells to text format before pasting:
Source on digits limitation: https://learn.microsoft.com/en-US/office/troubleshoot/excel/last-digits-changed-to-zeros
In Excel, this is expected behavior (it's Microsoft, after all). I have encountered it frequently when dealing with UPC codes, for example. In order to avoid this, format the cells you are trying to copy this data to as "Text" BEFORE you copy any data over.
Copy your data (CTRL+C), then select the first cell in the range where the data is going, then paste only the values. This should take care of it.
If for some reason you still get scientific notation, provided the cells have the "Text" formatting, you can select that cell, click in the Formula bar and hit ENTER.
When you paste into Excel, try calling "Text import wizard" in the Paste Options. This will allow you to set delimiter (in case of CSV) and later data type of a column where you can select "Text" which will tell wizard not try to convert your data into numbers.

Copy TAB (\t) character in an excel cell

Basically I have a data like this
1 2 3 4
that is separated by a TAB(\t) character.
My problem is whenever i copy this type of data in an excel cell, the data is converted to
1234
and not
1 2 3 4.
Is there a way to do this? Thanks a lot in advance!
Tabs are not displayed in Excel. The tabs when copied in are still there just not displayed. One will need to replace them with spaces. This can be done in another cell with a formula:
=SUBSTITUTE(A1,CHAR(9),REPT(" ",4))
Or in mass in place with VBA:
Sub MyTabReplace()
ActiveSheet.Range(A:A).Replace Chr(9), " "
End Sub
Or with Replace:
Copy a tab character from your data
and paste it into the Find box,
then put spaces or whatever you want to replace it with in the Replace with box.
Using this method is easy and choosing an option in the Within list allows you to replace all the tabs in anything from a selection of cells, all of a sheet to the entire workbook. It can work for at least some other special characters too.
Replace panel may be got with control-H, or Find and Select in ribbon, or Edit menu > Find > Replace ...

Excel Copy and Paste data into Word - keeping bold and underline

I am trying to cut and paste Excel data into a Word document. The data is only in 1 column, and there are several cells that have bolding and underlining in them.
I would like to be able to copy and paste the data into a word, keeping the bold and underlining.
I have tried everything I can think of, but I don't see any way to keep the formatting in word.
Any help on this would be greatly appreciated.
Eric
Copy the table to Word as usual. Then go to Table Tools -> Layout -> Convert to Text and keep the formatting.
Convert to text

Excel 2010 - Hyperlink Text Only & Not Entire Cell

Is there a way to add a hyperlink to text only and not the entire cell in Excel 2010?
I am only able to insert a hyperlink which affects the entire cell (even white space after the text), but I wish to have it so that a user can click on the non-hyperlinked section of the cell in order to select the cell without activating the hyperlink.
Is this possible (ideally without VB)?
Many thanks.
I'm not sure.. I just wrote this, but it acts the same as adding a hyper reference (although you can still select the whitespace of a cell (after the text has finished) and it won't follow the link)
=CONCATENATE("This is your ", HYPERLINK("http://www.google.com","Google"), " link")
Just as a FYI, you can hold ALT key and click on a cell without it opening the URI
I got over this by turning off the "wrap text" from the cell formatting.
really, if you have wrap text turned on, the whole cell will act as a hyperlink. if you have wrap text turned off, only text will act as a hyperlink.
An indent (Home → Alignment → Indent: 1) makes the entire cell a hyperlink.
It's a very odd thing. If I link to a .doc or docx document, only the text is linked. If I link to a .txt document, the whole cell is a link.
I think it's just an odd excel glitch.

Pasting the same text copied from different sources behaves differently in Excel

Now this is a weird one
We have a project where we are reading some data from an Excel spreadsheet. Obviously this data has to be in a certain format. Some of the fields consists of numbers, but should be treated as text.
To stop Excel from being "smart" and change the cell types, I have set the format in the respective cells to 'text'.
Now here is the problem: some of the numbers we're pasting have spacing between the digits. When we remove the white spaces, Excel change the cell format to 'standard' and turn the text into the 2.42805E+11 format.
BUT: this only happens when the text is copied from some sources. If a paste a number copied from a textbox, everything turn out fine when we edit the spaces. If we copy the exact same number from a web page, Excel change cell format.
I thought copy-paste would be copy-paste, but obviously some formating or something gets along on the ride.
Does anyone know what causes this, or know have to get Excel to stop being "smart" with the formating?
EDIT: I found a somewhat peculiar solution to this. I recorded a macro that uses the 'Paste Special' function with text as parameter, and overrided ctrl-v with it (in that particular spreadsheet). Works like a charm! Feels a bit "hacky", though. Can anyone think of a scenario where this will backfire?
Try using the Edit Paste Special command, it will give you some controls to choose what to do with the data.
For a taste of the complexity of what is really going on underneath, look in MSDN about Clipboard Formats. In short, it isn't all Excel's fault...
A common user trick copying data out of excel is to paste it into Notepad and cut it back to the clipboard, which flattens all the formatting down to plain text. It won't help you for pasting data into Excel, however.
Copy-paste in windows retains formatting. One way to get rid of the formatting is to paste the text into e.g. notepad first, then select and copy it again. This loses any copied formatting.

Resources