Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
leftmost number value | Excel Discussion (Misc queries) | |||
Select range using row and column number addresses | Excel Discussion (Misc queries) | |||
Vlookup Question - Reffering to a column other than the leftmost? | Excel Discussion (Misc queries) | |||
How to define and select the last (bottom) number in a column? | Excel Worksheet Functions | |||
vlookup- is a must that lookup value should be the leftmost colum? | Excel Discussion (Misc queries) |