Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Formulas and Last Cell
I have an array formula that extends 1500 rows. The formula in the cells
return data from another source. I need to graph this data, but the graph (as expected) plots all the cells with no actual value. How do I detect what row the last real value is contained in? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Formulas and Last Cell
=MAX(ROW(A1:A1500)*(A1:A1500<""))
entered as an array formula with <Ctrl <Shift <Enter. -- Vasant "PosseJohn" wrote in message ... I have an array formula that extends 1500 rows. The formula in the cells return data from another source. I need to graph this data, but the graph (as expected) plots all the cells with no actual value. How do I detect what row the last real value is contained in? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Formulas and Last Cell
I need to do this in VBA. I do not have the ROW function available.
"Vasant Nanavati" wrote: =MAX(ROW(A1:A1500)*(A1:A1500<"")) entered as an array formula with <Ctrl <Shift <Enter. -- Vasant "PosseJohn" wrote in message ... I have an array formula that extends 1500 rows. The formula in the cells return data from another source. I need to graph this data, but the graph (as expected) plots all the cells with no actual value. How do I detect what row the last real value is contained in? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Formulas and Last Cell
Simplified version:
Function LastRow() As Long Dim i As Long For i = 1500 to 1 Step -1 If Range(i, 1) < "" Then LastRow = i Exit For End If Next End Function -- Vasant "PosseJohn" wrote in message ... I need to do this in VBA. I do not have the ROW function available. "Vasant Nanavati" wrote: =MAX(ROW(A1:A1500)*(A1:A1500<"")) entered as an array formula with <Ctrl <Shift <Enter. -- Vasant "PosseJohn" wrote in message ... I have an array formula that extends 1500 rows. The formula in the cells return data from another source. I need to graph this data, but the graph (as expected) plots all the cells with no actual value. How do I detect what row the last real value is contained in? |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array Formulas and Last Cell
That works great, thankyou for your brain.
"Vasant Nanavati" wrote: Simplified version: Function LastRow() As Long Dim i As Long For i = 1500 to 1 Step -1 If Range(i, 1) < "" Then LastRow = i Exit For End If Next End Function -- Vasant "PosseJohn" wrote in message ... I need to do this in VBA. I do not have the ROW function available. "Vasant Nanavati" wrote: =MAX(ROW(A1:A1500)*(A1:A1500<"")) entered as an array formula with <Ctrl <Shift <Enter. -- Vasant "PosseJohn" wrote in message ... I have an array formula that extends 1500 rows. The formula in the cells return data from another source. I need to graph this data, but the graph (as expected) plots all the cells with no actual value. How do I detect what row the last real value is contained in? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert Array Formulas to Regular Formulas | Excel Worksheet Functions | |||
Convert Array Formulas to Regular Formulas | Excel Worksheet Functions | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
Array Formulas | Excel Worksheet Functions | |||
Function CELL in array formulas | Excel Discussion (Misc queries) |