Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to select everything EXCEPT a single row in Excel

I have a data set of some 7000+ rows, and i need to be able to
determine the standard deviation of a single row, then determine the
standard deviation of all the rest of the data combined. this then
needs to be replicated for every single row. If i can just have
someone give me an example of how to select everything EXCEPT a single
row that would be perfect! any help would be a life saver! thanks in
Advance!

example.
row 1
row 2
row 3
row 4

so for the first standard deviations it would be the standard
deviation of row 1, then ffiguring out the standard deviation of rows
2 through 4.
the second would be the standard deviation of row 2, then the standard
deviation of rows 1, 3, and 4.
I hope this helps!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default How to select everything EXCEPT a single row in Excel

I'm going to assume that Row 2 is your second row of data and the data is in
columns A-E. The std for the row will be in column F and the std for all
other columns will be in row G. I'm also going to assume that you have data
in column A.

Sub Testing()
Dim myRange As Range

lrow = Cells(Rows.Count, 1).End(xlUp).Row

Set myRange = Cells(2, 1).Resize(lrow - 2 + 1, 1)
Debug.Print myRange.Address

For Each r In myRange
r.Offset(0, 5).FormulaR1C1 = "=stdev(R" & r.Row & "C1:R" & r.Row & "C" &
"5)"
If r.Row myRange.Row Then
r.Offset(0, 6).FormulaR1C1 = "=stdev(R2C1:R" & r.Row - 1 & "C5,r" &
r.Row + 1 & "C1:R" & lrow & "C5)"
Else
r.Offset(0, 6).FormulaR1C1 = "=stdev(R" & r.Row + 1 & "C1:R" & lrow
& "C5)"
End If

Next r

End Sub


HTH,
Barb Reinhardt


" wrote:

I have a data set of some 7000+ rows, and i need to be able to
determine the standard deviation of a single row, then determine the
standard deviation of all the rest of the data combined. this then
needs to be replicated for every single row. If i can just have
someone give me an example of how to select everything EXCEPT a single
row that would be perfect! any help would be a life saver! thanks in
Advance!

example.
row 1
row 2
row 3
row 4

so for the first standard deviations it would be the standard
deviation of row 1, then ffiguring out the standard deviation of rows
2 through 4.
the second would be the standard deviation of row 2, then the standard
deviation of rows 1, 3, and 4.
I hope this helps!


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
Cannot select single cell. Mouse move automatically creates range. Dave Jones - England Excel Discussion (Misc queries) 1 April 22nd 07 09:37 AM
Single Column select Daniel Q. Excel Discussion (Misc queries) 4 October 18th 06 10:07 PM
Save a single worksheet in Excel as a single file. Dakota New Users to Excel 4 February 22nd 06 04:46 PM
select & format "single" axis line in charts Guru Guy Charts and Charting in Excel 1 February 21st 06 03:36 AM
I cannot select a single cell or pull down cell contents Carolyn Fahm Excel Worksheet Functions 0 January 24th 06 04:54 PM


All times are GMT +1. The time now is 07:44 PM.

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"