Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Selecting non-blanks cells only

I have created a formula in excel that generates a range of cells. Within
that range there are some blank cells.

I wish to create a formula that looks in this range of cells and selects
only the cells with values in them, ignoring the blanks. It returns these
values in a new range with no blanks.

Can someone help?

Thanks

Nick

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Selecting non-blanks cells only

Nick,

Array enter (enter using Ctrl-Shift-Enter)

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

Replace the three instances of $A$1:$A$10 with the address of your 'range of cells'

Then copy down until you get an error.

HTH,
Bernie
MS Excel MVP


"nir020" wrote in message
...
I have created a formula in excel that generates a range of cells. Within
that range there are some blank cells.

I wish to create a formula that looks in this range of cells and selects
only the cells with values in them, ignoring the blanks. It returns these
values in a new range with no blanks.

Can someone help?

Thanks

Nick



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
selecting cells which contain formulas but return blanks hot dogs Excel Discussion (Misc queries) 3 September 12th 06 12:07 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Programming 5 September 3rd 06 11:23 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
selecting all blanks in multiple columns, then deleting those rows DSSdiva Excel Programming 6 May 12th 05 02:38 PM
Even after selecting "skip blanks" in the paste special menu in e. arudra1974 Excel Discussion (Misc queries) 1 February 19th 05 02:59 PM


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