Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default how to return random non zero value to a particular cell?

A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i get
that value into cell B1?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default how to return random non zero value to a particular cell?

=SUM(A1:A12)
--
David Biddulph

"Oligo" wrote in message
...
A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i get
that value into cell B1?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default how to return random non zero value to a particular cell?

If you are sure that all others are zero then you can simply have this in B1
=Sum(A1:A100) [change 100 to the last cell in Col A]

"Oligo" wrote:

A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i get
that value into cell B1?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default how to return random non zero value to a particular cell?



"Sheeloo" wrote:

If you are sure that all others are zero then you can simply have this in B1
=Sum(A1:A100) [change 100 to the last cell in Col A]

"Oligo" wrote:

A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i get
that value into cell B1?


sorry to bother you again.
what if there are chances that any 2 rows will be of equal values. but i
only one one of the row value to be in B1?
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default how to return random non zero value to a particular cell?

Hi,

=MAX(A1:A100)


--
Thanks,
Shane Devenshire


"Oligo" wrote:



"Sheeloo" wrote:

If you are sure that all others are zero then you can simply have this in B1
=Sum(A1:A100) [change 100 to the last cell in Col A]

"Oligo" wrote:

A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i get
that value into cell B1?


sorry to bother you again.
what if there are chances that any 2 rows will be of equal values. but i
only one one of the row value to be in B1?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default how to return random non zero value to a particular cell?

If you want the first non-zero value then copy this in B1
=INDIRECT("A"&MATCH(1,(IF(A1:A10000,1,"")),0))
and press CTRL-SHIFT-ENTER

"Oligo" wrote:



"Sheeloo" wrote:

If you are sure that all others are zero then you can simply have this in B1
=Sum(A1:A100) [change 100 to the last cell in Col A]

"Oligo" wrote:

A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i get
that value into cell B1?


sorry to bother you again.
what if there are chances that any 2 rows will be of equal values. but i
only one one of the row value to be in B1?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default how to return random non zero value to a particular cell?

=INDIRECT("A"&MATCH(1,(IF(A1:A10000,1,"")),0))

Here's a way to do the same thing without the volatile function. Assuming
there is no text in the range and all numbers are positive:

Array entered:

=INDEX(A1:A1000,MATCH(TRUE,A1:A10000,0))

And here's a way to do the same thing without array entering:

=INDEX(A1:A1000,MATCH(TRUE,INDEX(A1:A10000,,1),0) )

--
Biff
Microsoft Excel MVP


"Sheeloo" <="to" & CHAR(95) & "sheeloo" & CHAR(64) & "hotmail.com" wrote in
message ...
If you want the first non-zero value then copy this in B1
=INDIRECT("A"&MATCH(1,(IF(A1:A10000,1,"")),0))
and press CTRL-SHIFT-ENTER

"Oligo" wrote:



"Sheeloo" wrote:

If you are sure that all others are zero then you can simply have this
in B1
=Sum(A1:A100) [change 100 to the last cell in Col A]

"Oligo" wrote:

A
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00000000
0.00872500
0.00000000

assuming the non zero valu(0.008725) might fall in any row. how can i
get
that value into cell B1?


sorry to bother you again.
what if there are chances that any 2 rows will be of equal values. but i
only one one of the row value to be in B1?



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
use button to return random numbers jimE Excel Worksheet Functions 1 November 8th 07 11:04 PM
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null Ben Excel Discussion (Misc queries) 2 March 15th 07 01:02 AM
Dollar weighted rate of return with random cash flows shfigato Excel Discussion (Misc queries) 1 April 26th 06 12:07 AM
Search a random array of cells and return a value of "X" EKB Excel Worksheet Functions 1 April 17th 06 03:57 AM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM


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