Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Clearing out spaces

I have a excel sheet that has a list of products in a column to which a user
can put a y in the next column to the right if they require that item i.e:
A B
1 Product1 y
2 Product2
3 Product3 y
4 Product4
On a neighbouring sheet I have a column in which each cell contains an IF
statement that says if the cell in the first sheet displays anything give
the Product name to the left. I end up with:
A
1 Product1
2
3 Product3


The problem I have is that that I need to convert this column with gaps in
into a new column, listing only the selected products without the gaps. It
needs to be automatically on document save or close. There is a good way of
doing this out there somewhere but I have no idea what it is. Please Help!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Clearing out spaces

=IF(ISERR(SMALL(IF(rngB="y",ROW(INDIRECT("1:"&ROWS (rngA)))),ROWS($1:1))),"",INDEX(rngA,SMALL(IF(rngB ="y",ROW(INDIRECT("1:"&ROWS(rngA)))),ROWS($1:1) )))

ctrl+shift+enter, not just enter
copy down as far as needed


"Simon" wrote:

I have a excel sheet that has a list of products in a column to which a user
can put a y in the next column to the right if they require that item i.e:
A B
1 Product1 y
2 Product2
3 Product3 y
4 Product4
On a neighbouring sheet I have a column in which each cell contains an IF
statement that says if the cell in the first sheet displays anything give
the Product name to the left. I end up with:
A
1 Product1
2
3 Product3


The problem I have is that that I need to convert this column with gaps in
into a new column, listing only the selected products without the gaps. It
needs to be automatically on document save or close. There is a good way of
doing this out there somewhere but I have no idea what it is. Please Help!

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 do I remove leading spaces and leave the remianing spaces w Debi Excel Worksheet Functions 6 February 28th 07 03:29 PM
spaces not recognized as spaces windsurferLA Excel Worksheet Functions 9 July 27th 06 11:49 AM
Clearing #N/A's in one go? Lee Harris Excel Worksheet Functions 5 November 22nd 05 06:52 PM
Clearing #VALUE skateblade Excel Worksheet Functions 3 October 15th 05 10:34 PM
what is clearing an assumption? Bascious Excel Worksheet Functions 0 November 12th 04 01:52 PM


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