Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
pnair
 
Posts: n/a
Default How can I choose alternate rows in a column?

My requirement is to be able to create a column whose elements consist of
difference between adjacent elements in a column, say column A. If I can
choose alternate elements and create 2 new columns then I can just subtract
the 2 columns easily.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Biff
 
Posts: n/a
Default How can I choose alternate rows in a column?

Huh?

"pnair" wrote in message
...
My requirement is to be able to create a column whose elements consist of
difference between adjacent elements in a column, say column A. If I can
choose alternate elements and create 2 new columns then I can just
subtract
the 2 columns easily.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
B. R.Ramachandran
 
Posts: n/a
Default How can I choose alternate rows in a column?

Hi,

I don't quite understand what you want to do. Let's suppose that the data
are in A1:A100.

If you want, B2 to be equal to A2-A1, B3 to be equal to A3-A2, ........,
B100 to be equal to A100-A99, enter the formula =A2-A1 in B2 and click ENTER.
B1 wil be blank. Click again on B2, and autofill the formula down to B100
(for this, click on B2, move the cursor to the bottom right side corner of
the cell (the cursor will change into a "+" sign), hold the left-side mouse
button and drag down the rows to B100).

If you, on the other hand, want only ALTERNATE cells in column B (i.e., B2,
B4, B6, ... B100) show the difference between A values of the corresponding
and the previous rows (i.e., B1, B3, B5, ... B99 will be blank), do the
following. Enter the same formula (i.e., =A2-A1) in B2. Now select B1 and
B2, and autofill the column down to B100. Now B2 will show A2-A1, B3 will be
blank, B4 will show A4-A3, B5 will be blank, B6 will show A6-A5, ..., and
..B100 will show A100-A99.

Regards,
B. R. Ramachandran




"pnair" wrote:

My requirement is to be able to create a column whose elements consist of
difference between adjacent elements in a column, say column A. If I can
choose alternate elements and create 2 new columns then I can just subtract
the 2 columns easily.

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
Count rows that match criteria in 2 different column cell ranges JoAnn New Users to Excel 2 December 9th 05 06:51 PM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 01:28 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
generate multiple rows based on cell value Theresa Excel Worksheet Functions 0 May 25th 05 11:18 PM
I need a formula to find rows within a date range in one column? M. Penney Excel Worksheet Functions 5 May 12th 05 12:32 AM


All times are GMT +1. The time now is 12:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"