A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Replace Cells with Column names in functions?



 
 
Thread Tools Display Modes
  #1  
Old March 17th, 2010, 03:38 PM posted to microsoft.public.excel.worksheet.functions
msnyc07
external usenet poster
 
Posts: 97
Default Replace Cells with Column names in functions?

I have a # of fairly long/complex cell functions that get hard to debug
because there are also a lot of rows.

Is there anyway to change display so it replaces the column name e.g.

If(BT1204="X". BA="Y"

to

If(CustomerName="X", CustomerCode="Y")

?

  #2  
Old March 17th, 2010, 04:21 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Replace Cells with Column names in functions?

CustomerName is a defined name range for BT1204

Find & Replace

Find what: BT1204
Replace with: CustomerName


"msnyc07" wrote:

I have a # of fairly long/complex cell functions that get hard to debug
because there are also a lot of rows.

Is there anyway to change display so it replaces the column name e.g.

If(BT1204="X". BA="Y"

to

If(CustomerName="X", CustomerCode="Y")

?

  #3  
Old March 17th, 2010, 04:28 PM posted to microsoft.public.excel.worksheet.functions
msnyc07
external usenet poster
 
Posts: 97
Default Replace Cells with Column names in functions?

Hmm, thanks, but i am more looking for some auto or semi automatic way for
the displayed functions to reference the column names. Search and replace
for all formulas might get problematic.

"Teethless mama" wrote:

CustomerName is a defined name range for BT1204

Find & Replace

Find what: BT1204
Replace with: CustomerName


"msnyc07" wrote:

I have a # of fairly long/complex cell functions that get hard to debug
because there are also a lot of rows.

Is there anyway to change display so it replaces the column name e.g.

If(BT1204="X". BA="Y"

to

If(CustomerName="X", CustomerCode="Y")

?

  #4  
Old March 17th, 2010, 05:35 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default Replace Cells with Column names in functions?

msnyc07 wrote:
I have a # of fairly long/complex cell functions that get hard to debug
because there are also a lot of rows.

Is there anyway to change display so it replaces the column name e.g.

If(BT1204="X". BA="Y"

to

If(CustomerName="X", CustomerCode="Y")

?



Look at "About labels and names in formulas" in the help file.
  #5  
Old March 18th, 2010, 12:56 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default Replace Cells with Column names in functions?

Hi,

define a name to BT1204 as Customername, BA1204 as customercode. Now go to
Apply names, select all the names and click on OK. All the BT1204 and
BA1204 on the same sheet will get replaced by customername and customercode

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"msnyc07" wrote in message
...
I have a # of fairly long/complex cell functions that get hard to debug
because there are also a lot of rows.

Is there anyway to change display so it replaces the column name e.g.

If(BT1204="X". BA="Y"

to

If(CustomerName="X", CustomerCode="Y")

?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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