Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
akullen
 
Posts: n/a
Default Function(s) that return multiple separated references


Hello,

I am trying to achieve a kind of combination of OFFSET and COUNT i.e.

My problem is that OFFSET requires continuously filled cells which I do
not have. I could have, as an example, a number in every 5th row in a
column. Do you have any proposals on how to come around this?

Thanks in advance
Anders


--
akullen
------------------------------------------------------------------------
akullen's Profile: http://www.excelforum.com/member.php...o&userid=32513
View this thread: http://www.excelforum.com/showthread...hreadid=523003

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Function(s) that return multiple separated references

Hi Anders

One way
=SUMPRODUCT(--(MOD(ROW(A1:A100),5)=0),A1:A100)

This would sum values in cells A5, A10, A15 etc.
The MOD( ( ) ,5)=0 part of the formula is testing whether the row number
divides exactly by 5 (in which case the remainder will be 0) and
multiplies the result True or False by the values in the cells in that
column. The double unary minus (--) coerces these True's to 1's and
False's to 0's to enable the calculation to be made.

Making it MOD( ( ),3)=0 would make it every third row

--
Regards

Roger Govier


"akullen" wrote
in message ...

Hello,

I am trying to achieve a kind of combination of OFFSET and COUNT i.e.

My problem is that OFFSET requires continuously filled cells which I
do
not have. I could have, as an example, a number in every 5th row in a
column. Do you have any proposals on how to come around this?

Thanks in advance
Anders


--
akullen
------------------------------------------------------------------------
akullen's Profile:
http://www.excelforum.com/member.php...o&userid=32513
View this thread:
http://www.excelforum.com/showthread...hreadid=523003



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
akullen
 
Posts: n/a
Default Function(s) that return multiple separated references


Hi Roger

Thanks for the answer. My example was not very good. It is not always
the same number of rows in between.
Anyway, I found a way to solve my problem here on the forum. Check this
great thread out:
http://www.excelforum.com/showthread.php?t=512386

Thanks
Anders.


--
akullen
------------------------------------------------------------------------
akullen's Profile: http://www.excelforum.com/member.php...o&userid=32513
View this thread: http://www.excelforum.com/showthread...hreadid=523003

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
Multiple search criteria to return one response Dan Excel Worksheet Functions 3 March 3rd 06 04:44 AM
Change text within multiple functions Harv Excel Worksheet Functions 3 November 7th 05 07:24 PM
how to lookup a value and return multiple corresponding values Asthee Excel Worksheet Functions 1 November 5th 05 02:49 PM
search multiple worksheets for an item and return the Wsheets name Chris Excel Worksheet Functions 16 November 7th 04 01:15 PM
How to look up and return multiple values Wendy Excel Worksheet Functions 3 November 3rd 04 05:32 PM


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