LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
hnyb1
 
Posts: n/a
Default Replace all non blanks in a column with column header

Thank you!

"Peo Sjoblom" wrote:

Select column 2, press F5, special and select constants, click OK, click in
the formula bar and type Col2, press Ctrl + Enter, repeat for the other
columns


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"hnyb1" wrote in message
...
I think I need a macro to do this, but I can't figure out how to write this
macro. I am using excel 2003. My first row contains what I consider to
be
column headers. I'd like to search through each column in a worksheet and
replace any x in the column with the column header. The following is an
example:

col1 col2 col3 col4 col5
row1
row2 x
row3 x

I would like the "x" in row2 replaced with "col2" and the x in row 3 with
"col4"

Frankly, I have no clue where even to begin on this one. I appreciate any
help anyone can provide.

Thanks,
Holly




 
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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
How to replace column letter in refferences with a function using the old column letter? Dmitry Kopnichev Links and Linking in Excel 6 October 13th 05 09:09 AM
Subtraction formula for consecutive cells in a column, skipping blanks [email protected] Excel Worksheet Functions 2 September 16th 05 12:20 AM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM


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