Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Equate numbers to text

What is the correct feature and term used to change a value of non-contiguous
cells all at once. I would like to equate a particular number to a name
(text) and have excel automatically lookup all those numbers in the workbook
and change.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Equate numbers to text

Let's say we have a pile of cells that contain 3.14 and we wish to change all
of them at once. First run this macro:

Sub mersion()
Set r = Nothing
For Each rr In ActiveSheet.UsedRange
v = rr.Value
If v = 3.14 Then
If r Is Nothing Then
Set r = rr
Else
Set r = Union(r, rr)
End If
End If
Next
r.Select
End Sub

This will Select all cells with the value 3.14.

Next in the formula bar enter:
3.1415926 and touch CNTRL-ENTER rather than just ENTER

This changes all the cells at once. Two comments:

1. you can assign a Named Range to the pile after running the macro
2. consider using only a single cell for common values
--
Gary''s Student - gsnu200764


"hpum" wrote:

What is the correct feature and term used to change a value of non-contiguous
cells all at once. I would like to equate a particular number to a name
(text) and have excel automatically lookup all those numbers in the workbook
and change.

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
How can I set a column equate a product of two columns? z New Users to Excel 6 October 16th 07 06:05 PM
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
How to equate Text Drop Down selections to numerical values Four Kings Excel Discussion (Misc queries) 3 January 22nd 06 05:11 AM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM


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