Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Formula for selecting the second row down (Not necessarily row "2"

I have the following command:

lastrow=Cells(Rows.count, "A").End(xlup).Row

I need the formula to select the second row down
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Formula for selecting the second row down (Not necessarily row "2"

The second row down from what?

Rick


"Megadrone" wrote in message
...
I have the following command:

lastrow=Cells(Rows.count, "A").End(xlup).Row

I need the formula to select the second row down


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Formula for selecting the second row down (Not necessarily row

I'm sorry,

The second row down from the top of the spreadsheet (row 1)

"Rick Rothstein (MVP - VB)" wrote:

The second row down from what?

Rick


"Megadrone" wrote in message
...
I have the following command:

lastrow=Cells(Rows.count, "A").End(xlup).Row

I need the formula to select the second row down



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Formula for selecting the second row down (Not necessarily row

Here is the info.

Market = Application.InputBox("Enter your market Example: test")

lastrow = Cells(Rows.Count, "A").End(xlUp).Row
Firstrow = Cells(Rows.Count, "A").Top(xlDown).Row
Selection.AutoFilter Field:=5, Criteria1:="Market"
Range(("D1" & Firstrow), ("D1" & lastrow)).Select
Range(("D1" & Firstrow), ("D1" & lastrow)).Activate
Charts.Add
ActiveChart.ChartType = xlAreaStacked
ActiveChart.SetSourceData Source:=Sheets("3rd Quarter Daily
(07)").Range(( _
"D1" & Firstrow), ("D1" & lastrow)), PlotBy:=xlColumns
ActiveChart.Location Whe=xlLocationAsObject, Name:= _
"3rd Quarter Daily (07)"

"Rick Rothstein (MVP - VB)" wrote:

The second row down from what?

Rick


"Megadrone" wrote in message
...
I have the following command:

lastrow=Cells(Rows.count, "A").End(xlup).Row

I need the formula to select the second row down



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Formula for selecting the second row down (Not necessarily row "2"

hi
add an offset....
lastrow = Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Row

regards
FSt1

"Megadrone" wrote:

I have the following command:

lastrow=Cells(Rows.count, "A").End(xlup).Row

I need the formula to select the second row down



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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


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