Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default List the one nonempty cell

All of column B is empty except one cell. The non-empty cell is in a
different place each week. I want a formula that will give the text in the
nonempty cell, regardless of which cell is nonempty at that point in time.
For example.

Week 4
Cell should say "Text 4"

A B
1
2
3
4 Text 4


Week 2
Cell should say "Text 2"

A B
1
2 Text 2
3
4


Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default List the one nonempty cell

Hi Adam

Maybe:

=LOOKUP(REPT("z",255),B:B)

Hope this helps!

Richard

Adam Graham wrote:
All of column B is empty except one cell. The non-empty cell is in a
different place each week. I want a formula that will give the text in the
nonempty cell, regardless of which cell is nonempty at that point in time.
For example.

Week 4
Cell should say "Text 4"

A B
1
2
3
4 Text 4


Week 2
Cell should say "Text 2"

A B
1
2 Text 2
3
4


Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default List the one nonempty cell

works!

thanks

"RichardSchollar" wrote:

Hi Adam

Maybe:

=LOOKUP(REPT("z",255),B:B)

Hope this helps!

Richard

Adam Graham wrote:
All of column B is empty except one cell. The non-empty cell is in a
different place each week. I want a formula that will give the text in the
nonempty cell, regardless of which cell is nonempty at that point in time.
For example.

Week 4
Cell should say "Text 4"

A B
1
2
3
4 Text 4


Week 2
Cell should say "Text 2"

A B
1
2 Text 2
3
4


Thanks



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default List the one nonempty cell

I was wrong, these don't work. They do, if the cells in column B are imputed
manually, but in my case they are controlled by an 'IF' formula, where truth
is indicated by text and falseness is indicated by "", to create a blank
cell. Both these formulas interperate "" as text.

I may need to find a new way to do this altogether, unless someone knows of
a way to manipulate either of these formulas to exclude the blank cells, in
other words, list the only cell that is not "".

A formula that would work would also do the following:

case 1: cell should say "Text 3"
A
false
false
Text 3
false

case 2: cell should say "Text 2"
A
false
Text 2
false
false

Thanks for your help, though, in truth you did answer my question!
"T. Valko" wrote:

Another one:

=INDEX(B:B,MATCH("*",B:B,0))

Biff

"Adam Graham" <Adam wrote in message
...
All of column B is empty except one cell. The non-empty cell is in a
different place each week. I want a formula that will give the text in
the
nonempty cell, regardless of which cell is nonempty at that point in time.
For example.

Week 4
Cell should say "Text 4"

A B
1
2
3
4 Text 4


Week 2
Cell should say "Text 2"

A B
1
2 Text 2
3
4


Thanks






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default List the one nonempty cell

Adam

Try this variant:

=LOOKUP(2,1/(A1:A65535<""),A1:A65535)

Note that this formula doesn't use whole column refs (it is 1 row
less).

Best regards

Richard

Adam Graham wrote:
I was wrong, these don't work. They do, if the cells in column B are imputed
manually, but in my case they are controlled by an 'IF' formula, where truth
is indicated by text and falseness is indicated by "", to create a blank
cell. Both these formulas interperate "" as text.

I may need to find a new way to do this altogether, unless someone knows of
a way to manipulate either of these formulas to exclude the blank cells, in
other words, list the only cell that is not "".

A formula that would work would also do the following:

case 1: cell should say "Text 3"
A
false
false
Text 3
false

case 2: cell should say "Text 2"
A
false
Text 2
false
false

Thanks for your help, though, in truth you did answer my question!
"T. Valko" wrote:

Another one:

=INDEX(B:B,MATCH("*",B:B,0))

Biff

"Adam Graham" <Adam wrote in message
...
All of column B is empty except one cell. The non-empty cell is in a
different place each week. I want a formula that will give the text in
the
nonempty cell, regardless of which cell is nonempty at that point in time.
For example.

Week 4
Cell should say "Text 4"

A B
1
2
3
4 Text 4


Week 2
Cell should say "Text 2"

A B
1
2 Text 2
3
4


Thanks





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default List the one nonempty cell

works like a charm!

thanks, Richard


"RichardSchollar" wrote:

Adam

Try this variant:

=LOOKUP(2,1/(A1:A65535<""),A1:A65535)

Note that this formula doesn't use whole column refs (it is 1 row
less).

Best regards

Richard

Adam Graham wrote:
I was wrong, these don't work. They do, if the cells in column B are imputed
manually, but in my case they are controlled by an 'IF' formula, where truth
is indicated by text and falseness is indicated by "", to create a blank
cell. Both these formulas interperate "" as text.

I may need to find a new way to do this altogether, unless someone knows of
a way to manipulate either of these formulas to exclude the blank cells, in
other words, list the only cell that is not "".

A formula that would work would also do the following:

case 1: cell should say "Text 3"
A
false
false
Text 3
false

case 2: cell should say "Text 2"
A
false
Text 2
false
false

Thanks for your help, though, in truth you did answer my question!
"T. Valko" wrote:

Another one:

=INDEX(B:B,MATCH("*",B:B,0))

Biff

"Adam Graham" <Adam wrote in message
...
All of column B is empty except one cell. The non-empty cell is in a
different place each week. I want a formula that will give the text in
the
nonempty cell, regardless of which cell is nonempty at that point in time.
For example.

Week 4
Cell should say "Text 4"

A B
1
2
3
4 Text 4


Week 2
Cell should say "Text 2"

A B
1
2 Text 2
3
4


Thanks






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
Drop-Down List Choice Affects Multiple Cells? Patrick R Excel Worksheet Functions 5 November 24th 06 12:33 AM
auto updating list Larry Excel Worksheet Functions 8 July 27th 06 01:59 PM
change size of in cell drop down list yep Excel Discussion (Misc queries) 3 January 27th 06 09:42 PM
changing value of a cell by selecting an item from a drop down list Bobby Mir Excel Worksheet Functions 6 June 8th 05 08:33 PM
Can a cell have a drop down list and can also be auto populated Adrian Excel Worksheet Functions 1 March 17th 05 05:05 AM


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