Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MrSandman
 
Posts: n/a
Default Add certain cells based on a function


I have a column of data with several hundred rows. I want to add every
other row and show the results in another cell. How would i go about
doing this?

How about if i wanted to add every 2nd and 3rd row? Is there a
function i can use to do this?

In other words:

1
2
3
4
5
6
7
8
9
10

I want to sum up the (2+3) then skip a row (5+6) skip another row (8+9)
etc.


--
MrSandman
------------------------------------------------------------------------
MrSandman's Profile: http://www.excelforum.com/member.php...fo&userid=7826
View this thread: http://www.excelforum.com/showthread...hreadid=520860

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default Add certain cells based on a function


=SUM(IF(MOD(ROW($A$10:$A$19),$B$20)=0,$A$10:$A$19, 0))

this is an array formula you will need to controll shift enter for it
to work

$B$20 is the Nth value you want

Add every other number input 2 etc.


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=520860

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
format cell based on results of vlookup function Edith F Excel Worksheet Functions 1 July 21st 05 07:39 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Importing Data Into Formula Based Cells Heyna Excel Worksheet Functions 1 November 4th 04 06:04 PM


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

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"