Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Better lookup code?

Hi all,

I have a spreadsheet in Excel XP format. It has 16000 rows. Currently I
step through every row to look to look at the data in column K and replace it
with a new value through a select case statement:

if x then new value is 1
if y then new value is 2
....
....
etc

This process takes about 2+ mins over a network connection. However, I am
wondering if there's a better more efficient way of doing look up and replace
cell value. Thanks.

Ben



--

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default Better lookup code?

Do a Find and Replace in Excel (Ctrl-H) with the macro recorder on. There's
your code.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Ben" wrote in message
...
Hi all,

I have a spreadsheet in Excel XP format. It has 16000 rows. Currently I
step through every row to look to look at the data in column K and replace

it
with a new value through a select case statement:

if x then new value is 1
if y then new value is 2
...
...
etc

This process takes about 2+ mins over a network connection. However, I am
wondering if there's a better more efficient way of doing look up and

replace
cell value. Thanks.

Ben



--



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
Post code lookup Paul Williams Excel Worksheet Functions 5 November 23rd 06 08:25 PM
Zip Code Lookup Add-in GoFigure Excel Discussion (Misc queries) 12 February 20th 06 08:36 PM
Help with lookup code browie Excel Programming 1 June 13th 05 04:07 PM
Code Lookup for Number gregork Excel Programming 2 December 20th 04 10:40 AM
code for lookup,& triggers. derek Excel Programming 3 July 22nd 03 05:04 AM


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

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"