Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Michelle Odell
 
Posts: n/a
Default formula for adding every other cell in Excel

Trying to add cell vaules in a very large workbook, but I only need the value
of every other cell. What is the easiest why to do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default formula for adding every other cell in Excel

Try something like this:

For numbers in cells A1:A10
B1: =SUMPRODUCT((MOD(ROW(A1:A10),2)=0)*A1:A10)

If you want the "other" cells added, instead:
B1: =SUMPRODUCT((MOD(ROW(A1:A10),2)=1)*A1:A10)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Michelle Odell" wrote:

Trying to add cell vaules in a very large workbook, but I only need the value
of every other cell. What is the easiest why to do this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Philip Reece-Heal
 
Posts: n/a
Default formula for adding every other cell in Excel

Michelle
Might not be the easiest way but if you create another column to the right
of the column you want to sum and enter the following formula in each cell:
=IF(MOD(ROW(),2)=1,,RC[-1])
This divides the row number by 2 and if there is a remainder, it concludes
that the row number is an odd number and gives the answer 0. If the row
number is even it copies the value from the preceding column. Now all you
have to do is Sum the new column to get total for every odd row.

If you want every even row instead, then use
=IF(MOD(ROW(),2)=0,,RC[-1])

Someone may well come up with something simpler but maybe this will do for
the time being
Regards
Philip


"Michelle Odell" <Michelle wrote in message
...
Trying to add cell vaules in a very large workbook, but I only need the
value
of every other cell. What is the easiest why to do this?



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
Can I make a formula in Excel to display result in same cell? Neiko Excel Worksheet Functions 2 October 1st 05 10:36 PM
How can i get an If formula in excel to edit another cell? Jimmy Hoffa Excel Worksheet Functions 2 August 16th 05 05:53 PM
EXCEL LINK CELL FORMULA MDL2005 Excel Worksheet Functions 3 March 18th 05 01:49 PM
Excel formula for seperating two words in the same cell. Mim New Users to Excel 2 March 8th 05 11:33 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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