PC Review


Reply
Thread Tools Rate Thread

countif problem...

 
 
Scot B
Guest
Posts: n/a
 
      9th Dec 2005
Greetings,

I'm having trouble getting a formula to work..I can't seem to think of it in
a straightforward manner. it shouldn't be hard.

your help is appreciated....

i have a row of values....RowA
let's say they're 100,125,60,150,200.

in a different cell, B1i have a value which indicates the number of values
in row A to be counted. let's say the value in B1 is "3"

so, i'm trying to derive a formula that says "sum X of the numbers in row A,
where X is defined by the value in cell B1".

then a formula that looks to B2 and picks up summing the values in Row A,
where the first formula left of for X number of cells defined by B2.

Please help!

Cheers,

Scot B.


 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      9th Dec 2005
If I understand you correctly (I'm assuming that A and B are columns,
not rows, for one thing...):

C1: =SUM(OFFSET(A1,,,B1,1))
C2: =SUM(OFFSET(A$1,SUM(B$1:B1),,B2,1))

In article <UrGdnRgp38kHWwXeRVn-(E-Mail Removed)>,
"Scot B" <(E-Mail Removed)> wrote:

> Greetings,
>
> I'm having trouble getting a formula to work..I can't seem to think of it in
> a straightforward manner. it shouldn't be hard.
>
> your help is appreciated....
>
> i have a row of values....RowA
> let's say they're 100,125,60,150,200.
>
> in a different cell, B1i have a value which indicates the number of values
> in row A to be counted. let's say the value in B1 is "3"
>
> so, i'm trying to derive a formula that says "sum X of the numbers in row A,
> where X is defined by the value in cell B1".
>
> then a formula that looks to B2 and picks up summing the values in Row A,
> where the first formula left of for X number of cells defined by B2.
>
> Please help!
>
> Cheers,
>
> Scot B.

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      9th Dec 2005
First one

=SUM(OFFSET($A$1,0,0,B1,1))

Second one

=SUM(OFFSET($A$1,B1,0,B2,1))

and copy the second down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Scot B" <(E-Mail Removed)> wrote in message
news:UrGdnRgp38kHWwXeRVn-(E-Mail Removed)...
> Greetings,
>
> I'm having trouble getting a formula to work..I can't seem to think of it

in
> a straightforward manner. it shouldn't be hard.
>
> your help is appreciated....
>
> i have a row of values....RowA
> let's say they're 100,125,60,150,200.
>
> in a different cell, B1i have a value which indicates the number of values
> in row A to be counted. let's say the value in B1 is "3"
>
> so, i'm trying to derive a formula that says "sum X of the numbers in row

A,
> where X is defined by the value in cell B1".
>
> then a formula that looks to B2 and picks up summing the values in Row A,
> where the first formula left of for X number of cells defined by B2.
>
> Please help!
>
> Cheers,
>
> Scot B.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif Problem Rob Microsoft Excel Misc 4 16th Feb 2010 04:31 PM
Countif Problem Mark W Microsoft Excel Worksheet Functions 2 21st Apr 2006 09:39 PM
Re: PROBLEM WITH COUNTIF TO REF. ANOTHER WK SHT Arvi Laanemets Microsoft Excel Misc 0 27th Jul 2004 07:36 PM
COUNTIF problem SUPAFLY Microsoft Excel Misc 7 28th Feb 2004 02:47 AM
countif problem ims Microsoft Excel Worksheet Functions 2 27th Oct 2003 04:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:56 PM.