LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Replace data with new data

I have a data file which I recieve regularly which needs to be cleane
up before I use it. The data looks like this

Item Description
123, Widget
124, Bodgit
125, Scarper
123, Unknown
124, Unknown
125, Unknown

Does anyone have a routine which could go through the above data an
make sure that the second field is corrected to what the descriptio
should be ?

I.e.

If first cell value equals 123, then make second cell value = widget
Or
If first cell value equals 124, then make second cell value = bodgit
Or
If first cell value equals 125, then make second cell value = scarper

The idea being that for every example of unclean data I come across,
would copy an extra line of code which deals with it in future edition
of the data file that comes in.

Hope someone can help ?

Thanks


Terr

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace static data by dynamic data without loosing all the formul Technos Excel Worksheet Functions 0 November 13th 07 10:23 PM
How can I replace data in excel ?...Data positionsis a bit complic Nanou New Users to Excel 3 April 22nd 06 01:51 AM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
How do you replace old data with new data without creating a new . Dena Excel Discussion (Misc queries) 1 November 24th 05 04:18 PM
How do you replace old data with new data without creating a new . David Billigmeier Excel Discussion (Misc queries) 0 September 7th 05 01:19 AM


All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"