LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Customized Find/Replace to Update Numbers Using Specified Criteria

I have a frequently-updated report with many cells that contain both text and
numbers. Often, the numbers--and only those falling within a certain
numerical range--need to increment by a set amount, say four or five. Is
there a way to update numbers which fall within a specified numerical range
by a specified amount? I know this isn't clear, so here's an example: Say
that, in Column A, there are 5000 filled cells, each of which contains
various text descriptors with numbers scattered amongst them:

Cell A1: Pig, 100, dog, 512, cat, 999, orangutan, 550
Cell A2: Pig, 102, raging bull, 551, cow, 601
Cell A3: Rabid dog, 201

What I need to do is tell Excel to look through all of the cells and,
whenever it finds numbers between 500 and 600, to increase them by 4, but to
leave everything else alone. The desired result would be:

Cell A1: Pig, 100, dog, 516, cat, 999, orangutan, 554
Cell A2: Pig, 102, raging bull, 555, cow, 601
Cell A3: Rabid dog, 201

I know I can just do a series of find/replace actions, but this report
updates often and the range of numbers that may need to update varies
frequently as well (not to mention the increment change amount, so it's a
whole lot of work. Is there a macro or add-in that will do a find-replace
using criteria that the user will supply, perhaps via a user form? I know a
little VBA, but this is pretty complicated and I have no idea. If text and
numbers were iin separate cells, I'm sure this would be easier, but
unfortunately I have to work with the yucky report that I'm given.

I would really, really appreciate any help on this. I'm in way over my head.
 
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
Find and replace consecutive numbers Colin Hayes Excel Worksheet Functions 6 December 26th 06 03:45 PM
find, replace, update links cinvic Excel Discussion (Misc queries) 0 December 15th 06 02:01 PM
Find and replace numbers using a formula michelplantz Excel Worksheet Functions 6 November 6th 06 03:13 PM
"find and replace" negative numbers pk Excel Worksheet Functions 5 March 16th 06 09:39 PM
Find/Replace 4 numbers in a sting of 17 Lisa Excel Discussion (Misc queries) 4 January 5th 05 10:40 PM


All times are GMT +1. The time now is 01:19 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"