#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default table totxt

I'd this (against a copy of the data!):

Select your range
Edit|goto|special
constants
ok

This should select all your +'s (if the +'s are the results of a formula, then
Edit|paste special|values, first)

then type:
=column()

and hit control Enter.

This should fill all those cells with the number of the column that they're in.

Then use a helper cell (F1) and use this formula:
=IF(A1="","",A1&",")&IF(B1="","",B1&",")&IF(C1="", "",C1&",")
&IF(D1="","",D1&",")&if(e1="","",E1&",")

You'll end up with:
2,3,
Now use another helper cell (G1) and use this formula:
=IF(F1="","",LEFT(F1,LEN(F1)-1))

Drag both formulas down the table.

Now select that last column (G) and copy|paste into notepad.





tony wrote:

I have a table as follow
1 2 3 4 5
A +
B + +
C + + + +

How can I get saved on a txt file the following interpretation of the table
A 1
B 2,3
C 1,3,4,5

Thanks


--

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
Pivit table- cell on spread sheet referencing pivot table field David M Charts and Charting in Excel 2 August 18th 07 07:46 PM
entry removed from source table remains in pivot table pull down EL in Melb. Excel Worksheet Functions 1 September 6th 06 07:59 AM
Excel Pivot Table Plugin? (crosstab to data table) HoMoon115 Excel Discussion (Misc queries) 0 February 22nd 06 08:20 PM
PIVOT TABLE - Summary Table into a Databasae Table. sansk_23 Excel Worksheet Functions 4 May 9th 05 07:45 AM
create a source table from a special pasted value dynamic crossed table Tom Ogilvy Excel Programming 0 September 29th 03 08:59 PM


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