ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Replace Cells with Column names in functions? (https://www.excelbanter.com/excel-worksheet-functions/259174-replace-cells-column-names-functions.html)

msnyc07

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")

?


Teethless mama

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")

?


msnyc07

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")

?


Glenn

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.

Ashish Mathur[_2_]

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")

?



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com