#1   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default Cell Selection?

I have a colum of numbers

198
0
0
198
2

What I need, is to be able to select 3. the 198's are not going to be used
in the next part of my equation. That seems simple enough, however all the
numbers could be usable (not 198) and I need to use just the first three. Any
ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Cell Selection?

One interp / way, using non-array formulas

Assuming source numbers in A1 down

Put

In B1: =IF(COUNT($C$1:C1)3,"",C1)

In C1:
=IF(ISERROR(SMALL(D:D,ROW(A1))),"",
INDEX(A:A,MATCH(SMALL(D:D,ROW(A1)),D:D,0)))

In D1: =IF(A1="","",IF(A1=198,"",ROW()))

Select B1:D1, copy down as far as required
to cover the max expected extent of data in col A
(can copy ahead of existing data in col A)

Col B will return the required results,
i.e. the first 3 numbers other than 198 in col A
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"M.A.Tyler" <Great Lakes State wrote in message
...
I have a colum of numbers

198
0
0
198
2

What I need, is to be able to select 3. the 198's are not going to be used
in the next part of my equation. That seems simple enough, however all the
numbers could be usable (not 198) and I need to use just the first three.

Any
ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default Cell Selection?

Clarification:

Col B will return the required results,
i.e. the first 3 numbers other than 198 in col A


The above is provided of course, that the source col A does contain at least
3 numbers other than 198, otherwise col B would just return accordingly
whatever's there, viz.: the first 2 numbers, the first number, or blank: ""
(where there's no number in col A other than 198)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
Add "left align across selection" cell formatting Monty Analyst Excel Worksheet Functions 2 November 5th 08 03:17 PM
Combo Box selection to place $0 into another cell John Excel Discussion (Misc queries) 16 July 22nd 06 01:17 PM
Cell selection not visible Mangesh Yadav Excel Discussion (Misc queries) 1 September 1st 05 01:29 PM
Cell Selection after "Enter" Synectica Excel Discussion (Misc queries) 6 August 29th 05 09:55 PM
Can a conditional cell formula reference data selection in a comb. t_nellis Excel Worksheet Functions 1 April 19th 05 04:44 PM


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