Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-02-2008, 07:40 PM
J.W. Aldridge
 
Posts: n/a
Extract data from list -exluding blank cells

Tried the C.Pearson site.... Couldn't get that formula to work.

=IF(ROW()-ROW(NoBlanksRange)+1>ROWS(BlanksRange)-
COUNTBLANK(BlanksRange),"",INDIRECT(ADDRESS(SMALL(
(IF(BlanksRange<>"",ROW(BlanksRange),ROW()+ROWS(Bl anksRange))),
ROW()-ROW(NoBlanksRange)+1),COLUMN(BlanksRange),4)))




Need to sort order of results from another formula into a list without
blank cells.



List #1 List #2
cherries cherries
plums plums
apples apples
oranges
oranges grapes
grapes lemons
lemons
Reply With Quote
  #2 (permalink)  
Old 05-02-2008, 09:42 PM
Max
 
Posts: n/a
Re: Extract data from list -exluding blank cells

Perhaps a simpler non-array alternative that gets you there ..

Source data (List#1) assumed in Sheet1,
cols A & B, data from row2 down

In Sheet2,
In A2: =IF(TRIM(Sheet1!A2)="","",ROW())
Leave A1 blank

In B2:
=IF(ROWS($1:1)>COUNT($A:$A),"",INDEX(Sheet1!A:A,SM ALL($A:$A,ROWS($1:1))))
Copy A2:B2 down to cover the max expected extent of data in Sheet1.
Minimize/hide away col A. Col B returns the required results, all neatly
bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"J.W. Aldridge" <jeremy.w.aldridge@gmail.com> wrote in message
news:9ec01f21-eace-4d63-94d0-80fe6aa770b5@y38g2000hsy.googlegroups.com...
> Tried the C.Pearson site.... Couldn't get that formula to work.
>
> =IF(ROW()-ROW(NoBlanksRange)+1>ROWS(BlanksRange)-
> COUNTBLANK(BlanksRange),"",INDIRECT(ADDRESS(SMALL(
> (IF(BlanksRange<>"",ROW(BlanksRange),ROW()+ROWS(Bl anksRange))),
> ROW()-ROW(NoBlanksRange)+1),COLUMN(BlanksRange),4)))
>
>
>
>
> Need to sort order of results from another formula into a list without
> blank cells.
>
>
>
> List #1 List #2
> cherries cherries
> plums plums
> apples apples
> oranges
> oranges grapes
> grapes lemons
> lemons



Reply With Quote
  #3 (permalink)  
Old 05-02-2008, 10:09 PM
T. Valko
 
Posts: n/a
Re: Extract data from list -exluding blank cells

List1 in the range A2:A8.

Enter this array formula** in B2 and copy down until you get blanks:

=IF(ROWS(B$2:B2)<=COUNTA(List1),INDEX(List1,SMALL( IF(List1<>"",ROW(List1)-MIN(ROW(List1))+1),ROWS(B$2:B2))),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"J.W. Aldridge" <jeremy.w.aldridge@gmail.com> wrote in message
news:9ec01f21-eace-4d63-94d0-80fe6aa770b5@y38g2000hsy.googlegroups.com...
> Tried the C.Pearson site.... Couldn't get that formula to work.
>
> =IF(ROW()-ROW(NoBlanksRange)+1>ROWS(BlanksRange)-
> COUNTBLANK(BlanksRange),"",INDIRECT(ADDRESS(SMALL(
> (IF(BlanksRange<>"",ROW(BlanksRange),ROW()+ROWS(Bl anksRange))),
> ROW()-ROW(NoBlanksRange)+1),COLUMN(BlanksRange),4)))
>
>
>
>
> Need to sort order of results from another formula into a list without
> blank cells.
>
>
>
> List #1 List #2
> cherries cherries
> plums plums
> apples apples
> oranges
> oranges grapes
> grapes lemons
> lemons



Reply With Quote
  #4 (permalink)  
Old 05-02-2008, 10:28 PM
J.W. Aldridge
 
Posts: n/a
Re: Extract data from list -exluding blank cells

Thanx Biff.

Does it matter if A2:A8 contains results from formulas and not entered
numbers?

All get I get is blanks.

(Actually found another formula that eliminates blanks and it didnt
work when refering to results of a formula either).



Reply With Quote
  #5 (permalink)  
Old 05-02-2008, 10:35 PM
T. Valko
 
Posts: n/a
Re: Extract data from list -exluding blank cells

In general that should not matter. However, if those formulas return formula
blanks ("") then the formula I suggested will need to be tweaked since I
wrote it assuming "blanks" meant *empty*.

What is the *exact* location of List1?

--
Biff
Microsoft Excel MVP


"J.W. Aldridge" <jeremy.w.aldridge@gmail.com> wrote in message
news:9ee467c9-72a0-4f98-b21f-6b05f52508ba@y38g2000hsy.googlegroups.com...
> Thanx Biff.
>
> Does it matter if A2:A8 contains results from formulas and not entered
> numbers?
>
> All get I get is blanks.
>
> (Actually found another formula that eliminates blanks and it didnt
> work when refering to results of a formula either).
>
>
>



Reply With Quote
  #6 (permalink)  
Old 05-02-2008, 10:48 PM
J.W. Aldridge
 
Posts: n/a
Re: Extract data from list -exluding blank cells


List1 = (F$19:F5000)

The formula starts at: G$19:G5000



Thanx.
Reply With Quote
  #7 (permalink)  
Old 05-02-2008, 11:41 PM
T. Valko
 
Posts: n/a
Re: Extract data from list -exluding blank cells

OK, assuming List1 contains only TEXT entries (like your sample):

Entered in G19 and copied down:

=IF(ROWS(G$19:G19)<=COUNTIF(List1,"?*"),INDEX(List 1,SMALL(IF(List1<>"",ROW(List1)-MIN(ROW(List1))+1),ROWS(G$19:G19))),"")

Since your range is "kind of" big you might want to try this approach to
help save some resources:

Use a helper cell with this formula:

=COUNTIF(List1,"?*")

Then refer to that helper cell:

Helper cell = G18

=IF(ROWS(G$19:G19)<=G$18,INDEX(List1,SMALL(IF(List 1<>"",ROW(List1)-MIN(ROW(List1))+1),ROWS(G$19:G19))),"")

Also, if you will *NEVER* insert new rows above the range we can eliminate
some other calculation intensive expressions:

=IF(ROWS(G$19:G19)<=G$18,INDEX(List1,SMALL(IF(List 1<>"",ROW(List1)-18),ROWS(G$19:G19))),"")

The "big" formulas are all still array entered.

--
Biff
Microsoft Excel MVP


"J.W. Aldridge" <jeremy.w.aldridge@gmail.com> wrote in message
news:5b322aef-8969-4086-97a4-90573309c3fa@t54g2000hsg.googlegroups.com...
>
> List1 = (F$19:F5000)
>
> The formula starts at: G$19:G5000
>
>
>
> Thanx.



Reply With Quote
  #8 (permalink)  
Old 05-02-2008, 11:55 PM
J.W. Aldridge
 
Posts: n/a
Re: Extract data from list -exluding blank cells

You ROCK!


When I become a millionaire.... I'm buying you TWO Double Cheese
Krystals (or Whitle Castles)!!

(a very high honor... very few people have ever gotten to the BIG TWO
level!)
Reply With Quote
  #9 (permalink)  
Old 05-03-2008, 02:50 AM
T. Valko
 
Posts: n/a
Re: Extract data from list -exluding blank cells

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"J.W. Aldridge" <jeremy.w.aldridge@gmail.com> wrote in message
news:ae7cfd98-91e4-4cd1-af32-e301eb1b8c08@c65g2000hsa.googlegroups.com...
> You ROCK!
>
>
> When I become a millionaire.... I'm buying you TWO Double Cheese
> Krystals (or Whitle Castles)!!
>
> (a very high honor... very few people have ever gotten to the BIG TWO
> level!)



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:50 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Proxy | MPAA | Credit Report | Loan | Apply for Credit Card



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114