Replacing Data

Feb 17, 2010

What it does is to activate the desired worksheet, and for 3 different choices replace what's there with what I want to be there. I put this together a while back, and it's working fine, but I'm sure it can be cleaned up a bit. Any help would be appreciated.

View 9 Replies


ADVERTISEMENT

Replacing Sheet1 Data With Sheet2 Data For Specific Columns Using Macro

Mar 8, 2014

I have data in sheet 1 like below

Custid loc city
123 us newyork
124 uk wales
876 in mumbai
Sheet 2
custid newcustomerid
123 756
124 394

Outputsheet:
Custid loc city
756 us newyork
394 uk wales
876 in mumbai

So it will check sheet1 custid with sheet2 custid. If both matches it will replace custid with newcustid.if cust id not exists it will load sheet1 recprds as usual.

View 1 Replies View Related

Replacing Data But Keep Certain Ones The Same - Macro

Mar 7, 2012

I have a monthly report with over 2,000 entries per column and it is dynamic (number changes monthly). I'm trying to replace individual department names with "department" but keep certain ones the same. For instance- A,B,C,D stay the same but E-Z need to be changed to "department". I first coded an If then macro but was unable to get it to loop and after researching looping realized that it may not be the best option especially with large datasets. Is an advanced filter macro the best option where I filter NOT A,B,C,D and then change the results to department?

View 9 Replies View Related

Matching Cells And Replacing Data

Apr 14, 2009

We have a report with 2 different sheets. On sheet one there are 13,000 rows of data and columns A-H are filled with different data. column A is our item id and column G has a date that states when the item was sold last. Well, the date in column G is wrong for about 7800 rows and needs changed.

The second sheet in the file is the 7800 rows with just the item id in column A and the correct date in column B. We are looking for an easy way to replace the rows in the first sheet with the correct information from the rows in the second sheet without manually replacing it line by line.

I almost forgot to add in, that in both sheets, column A with the item ids are the same item ids on both those sheets. So column A on sheet one has 13000 rows and included in those 13000 are the 7800 item ids on sheet 2.

We tried using the VLookup function that is incorporated into excel but had absolutly no luck, mostly because we have never used this function before. Sheet one already has all the lines of sheet 2, its just that sheet one has the wrong dates for the item ids and sheet 2 has the correct dates. im trying to replace the dates on sheet one from the dates on sheet 2 matching on the item ids from both sheets......

View 2 Replies View Related

How To Add More Data To Existing Cells Without Replacing It

May 2, 2007

need to add same data to every other existing cell in the column, but not replace the data already in it, but to add to it. I've tried to google the answer and look here, but I probably use bad search terms.

For example, I need to add "QW" after each of these lines:

data1432
data9292
data3933
data3939

so it would look like this:

data1432QW
data9292QW
data3933QW
data3939QW

I have a few thousand rows of data, so wouldn't rather not do it manually cell by cell by typing :-)

View 9 Replies View Related

Finding Data In 1 Worksheet And Replacing On Another

Feb 20, 2009

It might be a simple question but ive been trying for over a week now and i just cant do it (probably cos my knowledge of VB is useless )

What i need to do is:

I have 2 worksheets: worksheet 1 Articles and worksheet 2 New Prices.

Whats common on both worksheets is Reference Nº (In the case of worksheet 1 its column E and in worksheet 2 its B), what i need to do is replace the price corresponding to reference nº in worksheet 2 (In column E) with the price of the corresponding reference number in worksheet 1 (in column N).

Its a basic find and replace, but its a list of over 17.000 articles so the best way is VB, so i look through your lists and helps, but i just cant do it.

View 9 Replies View Related

Replacing Data Resolves To Lost Formulas

Feb 21, 2014

When i want delete all my data on my sheet 'Export Freshbooks' and replace it whit new data it says.Data lost.PNG

So i click on ok then... but when i do this all my Formulas Are gone....

My Formulas must stay no matter what.

Test Version - Copy.xlsm

View 5 Replies View Related

Code To Copy, Paste Without Replacing The Existing Data

May 21, 2009

I have two sheets - sheet1 and sheet2. Everytime i run a macro in the sheet1and manually copy the rows from sheet1 {starting (A2:AI2)} and paste as values it in the sheet2 {starting (A2:AI2)}.

Then I ll delete the available datas in the sheet1 and will run a macro for different customer.

Again I need to repeat the same action (manually copy and paste the datas to sheet2) without replacing the existing data in the sheet1.

In simple I require a macro code where it copy the available information in sheet1 and paste it as values in the sheet2 without replacing the existing one.

View 14 Replies View Related

Searching And Replacing Edited Data Back Into A Table

Jan 10, 2014

Basically I've got a back end worksheet with a huge table full of data (hundreds of rows, tens of columns) containing the data for a load of different contracts (each contract is on a different row).

I have all the information I want displayed on a front sheet by means of very simple lookups which looks for one contract at a time to display that information. What I would like to do is to be able to alter that information on the front sheet which will then go back and lookup that entry in the big table and overwrite the old data with the new. Effectively I want the excel sheet to act as a user form, but without actually using a form (a requirement from the people I'm doing this for). I'm struggling to find out how to do this as I don't know which VB functions I would need to use.

Each contract has its own unique reference number, so really what I need is some sort of code that will look for that reference number in the back end table, then look for any differences between what's on the front sheet and on the back end, and then replace anything that's changed.

View 4 Replies View Related

Replacing A#:G# To B#:H#

Feb 4, 2008

I have set up a forecasting module for my company, which I update on a weekly basis.

Basically, I centered my forecast on an 8 week average. Using all of the various equations in a regression, the 8 week series of data is used close to 500,000 times for each week’s forecast. What I am trying to do is move the 8 week series (A#:G#) and change it to the next set of cells (B#:H#) without having to do it using a filter and change all of the various instances of the occurrence. Because of the nature of the forecast, I will be "rolling" it forward every week, so to be able to do this all at once each week would save me a bunch of time. I tried using the Find/Replace fn by having it use the * symbol in place of the #...and this worked when I had it Find the data, but when I tried to use it to Replace the data, it reported an error?

View 15 Replies View Related

Replacing Missed Value

Dec 28, 2008

I have series of companies and output ,some values of output are missed how can be replaced by the average of nearst two years values of output or replaced by the following or previous value of output,sample of my data is attached.

View 4 Replies View Related

Removing And Replacing

Jan 28, 2009

how i would remove telephone numbers in a particular spreadsheet which are preceded with 44 which need to be removed and then replaced with a zero.

eg. 441234567890

View 9 Replies View Related

Replacing A Value With A Cell Name

Jun 12, 2009

I want to be able to replace the bolded and underlined areas of this javascript i have pasted in a cell with the value located in another cell. This means that those numbers would be replaced by a similar thing located in another cell. how can this be done? The way I would think you would do this by defining that say =b8 (an example of where the data could be coming from is ann excel formula, but not sure how to do this ...

View 6 Replies View Related

Replacing Text Through VBA

Apr 29, 2009

One of my friend send me a problem. I got frustrated and scold him lot to do work like this but then I tried to work on it. Although my Vb experience is not good enough.

The problem is this that we have different things written in cells in column A like this “SET-EDT SPRAY 3.4 OZ & BODY LOTION 3.4 OZ & TOILETRY BAG “ and in some cells “EDT SPRAY 1 OZ”

Now we want to replace value Oz with value Oz / (Value * 3.75) ml. the below example will clarify the situation: ...

View 6 Replies View Related

Replacing Number With Name

Oct 26, 2009

I would like to set up a worksheet where once an ID number is scanned, the next cell over is populated with that person's name. (i.e. Johnny scans his ID 234567 and in the next cell, "Johnny Smith" is filled in. I have a worksheet with the ID numbers in one column and names in another, I just don't know how to get a second worksheet with a formula that will allow me to do that.

View 2 Replies View Related

Replacing $ Amount With X

Apr 21, 2009

I need a formula that will replace a dollar amount with an X. In other words...I have 10,000 cels and half of them have dollar amounts in them...I would like to replace them with the letter X without having to manually do it...

View 9 Replies View Related

Replacing Shapes With VBA

Aug 30, 2009

I am a not too good programmer, but I construct chemotherapy regimens for my medical department. They are used to minimise the risk of wrong dosing to patients, etc. Every regimen is an .xlt file, and about a third of them (there are about 100) generate, in addition to pharmaceutical prescription, automatic letters to patients (for those regimens where patients administer oral dosing at home).

These patient-letters have the hospital's logo on them (the logo is a "shape").

However, the problem is that another hospital also wants to use my system. So I will have to replace all these logos with the other hospital's. I would like to do this in an automated way. I have received the other hospital's logo also as a shape.

I have already constructed a data-inserting macro in a separate file. This macro systematically opens each xlt file and replaces the text in key locations according to the file the macro is in (geographical names, etc.).

Is it possible to automatically replace the logo-shapes in a similar way, with these additional facts/wishes in mind:

1. There is always only one type of shape (a logo) in the xlt files.

2. Even though the shapes are exactly the same, it is possible the names are different.

3. The exact location for the shape is different in each xlt file, so I'd like the replacement to get the same top left coordinate as the one it replaces.

I have constructed 2 different files with the same data-inserting macro, each containing one of the logos (so I can change back to my own hospital) and geographic data. When the data-inserting macro is used, I'd like it to identify the shape in the data-inserting file (there's only one shape in this file), copy it, then identify the shape(s) in the present xlt file, and then replace these, in the exact same location.

View 9 Replies View Related

Delete One Value After Replacing Another

Feb 9, 2007

can anybody write a macro code for the following: We want to have five values representing operative time in a row with a mean in the sixth position. The hard part is to get a macro that will allow us to put in a new value in the first column and have it shift the other values to the right and dump the existing fifth value and come up with a new mean.

View 9 Replies View Related

Replacing Text Just Typed?

Mar 6, 2014

I'm currently building a large spreadsheet which will require numeric codes to be within certain cells. At present these cells are filled with alphabetical codes and the person using them has little knowledge of the numbers, is there a simple way for them to type in the alphabetical code and it to then auto-replace it with the numberical?

View 8 Replies View Related

Replacing Exact Value On The Same Cell?

Jun 4, 2014

Have a column of cells (521 rows), on the column each cell contains a group of number

Example:
27, 539, 484, 485, 506, 594, 523, 502, 505, 525, 541, 526, 527, 529, 542, 533
28, 540, 493, 494, 506, 594, 523, 502, 509, 525, 541, 526, 527, 529, 542, 530
28, 540, 493, 494, 506, 594, 523, 502, 509, 525, 541, 526, 527, 529, 542, 533

Let's say I would like replace 27 to 163 but when I find and replay the "527" also changed to 5163. How can i filtered out 527 and just change the 27. I tried Match Entire Cell Content, it doesn't work.

View 14 Replies View Related

Replacing Short Strings

Jul 28, 2008

I have a long list of locations in an excel spreadsheet, stating either the country (eg India) or for US locations the state (in a two letter format, eg NY). I need to change all the state location to say "USA". How can I do this, without doing 50 find and replaces? Can I do something based around the fact all the USA locations are two letters, whereas all the others are longer?

View 4 Replies View Related

Replacing Values Between Xls Files?

Apr 14, 2009

I have a file with some statistics on how agents at work performed. This file gets sent to all of them, but before we send it we change the names for a number, so that they don't know how the other agents are doing (avoiding comparisons). People had been doing this manually, but it's getting really complex as the number of agents is increasing. I know that this can be automatized, but I have no idea on how to do it. A simple formula with an IF statement wouldn't be sufficient. Here's an example of the data. The file that is to be modified to be sent to all the agents looks like this:

View 3 Replies View Related

Replacing Text According To A Table

Jun 22, 2009

I'm working with a lot of documents where I need to replace numberID:s with words.

I have a table of 2 columns, where each number has a corresponding number that it should be translated to.
For instace:
1 - cpu
2 - fan
3 - bus

Is it possible to use this list to automatically Replace all the numbers in a document with their corresponding words?
(Without having to spend time on manually program some kind of macro)

View 14 Replies View Related

Replacing References In Two Columns

Oct 29, 2009

I have 2 colums like this. And I want whenever there is a reference like this âë. "some word" in column 2, to have the macro look up some word entry in column 1, find the text in the same row in column 2 and replace the âë. "some word" reference with the text found in column 2. (See attached, sheet 1 as it is, sheet 2 as I want it to be).

Sheet 1

another wordâë. "some word"
awordìåôÜöñáóç
bwordâë. "aword"
some wordêÜðïéá ëÝîç

Sheet 2

another wordêÜðïéá ëÝîç
awordìåôÜöñáóç
bwordìåôÜöñáóç
some wordêÜðïéá ëÝîç

View 9 Replies View Related

Text Replacing In Excel

Apr 23, 2013

I need in every column in every rows (that is in whole document ) change symbol, to, (that is before every comma, I need add back slash ).

View 1 Replies View Related

Replacing Formula With One In Sheet

Feb 24, 2014

I am currently trying to get a formula to be added into a range after a piece of code is run.

This is because every time my code has finished, the formula somehow changes and I cannot get it to stop changing values.

I have the formulas further down my sheet, without the = so that it doesn't return a value.

In VBA I have tried something along the lines of Range("A1").Formula = "=" and Range("Z1")

Where A1 is the cell I want the formula in and Z1 contains the formula without an =

It has not updated the cells and they still have the error that I am trying to fix.

View 3 Replies View Related

Replacing Code With String Value

Oct 23, 2008

Is it possible to use a string to replace code we use repeatdly?

I know that in C it is possible doing this by using what is called a MACRO

For example, replace: ....

View 3 Replies View Related

Replacing Text With Formula

Jan 23, 2009

Replacing text with formula
I have this so far

View 3 Replies View Related

Replacing Content From Dropdownlist

Jul 21, 2009

Hi i had created a drop downlist (Data Validation list) which consist of the city names and a masterlist of the respective City id to the city names on a different work sheet (same file).
But i would need to configure in such a way that when i select the city from the drop downlist it would appear as number ( City ID) on the excel file.

View 7 Replies View Related

Replacing Characters Partially

Jul 23, 2009

Hi, i need to change the second and third character from a 3 character word..

I need to change it into 2 characters with double Alphabetical order (TAA, TAB, TAC...TAZ, then TBA, TBB, TBC... TBZ, and so on).. kinda hard to explain.. it's like this:

View 11 Replies View Related







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