# Find And Replace Every "YES" In The Worksheet With The Letter Y

Sep 10, 2009

For example this function is as follows: =IF(OR(AND(X1=4674,Q1="YES"),AND(X1=5400,Q2="YES". I wanna replace every "YES" in the worksheet with the letter Y for example.

## How To Find Any Number Greater Then (x) And Replace With A Letter

Feb 22, 2007

how I could search for any number great then (x) and replace it a letter

For example I have an excel table with a series of weights.

lbs
6001
4560
6789
2000
5656
8879
1243

I like to replace any number greater or equal to 6001 lbs with the letters SS.

Example:

lbs
SS
4560
SS
2000
5656
SS
1243

Then I'd like do the same thing again but this time replace any number less
then or equal to 6000 lbs with the letters SS-LL .

Example

lbs
SS
SS-LL
SS
SS-LL
SS-LL
SS
SS-LL

## Find And Replace A Specific Letter/number Combination

Jul 9, 2008

I have a column of references I wish to standardize. Contained within a general text description there is also an order-specific reference number, which is not relevant for my purposes. I wish to find all of these numbers and replace them with nothing (i.e. retain the rest of the description).

The reference numbers are always in the format "P#####/##". Unfortunately these references are in the middle of the text field, not at the start or end, so I can't use a LEFT or RIGHT formula to delete them.

Once these reference numbers have been deleted I will then be able to filter for unique records only. When I do this at the moment the filtering has no effect due to these specific reference numbers.

## Find And Replace On Every Worksheet

Nov 19, 2008

I need to do a find and replace on cell E13 on every worksheet in the workbook - a several hundred pages. The sheets are individually named not Sheet1, Sheet2......

First of all I need to find say "oldchippy" (without quotes) in cell E13 and if its there replace it with "oldchippy2", if its not there leave the contents as it is.

## Find And Replace Text On Worksheet

Nov 11, 2011

I need some vba coding which will find and replace text on a worksheet. This would normally be straight-forward, however some text needs to be replaced by text which already occurs in the worksheet, and without it changing as well (if Find/Replace can perform two Find/Replaces at the same time???).

Here is the detail and what I am trying to accomplish: I have two worksheets each with a table of data.Worksheet 1 has a lookup table with three columns of data (column a and b are lists, with c being a formulated column which is dependent on the user selecting either column a name or column b name). I have done this easily enough using data validation on cell \$C\$1.Worksheet 2 has a user input table which column 3 is a dropdown validation using the named range "UsedName" from Worksheet 1.

I want the selected dropdown names to automatically change when the user changes Old Name to New Name (and vis-versa) on Worksheet 1.The list of values in the data validation dropdown list change well enough, but not any of the existing returned values. When I tried to use vba coding to Find & Replace, I run into issues because (Substanital and Important) are used in both instances, but at different levels with different matched names Important/Relevant.

Worksheet 1
A B C D
1 Cell with dropdown list New Names
2 (Old Names, New Names)
3
4 Old Names New Names Names Level
5 Equal Equivalent Equivalent 1
6 Dominant Critical Critical 2
7 Important Substantial Substantial 3
8 Substantial Major Major 4
9 Relevant Important Important 5
10 Minor Irrelevant Irrelevant 6
formula for column C =IF(\$C\$1="Used Names", A5, B5)
column C is name ranged "Names

Worksheet 2
(Worksheet 2 has another table which has various data. One column which is a drop down list being pulled from Worksheet 1)

A B C D
1 Bob 25% Critical 19
2 Frank 60% Important 33
3 Ellen 40% Substantial 5
4 Ellen G 20% Substantial 12
5 Gary 55% Equivalent 100
6 Jo 50% Major 8
7 Peter 40% Important 22
8 Kim 12% Equivalent 30
9 Shelley 75% Substantial 15
10 John 75% Critical 90

so I want column C to automatically change from these New Names to the corresponding Old Name of the same level. So Critical would become Dominant, Important would become Relevant and Substantial would become Important.

## How To Do Multiple Find And Replace Within Same Worksheet / Workbook

Oct 17, 2013

I looked everywhere but did not find any tools to complete the task I want, "convert" FW ruleset that look likes:

access-list outside_access_in extended permit tcp 192.168.0.10 255.255.255.254 host 172.23.34.90 eq 3978
access-list outside_access_in extended permit tcp 192.168.0.10 255.255.255.254 host 172.23.34.89 eq https
access-list outside_access_in extended permit tcp 192.168.0.10 255.255.255.254 host 172.23.34.89 eq 3978
I do want to replace all the IPs with a new values like:Original
New

172.23.34.89
172.1.1.1

172.23.34.90
172.1.1.25

172.23.34.43
172.5.2.1

192.168.0.10
192.168.0.10

192.168.0.108
192.168.0.95

192.168.0.130
192.168.2.21

## Replace The Letter

Dec 3, 2008

=IF(R16="A",D11,IF(R16="B",G11,IF(R16="C",J11,IF(R16="D",M11,IF(R16="E",P11,0)))))

i want to replace the letter A,B,C,D,E, with numbers from 1-5.
When I take of the """" and replace the letter with the numbers the formula does not work.

## Replace A Letter With A Word

Aug 10, 2009

Column A has cells showing either Y or N I want Column B to take a Y and convert it to a Yes and N to No. I tried an IF statement but it wont seem to work.

## VBA - Replace Cell Value With Sheet Name For Sheets Beginning With Certain Letter

Jan 10, 2014

I have a workbook with a bunch of sheets and I am interested in the sheets that begin with the letter "P". Each of these sheets is named "P###" with #s ranging from 0-9 and not consecutively.

On each of these sheets, the various formulas link to the cell O37. I would like to replace the value in cell O37 with the name of the sheet "P###" for all sheets that begin with P.

## Excel 2003 :: Find And Replace Missing The Ability To Replace Values?

Feb 5, 2009

This problem has come up fairly frequently lately, and I'm not sure how to fix it, or if this is by design...but in Excel 2003 I can't seem to do a "Find and Replace" based on the value of a cell. I can do a find, based on cell value, but the moment I change to the replace tab, the "values" and "comments" are missing from the "look in" dropdown.

I've only noticed this when I'm trying to replace on a filtered list, so I'm not sure if that is part of the issue.

Perhaps an alternative way of arriving at the same goal. Basically I have a worksheet with a number of filtered columns. They are filtered just right, using custom filtering, and so I do not want to undo the filters. In some columns I have formulas that are returning #VALUE! errors. I'd like to replace all of these cells with NA.

## Excel 2007 :: Find Text And Replace It With Same Text Only In Italics In Worksheet?

Aug 18, 2013

I am trying to find specific text throughout an excel document (2007) and replace it with the same text but in italics. I tried using the options/format function and selecting italics for the "replace" text but it replaces the entire cell text in italics instead.

## Find And Replace To Not Replace Characters Found As Wildcards?

Jul 2, 2013

I recently became owner of a spreadsheet with some issues, and I am trying to make it useful. Each row has a URL of a blog post, and I want to extract the date from it (which is present in each URL) while getting rid of the rest of the URL. I was able to get rid of everything up to the year (which comes first), but then the URL continues, for example, 2013/05/16/the-rest-of-the-url/ and I would like to just have 2013/05/16 remain.

I am trying to use find and replace with the find box reading 2013/??/??/*/ and replacing it with 2013/??/?? which effectively erases everything else in the url, but leaves ?? instead of the numbers. Is there any way to have it so that it keeps whatever was in the original box?

## Doing Find / Replace Not Working If Replace Text Is Too Large

Feb 5, 2014

[Code] .....

Trying to repeat a 550 or so character statement with a find/replace however I am getting type mismatch errors. When I use a smaller message in the "replace" it works.

I need it to post a message exactly as long as what I have in there. How do I get it to work?

## Catching Errors When Using The Find / Replace Function / Replace All

Apr 20, 2006

Need assistance with the code for catching errors when using the find / replace function in excel? In particular, I am trying to write code to break to an error message when the value or string searched for isn't found in the find / replace. At the minute I have just copied the standard code using a macro and all this does is return a message box saying X entries replaced.

## Embedding "Find" Replace Function In Worksheet

May 28, 2009

I'm trying to put the "Find" Function inside my worksheet to make it easier for the end user. How would I do this? See worksheet for example.

## Find, Replace With And Then Replace Adjacent Cell

Mar 18, 2009

I am trying to create a macro where it finds a a certain word in a column for example C. What i want it to do is find anything that says FWD_EUR and then replace that cell (e.g C2) with CASH_EUR_FWD and after it has done that it replaces the adjacent cell (e.g. D2) with EUR_FWD. I then want this to do the same with FWD_USD to CASH_USD_FWD and adjacent cell to USD_FWD.

## Find Replace :: Find All Occurences Of And Or AND And Replace With And

Oct 26, 2009

Range B3:B1000 is text strings. Column C2:C50 is a list of words that I would like to "Find" in Column B and replace with it's lowercase values unless they start off the string.

Example

Find all occurences of And or AND and replace with and
Find all occurences of With or WITH and replace with with.
Find all occurences of Or or OR and replace with or

## Mid Find First Capital Letter

Nov 1, 2009

I require a formula which finds the he first capital letter within a cell and returns the text, but I need it to ignore blank cells and the symbol *.

## Find/Return Nth Letter In Cell

Jun 12, 2008

I'm trying to write a macro where I match specific letters from one cell, with a column in another sheet so I can copy/paste adjacent cells. As an example I have a list of part numbers in column A of my Document1:

ex.
C12932-1
C13226-2

I want to be able to find the corresponding part number in column A in Document2:
ex.
C-12932
C-13226

However the proplem is clearly that the part numbers are written differently. So I need to just search for "12932" or "13226"

## Search Down The First Column And Find Any Instance Of The Letter

Nov 16, 2006

I have this piece of code

Sub do()
Dim i As Integer
Dim x As integer
x = 5000
i = 1
Do Until i = x

If Cells(1, i).Value = "C" Then
ActiveCell.Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRigh

i = i + 1

End If
Loop
End Sub

I want it to search down the first column and find any instance of the letter C and shift it (along with the entire row) over two clumns to the right.

## Knowing The Worksheet Number Or Letter

Apr 5, 2007

Without using VBA code, is there a way to display or find the worksheet number of the active worksheet you are viewing? All my sheets have names, and I have a lot of them.

When I want to loop through a set of them with code, I want to know what numbers they are beforehand.

## Find And Replace ....

Jun 9, 2009

I was wondering if it is possible to do this unique find and replace that is explained below.

I have many columns with data from our database. I have one column that has my html layout in it. I want to find within the html text data and replace it with data from another column for that row.

Example: We have [[manufacturer]] in the html area that we want to replace with data from our column called Manufacturer. So, it will replace the text in the html named [[Manufacturer]] with that rows Manufacturer data we have.

Is that possible to do?

## Find / Replace Using VBA

Oct 31, 2011

I have around 10 names which I want to replace with their code names. For Example, "Alan Richard" needs to be replaced with AR001. Problem is I don't know cell range and this name might appear more than once in the data.

## Find & Replace In VBA

Nov 15, 2006

I am trying to find and replace #N/A from a formula (link to another sheet) with nothing in the cell, using VBA.

Using this code it will do the first "find"
Cells.Find(What:="#N/A", After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
True, SearchFormat:=False).Activate
ActiveCell.ClearContents
Trying this
Cells.Replace What:="#N/A", Replacement:=" ", LookIn:=xlValues, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=True, _
ReplaceFormat:=False
Don't understand that because LookIn:=xlValues works in the first code.

I did try and place After:=ActiveCell,before this, but that does not work. I Get the same error.

I have more then one cell with the #N/A which I would like to get rid of. I want this to work only on this one sheet. The other sheet that the formula is pulling from does have #N/A, and that is okay, I need it there.

## Find And Replace ..?

Mar 2, 2007

I have a list of sales associates that are assigned numbers. For example, John Doe is 1022. The data I have to work with only shows his number 1022 but for my reports management wants the name John Doe. I have about 60 sales associates and have a VB code that 'finds and replaces'. The code is huge. It has slowly grown out of hand, with more sales associates added daily. I also have 22 sheets in one workbook with specific columns to search for the numbers to replace with the names.

This is what I would like to do. Have a sheet named associates, as more associates are added I would just have to add their name and number. Have two columns with headers column A - Associates column B Associate #. Name ranges for the two columns and write a code that says look in the sheet associate, at named range 'numbertoname' and if the current sheet 'total sales' I am in has the number 1022 in column C replace it with the name John Doe. It seems like it should be easy but.......I have tried and tried today.

## Find And Replace ‘*’

Sep 15, 2006

I am facing a strange problem with Find and Replace function of Excel. I converted a PDF document into a Word document. I copied the tables in the Word document to an Excel document. As the data had many ‘*’ characters, which I did not want, I used Find and Replace function to get rid of them. However, to my surprise, two things were happening.

1.When I tried to replace ‘*’ in a cell with ‘ Construction revenue ********************** ’, it was deleting all the contents of the cell.
2.When I tried to find all the cells with ‘*’ , it was selecting cells even without ‘*’

I tried various things like changing the format, pasting only values..etc, but nothing worked. Finally I had to use the Replace function of VBA to do the task. For further analysis I am attaching my Excel file with that data.

## Convert Lower Letter To Capital Letter Automatically

Mar 2, 2009

When I type a single lower case letter into a cell, what formula or conditional formatting should I use to always convert it to a capital letter automatically?

## Return Column Letter Based On The Letter In A Cell.

Dec 31, 2009

For the below formula is it possible to replace the B's (column location) with a cell Say Z146 which contains the letter B (or a number if thats easier and someone can tell me the numbers for each column).

When the formula is dragged into the next cell (down) it takes its column reference from Z147 and then my life becomes so much easier.

=IF(INDEX('Overs-Unders'!B:B,MATCH(\$C145,'Overs-Unders'!\$A:\$A,0))"",INDEX('Overs-Unders'!B:B,MATCH(\$C145,'Overs-Unders'!\$A:\$A,0)),"")

## Find Replace Not Working?

May 15, 2014

In the attached file I want to do a Find/Replace for 599 --> 599.0 and 428 --> 428.0. When I do a F/R for each it tells me it has made 3 and 5 replacements respectively but the data is not changed?

## Find And Replace With Criteria?

Jan 6, 2014

how to find and replace to prefix and suffix string/text, see this below :

JACK MANHOLD ----------- JACK
SISCA JACK HOLAND ------- JACK
ANDREW JACK ------------- JACK