Replace Specific Numbers With Specific Text

Mar 13, 2008

Is there a way to make a macro convert '1' to Yes and '0' to No? I have 2 columns (F and G) in a worksheet that contain the value of 1 or 0, but I need to convert them to Yes or No. I have tried some fo the samples but they pop up a msgbox which is not required.

View 2 Replies


ADVERTISEMENT

Formula To Find Specific Text And Replace With Alternate Text?

Mar 4, 2014

I have a worksheet with several columns. I need a formula to search column D only and each time a specific location is identified to replace that location with alternate text. Example (ORIGNAL TEXT):

Column Dtext to text help.xlsx
BIRD
FISH
DOG
BAT
BUG

I need to search that listing and each time the word BIRD is mentioned have it replaced with FEATHERS and each time DOG is listed have it replaced with TAILS Final result would look like:

FEATHERS
FISH
TAILS
BAT
BUG

All other text should stay the same and replacement text should appear in the cell of the text it is replacing. This is a sheet used by multiple people several times a day and so the Find/Replace option really won't work.

Have working on this for at least 6 months and it just isn't going to happen for me. I thought I could use a Conditional format, but that is producing no results either.

View 3 Replies View Related

Search For Specific Text In A String And Replace

Dec 3, 2009

I have a text such as:

fdfs&s_kwcid
sfsd&s_kwcid=dfsads
&dfsdaf&dsafdsf&s_kwcid=
fdsf&dasfsdf&s_kwcid=dsfasfsdf

I want to do is search for "&s_kwcid" or anything containing "&s_kwcid" and replace it with blank. So above would then read:

fdfs
sfsd
&dfsdaf&dsafdsf
fdsf&dasfsdf

I tried =IF(SUM(COUNTIF(E2,{"&s_kwcid*"}))=1,E2,"") but it didn't work. I tried auto filtering, and using contains &s_kwcid* but it didn't filter out results, but find &s_kwcid did find results for text anywhere in string, so I know the problem is there.

View 5 Replies View Related

Macro To Find Replace Specific Text In Multiple Sheet Names

Sep 13, 2010

I need a macro that will look for a specific text string in the tab names of the workbook and replace it with a new specified text string (leaving the rest of the existing tab names). In other words, a simple find/replace but applied to all tab names in the workbook rather than cells. Ideally, I'd like it to pop up something and ask for the text to find and the text to replace it with, so I don't have to edit the macro itself each time I want to use it, but editing the macro each time is fine. Either way will be wonderful.

View 9 Replies View Related

Specific Cells Populate With Specific Numbers When A Value Within A Range Is Entered

Oct 9, 2009

Here is what i am trying to achieve. If the date 2/20/2010 is located at F53 & the cell next to it at H53 is populated with a number between 1 & 16, then i want the cell at J11 (42 rows further up) to auto populate with the number 1. When this occurs the cells beneath this, from J12 to J52 should also auto populate with the with consecutive numbers from 2 to 42. Would also like to see the cells with numbers 1 to 28, automatically format to orange & the cells containing numbers 29 to 42 automatically format to yellow. I plan to have this condition repeat several times later in the year, at dates that are to be decided. When these dates are decided i want to be able to enter a number from 1 to 16 & next to the date & all of the above automatically occurs.

View 14 Replies View Related

Find Specific Text In Cell That Matches Range Then Display Specific Text?

Aug 5, 2013

I'm trying to find vehicle make and model in a cell containing a lot of text and then display that in the formula cell. For example if A1 is a paragraph that contains somewhere within it "Ford" & "Ranger". I want B1 to display "Ford" and C1 to display "Ranger". I have a list of vehicles makes (column A) and models (column B) on a seperate sheet.

View 2 Replies View Related

Extract Numbers With Specific Text From Right Or Left

Aug 15, 2009

i use this code to get the value from the cell that contains "Ink"., and i got the codes from reading other problems:

=IF(SEARCH("Ink",a1),LOOKUP(99^99,--("0"&MID(a1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},a1&"0123456789")),ROW($1:$10000)))),"")+0

like this in a1 -> Ink 253.00

and totally working! but the problem is if the word "ink" in the left of the value --> 253.00 ink and the result is #NA, is there any way that i can get the value whether the word Ink is in the left side or right side of the value?

also bothered why is it if the word is not "ink" in the cell and return -> #value since i put ("") in the last part of If function(value if false)?

View 2 Replies View Related

Extracting Specific Number From Text Containing Other Numbers

Apr 27, 2007

I have a text field which contains multiple numbers ( reference #s and phone #s). I need to extract the reference # which will be either a 7 or 8 digit number. That number will not fall in any particular place in the string.

View 9 Replies View Related

Extract Specific Numbers From Text Strings

Jun 26, 2008

Need to write a Macro to only extract numbers from text, characters and numbers fields. I would like the numbers to be extracted in column B, C & D. I am only interested in numbers that begins with 200's, 800's and 4500's. see the attached file.

View 3 Replies View Related

Find Numbers Next To Specific Text Characters In A Cell

Oct 15, 2012

I'm faced with receiving data for time, in a text format, as follows:

Example of possible cell contents...

20secs
40m20secs
2h40m20secs

I'm not interested in the secs value but need to isolate the h (hours) and m (mins) values to use in another formula as numbers. The time could be shown in either of the above formats with either; (a) just secs, (b) mins & secs or (c) hrs, mins & secs... and of course the hours or mins values could be 1 or 2 digits in length. How can I determine (using formula only, not vba) what the values for hours and/or mins are dependent upon what is present?

View 9 Replies View Related

Delete A Row If It Has A Specific Text In A Specific Column

Jun 21, 2006

I need a code that will delete a row if it has a specific text in a specific column.

In this case in column W if there is anything that starts with '>TC' I need that entire row deleted that its in.

View 7 Replies View Related

Count / Sum Numbers In Column Where Specific Text Exists In Adjacent Cell

Jan 19, 2008

One has numbers the other has "YES" or is blank. I want a formula to look at the second column and where there is a "Yes" then count the number in the same row in the first column.

View 4 Replies View Related

Search Specific ID - Sum And Replace

Jul 21, 2012

I have a Master work sheet consisting sale data of more than 400 Sales person for a period of 6 Months.

The Employee Codes are entered in column "F" starting from F6, F7, F8 and so on....

G5,H5, I5, J5, K5, L5 to GV5 has the product names.

G5,H5, I5, J5, K5, L5 to GV5 has the qty of product sold by that concern sales person.

Since each sales person's occurrence is 6 times in the master sheet, I would like to have a code to search each and every sales person by their employee ID through out the entire master sheet, sum each product they sold as per the product name and get it entered in their concern cells.

View 2 Replies View Related

Replace Date With Value From Specific Cell

Feb 28, 2014

If a cell has a date in it (date payment received) I would like to replace it with the value of the payment received that is given in a different cell - how do I do it ?

View 2 Replies View Related

Search And Replace Specific Character?

Jun 1, 2012

In a cell(s) I have for example {text}dd%2BMore_Text}

what i want to do is search and replace the final }

so it should be {text}dd%2BMore_Text

the regular search and replace in excel removes all } which is not what i need.

View 6 Replies View Related

Replace Specific Character ONLY If Its LAST In The Sheet

Nov 27, 2013

Switched to Excel after using OpenOffice and I'm stuck on knowing what an old a 'find and replace' formula would be in Excel. It would remove a specific character (or word) ONLY if it was the last characters in a cell.

The old find and replace for open office:
Find: (.*)/$
Replace: $1

It's not that important now to delete a word, mainly the last slash '/' ONLY if it's the last character e.g. this data has 2 rows with a '/' as the last character

website.com/page
website.com/page/
website.com/page/page/

Running my old find and replace formula would remove the last slashes, but leave the others

website.com/page
website.com/page
website.com/page/page

Need simple replacement to the find and replace but a formula is also right.

View 2 Replies View Related

Replace Values Between Specific Characters

Nov 29, 2009

I have been trying to do the following but have not been successful. thanks in advance for helping!

- i have lots of text strings on one worksheet

- some text strings have <randomstring>, some even have multiple instances of <randomstring>, but others don't have a <randomstring> at all

- what i want is remove anything within "<" and ">", including the operators "<" and ">"

i have done this so far, with simple text functions, have each of the following lines in separate columns (text string column is "C"): .....

View 10 Replies View Related

How To Use Macro To Replace Specific Rows

Sep 26, 2011

Using Macro, I want to replace the height of odd rows like row 1 , row 3, row 5, etc without making any replacement to even rows.

View 4 Replies View Related

Using VBA To Replace Data In A Specific Cell

Apr 26, 2006

I have a spreadsheet, where I am measuring dimensions for a cpk test. My question is, can I use vba to format the calculated cpk cell so that if it falls below a certain value it replaces that value with whatever I have specified in vba? Was wondering is this is possible.

View 5 Replies View Related

Looping Through Specific Worksheets - Find And Replace

Mar 7, 2013

Where i want to carry out a find and replace specific to different worksheets.

At the moment i have:

Sub Changeme ()
Dim SH As Worksheet
Dim rng As Range
Dim rCell As Range

Set rng = ActiveWorkbook.Sheets("sheet3").Range("A8:C10")

[Code] ........

Where column A contains the tab name, column B contains what to replace and column C contains the replacement.

View 8 Replies View Related

Find And Replace Macro Based On Specific Cells

Sep 12, 2009

After much fretting over this (and many other Excel issues), I've decided to seek out some assistance. I've included an example with columns, because I'm not very fluent in Excel terminology.

View 5 Replies View Related

Excel 2010 :: Find And Replace Within Specific Column?

Oct 1, 2012

I have an excel workbook where some sheets have a column called "Name" in Row 3. The column where "Name" appears shifts based upon other criteria so it's not set within 1 specific column.

The real data for the "Name" column starts in Row 5. Is it possible to create a macro that looks in Row 3 for "Name", then once it finds that column, it does a find and replace from Row 5 to the end of the data and replaces every space with a ^.

For example, if I have:

Row 3 Name
Row 4
Row 5 John Smith
Row 6 Jane Doe
Row 7 John Doe
Row 8 Jane Smith

I'd like the data to become:

Row 3 Name
Row 4
Row 5 John^Smith
Row 6 Jane^Doe
Row 7 John^Doe
Row 8 Jane^Smith

I'm using Excel 2010 if that impacts anything.

View 1 Replies View Related

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.

View 9 Replies View Related

Search Across Columns By Row & Replace Specific Cell Contents

May 2, 2008

I have created a desk planning spreadsheet in excel. Each week a mailmerge sends out an email to everyone in the office asking them to confirm when they will need a desk in the next week.

As the normal employee doesnt get involved in desk planning I want them simply to state whether they will be in the building or not by entering "GH" (our building) in a cell under each day in the email they get sent.

When the reply comes in we select the cells from the email and then paste them into the desk planning spreadsheet.
-----

WHAT I NEED TO DO:
Select some cells (must be in the same row - that we have just pasted in).
Press a button on the Worksheet labelled "Auto Assign Desk", which does this:-
For each cell that contains "GH", replace with the right-most cell to the left of the selection that starts "GH_"... (this is the start of a unique desk reference (GH_1_1, GH_1_2,etc.)
-----

This will assign the employee to the desk they were sat at last, when they are in the office next week.

View 7 Replies View Related

How To Sort Item Numbers Targeting Only Specific Numbers

Dec 28, 2013

How can you sort item numbers, targeting only the numbers in the mock up file?

Example:

item number: GW14SO0000003
item company: GW
item location: 14SO
item counter: 0000003

How can I only sort the item by the last 7 digits "0000003"

View 1 Replies View Related

Change Table Filter Greater And Less Than To Specific Value In Specific Cell And In Another Worksheet?

Apr 16, 2014

I would like to change the greater than number to the value in cell 'I11' in sheet 'Linear Programming Data' and the less than number to the value in cell 'I12' in sheet 'Linear Programming Data'. The code I am using was done by recording a macro since I don't know how to code in vba.

Code:
Sub Results2()
' Results2 Macro
' copy table filter power by greater than and less than
Sheets("Finalizing Results 2").Select
Cells.Select

[Code] .......

View 2 Replies View Related

Macro To Copy Specific Cells From Row From Source &amp; Stop When Next Row Cell = Specific Value

Nov 7, 2008

I have a protected template and unprotected source worksheets - - - what I would like to happen is for the macro to start and if the source worksheet cell B3 equals "Report Total" then stop - otherwise copy template worksheet then copy 6 specific cells from the source to paste values to specific cells on the newly created worksheet (B_ to C7, D_ to I7, E_ to C9, F_ to K9, A_ to C11, M_ to K11 and then K13=F13-30)

After that then start all over again unless the next row’s cell (B4, B5, B6, . . .) is "Report Total" then stop - - - the row count could be from one to a couple hundred.

Here is what I have so far but I know that with each copy the name will change and as it goes down the source file each row will change and I also need help with that.

Sheets("ee template").Copy After:=Sheets(3)
ActiveSheet.Unprotect
Selection.ClearContents
Range("I7").Select
Selection.ClearContents
Range("C7").Select
Sheets("source").Select
ActiveCell.Offset(0, -11).Range("A1").Select

View 9 Replies View Related

Running A Specific Maro Through The Combobox Feature When A Specific Word Is Chosen

Apr 21, 2006

I am trying to run a macro once a particular word shows up in the combo box. now in my chase i could try to use VBA code to run the macros such that once the arrow is used in the combobox to select a certain word a particular macro labled the same name as the word chosen would run.

View 5 Replies View Related

Format Cell To Always Insert Specific Thing When Specific Name Is Typed?

Apr 4, 2013

Is there a way to format cells to where - when you type in a certain person's first name, it will insert something entirely different?

This has seemed to have happened on a computer at work.

In Excel, when I type in "Martha" then tab, or otherwise leave that cell, Martha changes to "Cool"

If I type in anyone elses name - it stays that name. But if I type in "Martha" .. it changes to "Cool" with the bullet and the word Cool.

View 6 Replies View Related

For EACH Cell In Specific Range Meeting Specific Criteria - Call Sub

Jul 1, 2014

Looking to have a macro call a subroutine every time it finds a cell meeting specific criteria.

Code in plain english would look like this:

For EACH cell in range A1:BZ500 meeting the following criteria:

Cell value is a date

AND

Cell's date is at least a week or more in the future

AND

Cell background (Fill) = RGB color code: (R:191 G:191 B:191)

DO the following:

Call repeatingsub

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved