Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default offset() with row() and col() functions?

I want to use offset(c2, 1, 0, 1, 1) for example, to get
the value from c3, but I want to generalize this with
the row and col functions. I basically want to do this...

sumif(a1:a10, true_condition, offset(a1:a10, 1, 0, 1,1)
IOW, if cells A1, and A3 meet the true_condition, I want
to sum A2 and A4. If A5 and A7 meet the true_condition,
I want to sum A6 and A8, etc.

--
- Zilla
(Remove XSPAM)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default offset() with row() and col() functions?

The most straightforward way is

=SUMIF(A1:A10,<condition,A2:A11)


If you really want to use offset:

=SUMIF(A1:A10,<condition,OFFSET(A1,1,0,,1))


In article ,
"Zilla" wrote:

I want to use offset(c2, 1, 0, 1, 1) for example, to get
the value from c3, but I want to generalize this with
the row and col functions. I basically want to do this...

sumif(a1:a10, true_condition, offset(a1:a10, 1, 0, 1,1)
IOW, if cells A1, and A3 meet the true_condition, I want
to sum A2 and A4. If A5 and A7 meet the true_condition,
I want to sum A6 and A8, etc.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default offset() with row() and col() functions?

Thanks, I was trying to make it more complicated.
I'll try both ways.

"JE McGimpsey" wrote in message
...
The most straightforward way is

=SUMIF(A1:A10,<condition,A2:A11)


If you really want to use offset:

=SUMIF(A1:A10,<condition,OFFSET(A1,1,0,,1))


In article ,
"Zilla" wrote:

I want to use offset(c2, 1, 0, 1, 1) for example, to get
the value from c3, but I want to generalize this with
the row and col functions. I basically want to do this...

sumif(a1:a10, true_condition, offset(a1:a10, 1, 0, 1,1)
IOW, if cells A1, and A3 meet the true_condition, I want
to sum A2 and A4. If A5 and A7 meet the true_condition,
I want to sum A6 and A8, etc.



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
arguments in MATCH and OFFSET functions Dave F Excel Worksheet Functions 1 September 1st 06 03:41 PM
Trying to use sumif and offset functions hizzle Excel Discussion (Misc queries) 5 February 9th 06 11:47 PM
AVERAGE / OFFSET FUNCTIONS, TODAY.. nastech Excel Discussion (Misc queries) 2 January 2nd 06 11:57 PM
Using the OFFSET and COUNT functions to get a moving total Eduardo Excel Discussion (Misc queries) 2 November 1st 05 01:58 AM
Offset and Indirect functions Thrava Excel Discussion (Misc queries) 4 December 23rd 04 05:07 PM


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