Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Pull value from column heading

Hello--

I have a table that looks like this:

135569 135572 135574 135577 135578
7664502273 1 1 1 1
7664505027 1 1 1 1
9.78158E+11 1


For each row, I need to pull the column heading for any instances where
there is a 1 and have that entered in it's own separate cell or separated by
a comma if in a single cell.

I've tried some index functions, but am not having any luck.

Any ideas?? Thanks so much for your help!!!

Cecilia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Pull value from column heading

Are the choices for those cells with 1 in them either a 1 or empty?

If that's true...

Select the range to fix (B2:F4 for this sample)
edit|goto|special|constants
notice that the selection is now just those cells that are not empty (the ones
that contain 1).

Take note of the activecell's (the white one) column.

type an equal sign and the column letter and then $1
for me, I typed: =C$1
But instead of hitting enter, hit ctrl-enter to fill each of those cells with 1
in it.

Now select that range again (B2:F4)
edit|copy
edit|paste special|Values
(if you want.)


Cecilia wrote:

Hello--

I have a table that looks like this:

135569 135572 135574 135577 135578
7664502273 1 1 1 1
7664505027 1 1 1 1
9.78158E+11 1

For each row, I need to pull the column heading for any instances where
there is a 1 and have that entered in it's own separate cell or separated by
a comma if in a single cell.

I've tried some index functions, but am not having any luck.

Any ideas?? Thanks so much for your help!!!

Cecilia


--

Dave Peterson
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 doI changes my row and column heading color? Kyle L. H. Excel Discussion (Misc queries) 5 January 21st 06 05:46 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
Lookup min & column heading Greg Excel Worksheet Functions 3 August 19th 05 05:20 PM
column heading rml Excel Discussion (Misc queries) 1 June 30th 05 04:15 AM
Need to put a name in the column heading windsorhartung Excel Discussion (Misc queries) 6 February 19th 05 06:36 AM


All times are GMT +1. The time now is 02:57 PM.

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

About Us

"It's about Microsoft Excel"