Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default HOWTO Replace from Row

Thanks for idea,
but I didn't actually understand how to start routine in Excel
as function process. Or this will be possible only with VBA?

For example how I do NEXT function?

Thanks again,
On-Line

something like - untested

for each c in selection
if c=c.offset(,1)then c=c.offset(,2)
next

"Don Guillett" wrote in message
...
something like - untested

for each c in selection
if c=c.offset(,1)then c=c.offset(,2)
next

"SolaSig AB" wrote in message
...
Hi All!



Here is some Help asked, since I'm not familiar with Excel programming,

I
can't find an Answer for my problem.



Here is the Problem:



I need to replace come words in 1st.Cell with words from another

3rd.Cell
if
Content of the 1.st.Cell and the 2nd.Cells matches.



Main problem is the Volume 25.000 Strings ? 15 Rows.



As I understand the algorithm for this operation it may look like this:

Get Ai Value

Get Bj Value

Compare Ai and Bj values for equality

If true then get Cj Value and put to Ai Value; Next Ai (Ai++)

If false then get next Bj (Bj++)



Example:



Before replacement

A B C


1 RED RED R

2 BLUE BLUE B

3 BLUE

4 RED

5 BLUE

after replacement

A B C


1 R RED R

2 B BLUE B

3 B

4 R

5 B



Thanks if there might be some ideas or help,

On-Line






Reply
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
HOWTO: What is the formula to have evaluate a range of value apache007 Excel Discussion (Misc queries) 9 February 6th 10 06:17 PM
HowTo: Baseball Calculator? Brandon[_2_] Excel Discussion (Misc queries) 1 July 1st 08 06:13 PM
HOWTO DELETE UNLOCK CELLS FC Excel Discussion (Misc queries) 3 April 9th 07 09:59 PM
howto: concat (x1:x3) Marc Hebert New Users to Excel 3 December 15th 06 07:52 PM
HowTo add row to series data Eggle Charts and Charting in Excel 0 October 4th 06 03:08 PM


All times are GMT +1. The time now is 03:26 AM.

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

About Us

"It's about Microsoft Excel"