Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Condense list (remove blanks)

I'm trying to condense a column (AF4:AF70) into a column that only has
cells with text. I want this to happen dynamically (with a formula)
Right now there are about 8-14 cells that actually have text in them.
Each cell in the column is a formula that, when it should be blank,
returns "" (i'm guessing that counts as blank?). That formula is
below:

=IF(OR(R72="",R72=2,R72=3,,R72=4,R72=23,R72=24,R72 =34,ISERROR($Z72)),"",IF(OR(R72="x",R72=12,R72=13, R72=14,R72=1),
$Z72,$Z72&"("&R72&")"))

I've been using the following formula, that I found on the web (I
found a similar one on this forum, but this one got me closer): (I put
this formula in AF72 and copy down)

{=INDEX(AF$4:AF$70,SMALL(IF(AF$4:AF$70<"",ROW(AF$ 4:AF$70),1000),ROW()-
ROW(AF$72)+1)-ROW(AF$72)+1)}

I know this is an array, and while I don't understand exactly all that
that entails, I know that you have to use CTRL/Shift/Enter to put it
in. When I do that, I get lists that begin with #Value! errors (the
number of which equal the number of cells with text) and the rest of
the way is with #REF! errors. In my mind I'm close! The formula at
least recognizes the number of items that I want moved into this new
list - but it puts a value error instead of the actual text. I've
repeated this several times - if i add a cell with text, I get another
#value error.

Any ideas, or better formulas? Thank you so much.

Marcos

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Condense list (remove blanks)

try:

http://www.cpearson.com/excel/noblanks.htm


--
Gary''s Student
gsnu200709


"socram" wrote:

I'm trying to condense a column (AF4:AF70) into a column that only has
cells with text. I want this to happen dynamically (with a formula)
Right now there are about 8-14 cells that actually have text in them.
Each cell in the column is a formula that, when it should be blank,
returns "" (i'm guessing that counts as blank?). That formula is
below:

=IF(OR(R72="",R72=2,R72=3,,R72=4,R72=23,R72=24,R72 =34,ISERROR($Z72)),"",IF(OR(R72="x",R72=12,R72=13, R72=14,R72=1),
$Z72,$Z72&"("&R72&")"))

I've been using the following formula, that I found on the web (I
found a similar one on this forum, but this one got me closer): (I put
this formula in AF72 and copy down)

{=INDEX(AF$4:AF$70,SMALL(IF(AF$4:AF$70<"",ROW(AF$ 4:AF$70),1000),ROW()-
ROW(AF$72)+1)-ROW(AF$72)+1)}

I know this is an array, and while I don't understand exactly all that
that entails, I know that you have to use CTRL/Shift/Enter to put it
in. When I do that, I get lists that begin with #Value! errors (the
number of which equal the number of cells with text) and the rest of
the way is with #REF! errors. In my mind I'm close! The formula at
least recognizes the number of items that I want moved into this new
list - but it puts a value error instead of the actual text. I've
repeated this several times - if i add a cell with text, I get another
#value error.

Any ideas, or better formulas? Thank you so much.

Marcos


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Condense list (remove blanks)

Thank you!

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
Concatenate and remove blanks PeterW Excel Worksheet Functions 3 January 19th 06 06:04 PM
How do I sort a list that contains blanks that I want to keep? SHexceluser Excel Discussion (Misc queries) 5 October 14th 05 10:27 PM
Can I remove blanks from a range without using sort? Hugh Murfitt Excel Discussion (Misc queries) 6 March 8th 05 08:37 AM
validation list blanks Wes Excel Worksheet Functions 2 March 6th 05 08:01 PM
remove blanks from a string of chars within a cell? rayhollidge Excel Discussion (Misc queries) 3 January 8th 05 02:43 AM


All times are GMT +1. The time now is 07:09 AM.

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"