Multi Substitution -- No VBA

Jul 24, 2008

What is the best method for searching and replacing within a string when the string to be replaced could be say 1 of 10 options and could appear in any position within the string ? To make it easier let's say wherever those sub strings appear they are to be replaced (ie none to be left behind), and lets say they are all to be replaced by another character -- specific to each string being replaced.

Example:

Say I want to replace any digits in a string, to be replaced like for like as follows:

0 -> a
1 -> b
2 -> c
3 -> d
4 -> e
5 -> f
6 -> g
7 -> h
8 -> i
9 -> j

Sample strings:

Luke is 0 Donkey
Luke is 0 Mul4
0nd Luk4 is not very cl4v4r
Luke can not h40r very w4ll.

etc...

View 9 Replies


ADVERTISEMENT

Word Substitution

Nov 25, 2009

I have a list of abbreviated words in product descriptions (about 6,000 items), need to replace with proper words. I am now doing this with Edit, Find, Replace and I check the list manually with my eyes in order to avoid replacing wrong words. It is very, very time consuming (I've already spent 2 days on this job).

Just wonder if there is any way to do this faster and more accurate.

View 6 Replies View Related

Cell Replacement (Substitution)

Feb 17, 2008

I have a cell with a url in it, Say in A1 I have the following url:
mrexcel.com/forum/forumdisplay.php?f=10

I want Cell B1 To copy what's in cell A1 but delete everthing after the backslash"/" In B1 want it to show: mrexcel.com

What I have now doesn't work, which is:
SUBSTITUTE(A1,"/*","")

An attempt to use a wildcard (*) to remove everything after the backslash. Doesn't work
What's the correct formula that will allow me to do this automatically?

View 9 Replies View Related

Adding Additional Characters For Substitution

Sep 20, 2008

i have a macro that copies info from cell in row A and uses that info to name the whole row, now if the name has a space between the words it uses _ (underscore) substition so i don't get an error (when row name is defined - you can't use any special characters or spaces) i was wondering if anyone can help me to add "-" besides the space

here is the macro
Sub Macro1()
Dim a As Long
For a = 1 To Cells(Rows.Count, 1).End(xlUp).Row
Cells(a, 100) = Application.WorksheetFunction.Substitute(Cells(a, 1), " ", "_")
ActiveWorkbook.Names.Add Name:=Cells(a, 100), RefersToR1C1:="=Sheet1!R" & a
Next a
End Sub

View 9 Replies View Related

CSV Import: Dynamic File Name Substitution

Nov 20, 2006

I'm trying to get a user friendly button to simply select then import a csv file into excel. I recorded a macro which runs on clicking a command button. below is the

Sub csv1()
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:Documents and SettingsBatDesktopCSV_53415_20061120_091752.txt" _
, Destination:= Range("A4"))
.Name = "CSV_53415_20061120_091752"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 437..............................

View 3 Replies View Related

Substitution Of Specific Characters In Alphanumeric String

Jun 13, 2013

I have a large column of text with multiple entries similar to this: PC3L-10600R-9-11-A0. I need to replace the "11" with a 13. However I have other instances where the 11 appears (PC3-12800E-11-11-D0 or PC3L-12800R-11-11-A0).

I have found that I can use SUBSTITUTION

{=SUBSTITUTE(A50,H50,I50,1) and =SUBSTITUTE(A61,H61,I61,2)}

to handle the specific instances but I'd like to have a way to combine this type of function logically in one command.

View 9 Replies View Related

Return Row Index Of Selected Items In Multi Column Multi Select Listbox

Jun 30, 2014

I have a listbox with 8 columns. Multiselect is enabled, and it must stay this way. As part of my program, after the user presses a command button, I need to use the row indexes of the selected rows in order to copy the selected information into an array which is then placed in a different listbox, and then delete the items from the original list. Pseudocode of what I want to do:

[Code] .....

But my understanding is that .ListIndex does not work this way with multiselect listboxes. I've tried searching for a solution for a while, but I cannot find one.

View 5 Replies View Related

1 Column Into Multi-columns And Multi-rows

Jul 16, 2013

Let's say I have one column of;

1
2
3
4
5
6
7
8
9

What is the most efficient way to change this into '3-columns & multi-rows' like this?:

1 2 3
4 5 6
7 8 9

The actual list is a lot longer and numbers are not in order.

View 7 Replies View Related

Concatenate Multi-row Cells Into One Multi-row Cell

Aug 21, 2013

I have multiple rows within a cell separated by Alt+Enter, and would like to combine them as follows:

Desired Result

First
First
Name
Name
First Name
First Name

View 2 Replies View Related

Multi Option Sum

Jan 8, 2010

I want to sum data in COLUMN C that is related to COLUMN B if the COLUMN F is blank.

View 10 Replies View Related

Multi If Count

Dec 7, 2008

I have to have to have 2 criterias for it to pass before the items are counted

I have 2 columns of data.
1 being a list of clients names, and 1 being if the Connection/Abandoned

Client Column is colum "F"
Connection/Abandoned is colum "J"

I need to count how many Connected and how many abandoned for each client

So if "F" equals "BPS" and "J" equals "Connected", then count.

View 13 Replies View Related

Multi Choice Sum

Feb 4, 2009

I have a spreadsheet which have data auto inported. (thanks to previous help on here). I have now come up against the next problem.

I wish to make the mark up variable depending on 5 options (workings I13;I17)

the choice is selected in column b after the data has been inported

then down on Rows 75 - 79 i have the totals of my choices.

Unfortunatly i do not know how to do a variable sum

I have attached a copy of the workbook.

View 6 Replies View Related

Multi Condition Sum

Jan 22, 2007

I am trying to sum the error points of staff in their work done based on a specific time frame. For example,from 4.00pm to 4.30 pm as per the attached. I tried sum product but did not work. Is there an addition formula that I need to use when incorporating time ?

View 6 Replies View Related

Sum As Per Multi-lookup

Jul 31, 2008

In the attached file I managed to sum up the Quantities per Material & Category. The Original DATA is presented in columns A:E. The requested results/Formulas are at Cells B2:B4. My Question is very simple: Is there a way to sum up the Quantities WITHOUT the Help-Column G !? If so - how ?

View 9 Replies View Related

Multi-Level Reporting

May 15, 2008

I have a 2-column employee file. Column A has the employee id and column B has the manager's employee ID. The reporting layers can get pretty deep. In this example, there are 6 layers of reporting. For example, Employee id 1200 (which is not in column A) has 2 employees. One of them (1712) has several employees, one of whom (1680) has employees reporting to them and so on for several levels.

Is there a way in Excel (2003 or 2007) to summarize the reporting structure? For instance, I need to know all of the employees that report up through emp id 1712 - not just that report directly to 1712, but all those under 1712's tree.

View 9 Replies View Related

Multi Argument IF Function

May 23, 2008

formula to calculate the commission based on 9 cases each case is subjected to 4 differant arguments.

here is the formula for the first case (the answer if true 1.4) & the last case( if all the casses are fails it should show 0.6) u will find it in cell K5

=IF(AND(E5>=20,H5=1,I5>=80,J5>=80),1.4,0.6)

this is only 1 case HOW can i calculate it basd on 9 casses??

View 10 Replies View Related

Multi Lookup A Name And Its Corresponding Code

Jun 16, 2008

I am currently using the formula below to lookup a name and its corresponding code. I type the code into cell A13. The name is fixed at B1. This formula then finds the name (B1) in a table and matches the column header of the code which I type into A13 and returns a value. This allows me to type in different codes and quickly see the value corresponding to the name. I also want to be able to type the coding into A13 and be able to see a listing of all of the names attached to that coding.

VLOOKUP(BETA!B1,MAINTABLE,MATCH(BETA!$A13,MAIN!1:1,0),FALSE)

View 9 Replies View Related

Button With Multi Choice

Dec 10, 2008

is ther away of usin 1 button to open any 1 to 46 worksheets
i know i can make a button to open a sheet with the command
sheet2.activate
but this means i would have to have 46 buttons on the fron page and thats to many

View 6 Replies View Related

Multi Cell Cursor Will Not Sum

Jan 8, 2009

Usually when I select a number of cells with my cursor excel adds up the cells and shows a total on the bar. It's stopped doing this now and will only show the 1st cell showing "max=No"

View 3 Replies View Related

Multi-Conditional Average

Mar 10, 2009

See attached example for reference - I am trying to calculate an average if it meets 2 conditions, i.e, calulate the average for the Lead Time column if it is a Bag and On Time. Hope you guys can come through as always!

View 4 Replies View Related

Multi Arc Shape In One Group?

Jul 18, 2014

How to draw multi Arc Shape in Union group Locks Like (Smiley Face 11)

View 2 Replies View Related

Print The Multi Sheet

Mar 3, 2009

I know that there is an easier and shorter way of doing this;

View 6 Replies View Related

Multi Cell Sheet Name

Jun 16, 2009

multi cell sheet name rewrite this code as it fails at the

View 2 Replies View Related

Compressing Multi Used Variables

Jul 3, 2009

What i would like to know is, In the code im using to make a phone call from a userform the varibles are set in each and every sub. It all works well though could they be compressed into only being used once like an option variable or somethink like that.

i know that more that one variable can be decleared at the same time of the same type "dim x, Y, z as long.

View 7 Replies View Related

Multi-page Tab Caption

Oct 25, 2009

Can i have the caption of a multi-page tab caption change on the result a given cell?

i.e. in the attached example i would like page 1 to be the result of B2.

View 8 Replies View Related

Multi Column ListBox :: How To Set Up

Jan 12, 2010

I am not grasping how to setup a multi column listbox (2 columns).

View 13 Replies View Related

List Box Multi Select

Jan 26, 2010

I have a database that is setup and I want to add a ListBox to the userform and I know how to do that and add all the listbox entries.. my trouble is how do i save the selected entries(multiselect) to sheet and load them to the form (what was selected) using what i have below?

HTML ListBox1 = cells(n,5).value

and to save

HTML cells(n,5).value = ListBox1

View 4 Replies View Related

Multi-Conditional With Wildcards...

Jun 23, 2009

I've got a column with client codes (col. B) and another one with material codes (col. C). Both columns mix numbers and text. First condition: If cells in "B" column equal a specific code ("DA2")

Second condition: AND If the cells in "C" column start with a certain pattern ("30") followed by some other pattern (four random digits, a dash, and two or three more random digits). THEN a new cell should say "T1", Else it should just copy another cell.

View 5 Replies View Related

How To Link Multi Worksheet

Oct 18, 2011

My company nature is real estate

I need to record every agents closed deal.

For example i have agent A, B, C & D

I have a worksheet for each agent.. but I need a overview sheet for all the deal closed.

Is there a way that if I update the overview sheet and setting the formula in A, B, C & D worksheet that when there is their name appear in the overview sheet will record in their own sheet as well, so I don't need to update the overview sheet and individual agent sheet.

View 1 Replies View Related

Excel Multi-Tab Scripting

Nov 27, 2011

I have been tasked with doing a retail over/short Spreadsheet. The spreadsheet will be 13 tabs with 12 being the months and the 13th being the yearly summary. On each sheet will be the cashiers name.

I need to be able to script the addition of a new cashier and have them added alphabetically to all 13 sheets and at the same time keep all currently entered information with the appropriate person

End user only wants to use Excel

View 1 Replies View Related







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