Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Select number from leftmost column that has one

On a spreadsheet with 800 rows and 12 columns of data, how can I add a column
that is filled by the leftmost column that has data.
Some rows have data in only one of the 12 columns, some in 8, etc. No matter
how many there are, I only want the leftmost, no matter which column it is.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Select number from leftmost column that has one

Try this
sub glco()
dim i as long
for i=1 to Cells.Find(What:="*", SearchDirection:=xlPrevious).Row
cells(i,13).value=cells(i,1).end(xltoright).value
next i
end sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"widman" wrote in message
...
On a spreadsheet with 800 rows and 12 columns of data, how can I add a
column
that is filled by the leftmost column that has data.
Some rows have data in only one of the 12 columns, some in 8, etc. No
matter
how many there are, I only want the leftmost, no matter which column it
is.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Select number from leftmost column that has one

Try this array formula** :

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"widman" wrote in message
...
On a spreadsheet with 800 rows and 12 columns of data, how can I add a
column
that is filled by the leftmost column that has data.
Some rows have data in only one of the 12 columns, some in 8, etc. No
matter
how many there are, I only want the leftmost, no matter which column it
is.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Select number from leftmost column that has one

Thanks. worked like a charm

"T. Valko" wrote:

Try this array formula** :

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"widman" wrote in message
...
On a spreadsheet with 800 rows and 12 columns of data, how can I add a
column
that is filled by the leftmost column that has data.
Some rows have data in only one of the 12 columns, some in 8, etc. No
matter
how many there are, I only want the leftmost, no matter which column it
is.




.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Select number from leftmost column that has one

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"widman" wrote in message
...
Thanks. worked like a charm

"T. Valko" wrote:

Try this array formula** :

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

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"widman" wrote in message
...
On a spreadsheet with 800 rows and 12 columns of data, how can I add a
column
that is filled by the leftmost column that has data.
Some rows have data in only one of the 12 columns, some in 8, etc. No
matter
how many there are, I only want the leftmost, no matter which column it
is.




.



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
leftmost number value sandy Excel Discussion (Misc queries) 1 April 27th 10 02:53 AM
Select range using row and column number addresses NDBC Excel Discussion (Misc queries) 4 July 22nd 09 06:51 AM
Vlookup Question - Reffering to a column other than the leftmost? mpenkala Excel Discussion (Misc queries) 6 May 29th 08 04:48 AM
How to define and select the last (bottom) number in a column? BrendaN_at_Welke_Customs Excel Worksheet Functions 24 November 5th 07 05:06 AM
vlookup- is a must that lookup value should be the leftmost colum? hettie Excel Discussion (Misc queries) 3 September 20th 06 04:30 AM


All times are GMT +1. The time now is 07:49 AM.

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"