#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Lookups

I have a row of data with either zeros or numbers in 24 cells. I would like
to create a formula in an adjacent cell which scans the 24 cells and records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome. Would
appreciate your feedback...thx.

Daveo
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Lookups

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Lookups

Peo,

I tried your formula and I got back #VALUE!...any other suggestions?


"Peo Sjoblom" wrote:

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Lookups

After you typed the below in, did you hit CTRL+SHIFT+ENTER or just hit enter
to exit the cell?

"Daveo" wrote:

Peo,

I tried your formula and I got back #VALUE!...any other suggestions?


"Peo Sjoblom" wrote:

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Lookups

It works believe me, so either you didn't apply it correctly or your data is
not what it
is supposed to be.

Post the exact formula you tried, copied from your workbook

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
Peo,

I tried your formula and I got back #VALUE!...any other suggestions?


"Peo Sjoblom" wrote:

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Lookups

That could be the problem...will try again...thanks...

"Sean Timmons" wrote:

After you typed the below in, did you hit CTRL+SHIFT+ENTER or just hit enter
to exit the cell?

"Daveo" wrote:

Peo,

I tried your formula and I got back #VALUE!...any other suggestions?


"Peo Sjoblom" wrote:

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Lookups

That worked...thanks!

"Sean Timmons" wrote:

After you typed the below in, did you hit CTRL+SHIFT+ENTER or just hit enter
to exit the cell?

"Daveo" wrote:

Peo,

I tried your formula and I got back #VALUE!...any other suggestions?


"Peo Sjoblom" wrote:

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default Lookups

Peo...you were correct...had to do with me not entering the ctrl, shift &
enter but I went back and tried again and it works perfectly...thanks!

"Peo Sjoblom" wrote:

It works believe me, so either you didn't apply it correctly or your data is
not what it
is supposed to be.

Post the exact formula you tried, copied from your workbook

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
Peo,

I tried your formula and I got back #VALUE!...any other suggestions?


"Peo Sjoblom" wrote:

=INDEX(A1:X1,MATCH(TRUE,A1:X1<0,0))

entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Daveo" wrote in message
...
I have a row of data with either zeros or numbers in 24 cells. I would
like
to create a formula in an adjacent cell which scans the 24 cells and
records
the first nonzero number it finds.

I've thought of using a nested if-then but that seems to cumbersome.
Would
appreciate your feedback...thx.

Daveo






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
Lookups Warren Easton Excel Discussion (Misc queries) 2 July 9th 08 03:38 PM
Lookups RkB2008 Excel Discussion (Misc queries) 2 June 23rd 08 07:24 PM
Lookups... ajayb Excel Worksheet Functions 3 June 17th 08 02:18 AM
Maybe I need help with Lookups?? garry05 Excel Worksheet Functions 4 December 8th 05 02:26 AM
LOOKUPS - Creating LOOKUPs where two different values must BOTH be satisfied. Mr Wiffy Excel Worksheet Functions 2 May 16th 05 04:29 AM


All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"