Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a column of figures, maximum of 7 numbers in total and need to find
the first positive number in the column, negatives will always be shown first and are dependant on other calculations. Some of the last cells may be blank depending on the periods in the term ie 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. Should return 10 as the first positive in the list Is there a built in fucnction I can use to do this? Many thanks for any help Sheila D |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=INDEX(A1:A10,MATCH(TRUE,A1:A100,0))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it correctly, excel will wrap curly brackets {} around your formula. (don't type them yourself.) Adjust the range to match--but you can only use the whole column in xl2007. Sheila D wrote: I have a column of figures, maximum of 7 numbers in total and need to find the first positive number in the column, negatives will always be shown first and are dependant on other calculations. Some of the last cells may be blank depending on the periods in the term ie 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. Should return 10 as the first positive in the list Is there a built in fucnction I can use to do this? Many thanks for any help Sheila D -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
A couple of ways. Both are array formulas that must be entered using
ctrl+shift+enter =MIN(IF(B2:B220,B2:B22)) =INDEX(B2:B10,MATCH(TRUE,B2:B100,0)) -- Don Guillett Microsoft MVP Excel SalesAid Software "Sheila D" wrote in message ... I have a column of figures, maximum of 7 numbers in total and need to find the first positive number in the column, negatives will always be shown first and are dependant on other calculations. Some of the last cells may be blank depending on the periods in the term ie 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. Should return 10 as the first positive in the list Is there a built in fucnction I can use to do this? Many thanks for any help Sheila D |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
For column A:
=INDEX(A:A, MATCH(TRUE, (A1:A10)0,0)) must be entered as an array formula with CNTRL-SHFT-ENTER rather than just the ENTER key. -- Gary''s Student - gsnu200799 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much
"Sheila D" wrote: I have a column of figures, maximum of 7 numbers in total and need to find the first positive number in the column, negatives will always be shown first and are dependant on other calculations. Some of the last cells may be blank depending on the periods in the term ie 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. Should return 10 as the first positive in the list Is there a built in fucnction I can use to do this? Many thanks for any help Sheila D |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi agfin and thanks for previous help
As a follow on from that once I have found the first positive value I need to output that and then all following values in sequence ie from 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. 10 then 5 then 80 Is there a way to specify the next record(s) where value is present. Sheila "Sheila D" wrote: I have a column of figures, maximum of 7 numbers in total and need to find the first positive number in the column, negatives will always be shown first and are dependant on other calculations. Some of the last cells may be blank depending on the periods in the term ie 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. Should return 10 as the first positive in the list Is there a built in fucnction I can use to do this? Many thanks for any help Sheila D |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 11 Aug 2008 05:50:00 -0700, Sheila D
wrote: Hi agfin and thanks for previous help As a follow on from that once I have found the first positive value I need to output that and then all following values in sequence ie from 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. 10 then 5 then 80 Is there a way to specify the next record(s) where value is present. Sheila Assuming your data is in A1:A7 Enter this formula in some cell, then fill down seven rows: =IF(INDEX($A$1:$A$7,ROWS($1:1)-1+MATCH(TRUE,$A$1:$A$70,0))0, INDEX($A$1:$A$7,ROWS($1:1)-1+MATCH(TRUE,$A$1:$A$70,0)),"") As before, this is an **array** formula to be entered with <ctrl<shift<enter. --ron |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you Ron, I will give that a try
"Ron Rosenfeld" wrote: On Mon, 11 Aug 2008 05:50:00 -0700, Sheila D wrote: Hi agfin and thanks for previous help As a follow on from that once I have found the first positive value I need to output that and then all following values in sequence ie from 1. -10 2. -1 3. 10 4. 5 5. 80 6. 7. 10 then 5 then 80 Is there a way to specify the next record(s) where value is present. Sheila Assuming your data is in A1:A7 Enter this formula in some cell, then fill down seven rows: =IF(INDEX($A$1:$A$7,ROWS($1:1)-1+MATCH(TRUE,$A$1:$A$70,0))0, INDEX($A$1:$A$7,ROWS($1:1)-1+MATCH(TRUE,$A$1:$A$70,0)),"") As before, this is an **array** formula to be entered with <ctrl<shift<enter. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to find what number in Column A is not included in Column B? | Excel Discussion (Misc queries) | |||
Find first positive value in a column | Excel Discussion (Misc queries) | |||
Find max Row() number for a value in column | Excel Worksheet Functions | |||
FIND POSITIVE VALUE | Excel Discussion (Misc queries) | |||
How do I find the first value in a column less than a number? | Excel Worksheet Functions |