Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Transpose Column With Gaps to Column With no gaps

Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8


I want:

B1 acb
B2 fff
B3 fre


Best Regards to everyone
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Transpose Column With Gaps to Column With no gaps

One way which makes it dynamic to source data in col A

In B1:
=IF(ROW()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,ROW()) ))

In C1:
=IF(A1="","",ROW())

Select B1:C1, copy down to cover the max expected extent of data in col A.
Hide away col C. Col B will return the required results.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8


I want:

B1 acb
B2 fff
B3 fre


Best Regards to everyone

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Transpose Column With Gaps to Column With no gaps

Thanks for answering max

However it didn´t help me. Once again ill explain with an example related to
the last one:

My result with
=IF(ROW()COUNT(C1:C100),"",INDEX(A1:A100,SMALL(C1 :C100,ROW()))):

B1 0
B2 fff
B3 0
B4 0
B5 fre
B6

My goal:

B1 acb
B2 fff
B3 fre
B4
B5


"Max" escreveu:

One way which makes it dynamic to source data in col A

In B1:
=IF(ROW()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,ROW()) ))

In C1:
=IF(A1="","",ROW())

Select B1:C1, copy down to cover the max expected extent of data in col A.
Hide away col C. Col B will return the required results.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8


I want:

B1 acb
B2 fff
B3 fre


Best Regards to everyone

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Transpose Column With Gaps to Column With no gaps

My result with
=IF(ROW()COUNT(C1:C100),"",INDEX(A1:A100,SMALL(C1 :C100,ROW()))):


Hey, but that's not what I posted. You modified it, wrongly.

If for some reason you can't use entire col references (which are simpler,
really), then use this correct version of your modification above instead as
the formula in B1:
=IF(ROW()COUNT(C$1:C$100),"",INDEX(A$1:A$100,SMAL L(C$1:C$100,ROW())))
Copy B1 down. That will return exactly the results that you seek in col B.

I of course, presume that you have the criteria formula suggested earlier in
C1 down intact.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote:
Thanks for answering max

However it didn´t help me. Once again ill explain with an example related to
the last one:

My result with
=IF(ROW()COUNT(C1:C100),"",INDEX(A1:A100,SMALL(C1 :C100,ROW()))):

B1 0
B2 fff
B3 0
B4 0
B5 fre
B6

My goal:

B1 acb
B2 fff
B3 fre
B4
B5


"Max" escreveu:

One way which makes it dynamic to source data in col A

In B1:
=IF(ROW()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,ROW()) ))

In C1:
=IF(A1="","",ROW())

Select B1:C1, copy down to cover the max expected extent of data in col A.
Hide away col C. Col B will return the required results.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8


I want:

B1 acb
B2 fff
B3 fre


Best Regards to everyone

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Transpose Column With Gaps to Column With no gaps

Max i´m really sorry. I fell like a newbie. I translated wrongly row to
portuguese. So in English i had:

=IF(column()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,col umn()))):

Thanks a lot for your help

Best regards


"Max" escreveu:

My result with
=IF(ROW()COUNT(C1:C100),"",INDEX(A1:A100,SMALL(C1 :C100,ROW()))):


Hey, but that's not what I posted. You modified it, wrongly.

If for some reason you can't use entire col references (which are simpler,
really), then use this correct version of your modification above instead as
the formula in B1:
=IF(ROW()COUNT(C$1:C$100),"",INDEX(A$1:A$100,SMAL L(C$1:C$100,ROW())))
Copy B1 down. That will return exactly the results that you seek in col B.

I of course, presume that you have the criteria formula suggested earlier in
C1 down intact.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote:
Thanks for answering max

However it didn´t help me. Once again ill explain with an example related to
the last one:

My result with
=IF(ROW()COUNT(C1:C100),"",INDEX(A1:A100,SMALL(C1 :C100,ROW()))):

B1 0
B2 fff
B3 0
B4 0
B5 fre
B6

My goal:

B1 acb
B2 fff
B3 fre
B4
B5


"Max" escreveu:

One way which makes it dynamic to source data in col A

In B1:
=IF(ROW()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,ROW()) ))

In C1:
=IF(A1="","",ROW())

Select B1:C1, copy down to cover the max expected extent of data in col A.
Hide away col C. Col B will return the required results.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8


I want:

B1 acb
B2 fff
B3 fre


Best Regards to everyone



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Transpose Column With Gaps to Column With no gaps

No prob, you're welcome.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Vincent" wrote in message
...
Max i´m really sorry. I fell like a newbie. I translated wrongly row to
portuguese. So in English i had:

=IF(column()COUNT(C:C),"",INDEX(A:A,SMALL(C:C,col umn()))):

Thanks a lot for your help

Best regards



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Transpose Column With Gaps to Column With no gaps

Copy column A into column B, then highlight from B1 down to the last
entry in column B. Press F5 (or Edit | GoTo), click Special and click
Blanks then OK. Use Edit | Delete... then Shift Cells Up and OK, to
get what you want.

Hope this helps.

Pete

On Sep 26, 3:02 pm, Vincent wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8

I want:

B1 acb
B2 fff
B3 fre

Best Regards to everyone



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Transpose Column With Gaps to Column With no gaps

Thanks peter for your help.

However, i have a lot of data which means i dont want to do it manually.

Besides, i could just shift copy every cell i was interested in and then
just paste. They would come out OK just the way i wanted. But once again, i
don´t to do it manually.

Best Regards

"Pete_UK" escreveu:

Copy column A into column B, then highlight from B1 down to the last
entry in column B. Press F5 (or Edit | GoTo), click Special and click
Blanks then OK. Use Edit | Delete... then Shift Cells Up and OK, to
get what you want.

Hope this helps.

Pete

On Sep 26, 3:02 pm, Vincent wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8

I want:

B1 acb
B2 fff
B3 fre

Best Regards to everyone




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Transpose Column With Gaps to Column With no gaps

Vincent wrote:
Thanks peter for your help.

However, i have a lot of data which means i dont want to do it manually.

Besides, i could just shift copy every cell i was interested in and then
just paste. They would come out OK just the way i wanted. But once again, i
don´t to do it manually.

Best Regards

"Pete_UK" escreveu:

Copy column A into column B, then highlight from B1 down to the last
entry in column B. Press F5 (or Edit | GoTo), click Special and click
Blanks then OK. Use Edit | Delete... then Shift Cells Up and OK, to
get what you want.

Hope this helps.

Pete

On Sep 26, 3:02 pm, Vincent wrote:
Hi everyone,

i guess its easier to explain with an example.

I have:

A1 acb
A2
A3 fff
A4
A5
A6
A7 fre
A8

I want:

B1 acb
B2 fff
B3 fre

Best Regards to everyone



Could you just auto filter column A for non blanks and then copy and
paste to column B. Or record a macro to do it for you?
ps Im no expert.
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Transpose Column With Gaps to Column With no gaps

I must say i wasn´t expecting this much help from so many people.

Thanks everyone.

Anyway, every single explanation was correct. However i was looking for a
formula like max´s.

Thanks Lynz


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
Find gaps or breaks in a large column Compare Values Excel Discussion (Misc queries) 4 May 17th 07 02:19 PM
Gaps in a List anar_baku Excel Discussion (Misc queries) 3 May 13th 06 06:57 PM
Transpose Column With Gaps to Row With No Gaps? SteveC Excel Discussion (Misc queries) 5 June 18th 05 01:01 AM
Lookup values in a column and display them in order with no gaps Snaggle22 Excel Worksheet Functions 1 April 12th 05 11:36 PM
Finding gaps mac_see Excel Worksheet Functions 1 March 2nd 05 08:58 PM


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