Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Retrieving first non-blank cell during a V-LOOKUP

Hi all,

I am looking to use the VLOOKUP function to caputure the contents of the
first nonblank cell. At the moment, I am capturing the first match - which
may be blank or non blank.

How do I capture non-blank cells only?

Thank you.

Clarissa.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Retrieving first non-blank cell during a V-LOOKUP

Hi Clarissa,

With these conditions, you will need array formulas ...
Are you looking for the first non-blank value in a column or in a
row ...?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Retrieving first non-blank cell during a V-LOOKUP

Hi Carim - in a Column.

"Carim" wrote:

Hi Clarissa,

With these conditions, you will need array formulas ...
Are you looking for the first non-blank value in a column or in a
row ...?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Retrieving first non-blank cell during a V-LOOKUP

Ok then ...

Have a go with :

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Instead of Enter, use Shift Control Enter keys simultaneously to input
formula

HTH
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Retrieving first non-blank cell during a V-LOOKUP

Hi,

I was looking to use VLOOkUP to match the first non-blank cell, the formula
you've kindly provided doesn't do that.
Thank you for trying anyway.

Clarissa

"Carim" wrote:

Ok then ...

Have a go with :

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Instead of Enter, use Shift Control Enter keys simultaneously to input
formula

HTH



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Retrieving first non-blank cell during a V-LOOKUP

What does it do instead?



Clarissa wrote:

Hi,

I was looking to use VLOOkUP to match the first non-blank cell, the formula
you've kindly provided doesn't do that.
Thank you for trying anyway.

Clarissa

"Carim" wrote:

Ok then ...

Have a go with :

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Instead of Enter, use Shift Control Enter keys simultaneously to input
formula

HTH


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Retrieving first non-blank cell during a V-LOOKUP

Hi Dave - nothing - it does not peform the role of a look up.

"Dave Peterson" wrote:

What does it do instead?



Clarissa wrote:

Hi,

I was looking to use VLOOkUP to match the first non-blank cell, the formula
you've kindly provided doesn't do that.
Thank you for trying anyway.

Clarissa

"Carim" wrote:

Ok then ...

Have a go with :

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Instead of Enter, use Shift Control Enter keys simultaneously to input
formula

HTH


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Retrieving first non-blank cell during a V-LOOKUP

What does the formula return instead?

Maybe the cell looks empty, but contains a space character?

If you use:
=len(a1)
(change A1 to the cell that contains the formula)
what do you see?

If the value that's returned is not zero, then you have cells with spaces in
them.

You could clean up the original data (I would!) or you could use a different
formula:

=INDEX(A1:A100,MATCH(TRUE,trim(A1:A100)<"",0))

(still array entered)


Clarissa wrote:

Hi Dave - nothing - it does not peform the role of a look up.

"Dave Peterson" wrote:

What does it do instead?



Clarissa wrote:

Hi,

I was looking to use VLOOkUP to match the first non-blank cell, the formula
you've kindly provided doesn't do that.
Thank you for trying anyway.

Clarissa

"Carim" wrote:

Ok then ...

Have a go with :

=INDEX(A1:A100,MATCH(TRUE,A1:A100<"",0))

Instead of Enter, use Shift Control Enter keys simultaneously to input
formula

HTH


--

Dave Peterson


--

Dave Peterson
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
Lookup based on 1st non-blank cell Rominall Excel Worksheet Functions 3 September 14th 07 06:30 PM
Show a blank result in a cell when there is no value in the "Lookup" cell Michael Slater New Users to Excel 2 August 5th 07 08:08 PM
VLOOKUP CONDITION TO RETURN BLANK CELL WHERE LOOKUP VALUE IS NOT IN TABLE ARRAY Scott Lolmaugh Excel Worksheet Functions 3 March 9th 06 11:05 PM
Returning a blank cell rather then #N/A (Lookup) Monk Excel Discussion (Misc queries) 2 January 24th 06 03:16 PM
Return of blank cell if lookup fails TimM Excel Worksheet Functions 4 November 23rd 05 04:40 PM


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