Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Eliminating Blank Values

I have a list in Column A of 100 values, from cell A1 to A10. Several of the
cells are empty (=" "). How can I arrange Column B so that it includes in the
same order all the values of Column A, but excluding the empty cells?
--
Ken
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Eliminating Blank Values

In B1 enter:

=IF(ROWS($1:1)<=COUNTA($A$1:$A$100),INDEX($A$1:$A$ 100,SMALL(IF($A$1:$A$100<"",ROW($A$1:$A$100)-MIN(ROW($A$1:$A$100))+1),ROWS($1:1))),"")

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.

Then copy B1 and paste down as far you you need.
--
Gary''s Student - gsnu200812


"Ken" wrote:

I have a list in Column A of 100 values, from cell A1 to A10. Several of the
cells are empty (=" "). How can I arrange Column B so that it includes in the
same order all the values of Column A, but excluding the empty cells?
--
Ken

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Eliminating Blank Values

Hi,

I think this does what you want:

=INDEX(A$1:A$100,SMALL(IF(ROW(A$1:A$100)*(A$1:A$10 0<"")0,ROW(A$1:A$100),""),ROW(A1)))

This formula wil return #NUM errors after it has found all items. You can
enhance the formula to avoid this:

=IF(ROW(A1)COUNT(A$1:A$100),"",INDEX(A$1:A$100,SM ALL(IF(ROW(A$1:A$100)*(A$1:A$100<"")0,ROW(A$1:A$ 100),""),ROW(A1))))

If the formulas are going to start on the same row you can simplify this to:

=IF(ROW()COUNT(A$1:A$100),"",INDEX(A$1:A$100,SMAL L(IF(ROW(A$1:A$100)*(A$1:A$100<"")0,ROW(A$1:A$10 0),""),ROW())))

If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"Ken" wrote:

I have a list in Column A of 100 values, from cell A1 to A10. Several of the
cells are empty (=" "). How can I arrange Column B so that it includes in the
same order all the values of Column A, but excluding the empty cells?
--
Ken

--
Thanks,
Shane Devenshire


"Ken" wrote:

I have a list in Column A of 100 values, from cell A1 to A10. Several of the
cells are empty (=" "). How can I arrange Column B so that it includes in the
same order all the values of Column A, but excluding the empty cells?
--
Ken

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
Excel 2003-eliminating blank rows in target worksheet Rich D Excel Discussion (Misc queries) 0 January 3rd 08 06:33 PM
Eliminating Blank Rows Tatebana Excel Discussion (Misc queries) 4 February 19th 07 05:24 PM
Sorting and Eliminating Blank Cells in Formula range Santas Helper Excel Worksheet Functions 3 November 24th 06 07:13 PM
Eliminating blank cells in a list on a ROW grime Excel Worksheet Functions 5 November 3rd 05 05:41 PM
Eliminating Blank Cells From Lists on different worksheets Tim Excel Discussion (Misc queries) 3 November 3rd 05 12:37 PM


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