Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Resort Column from one with blanks

I used to know how to do this but forgot the formula....

ex:

A | B
--------
4 | 4
C |
6 | C
7 | 6
|
| 7


Any help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Resort Column from one with blanks

One way using non-array formulas (& simple entire col refs) ..

Assuming source data in B2 down,

Put in C2:
=IF(B2="","",ROW())
(Leave C1 blank)

Put in D2:
=IF(ROW(A1)COUNT(C:C),"",INDEX(B:B,MATCH(SMALL(C: C,ROW(A1)),C:C,0)))

Then just select C2:D2, copy down to cover the max expected extent of source
data in col B, say down to B100? Hide away col C. Col D will automatically
"pull up" the data in the desired manner to neatly bunch at the top. Adapt to
suit. If you want it extracted in col A, just place the 2nd formula in A2
instead, then copy down cols A and C to the same extent.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Gary" wrote:
I used to know how to do this but forgot the formula....

ex:

A | B
--------
4 | 4
C |
6 | C
7 | 6
|
| 7


Any help would be greatly appreciated.

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
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Creating a column of numbers from a column with some blanks? Knut Excel Discussion (Misc queries) 0 March 20th 06 12:36 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Weighed average if the adjecent column contains blanks Kasimir Lehväsl Excel Discussion (Misc queries) 2 July 4th 05 10:12 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


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