WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Selecting a Range

 
Goto page Previous  1, 2
   Home -> Office -> General Discussions RSS
Next:  XIRR with more than two columns  
Author Message
JimS

External


Since: Jul 28, 2008
Posts: 113



(Msg. 9) Posted: Wed Aug 27, 2008 2:20 pm
Post subject: Re: Selecting a Range [Login to view extended thread Info.]
Archived from groups: microsoft>public>excel (more info?)

OK, I'm stumped. I've pulled my hair out for two hours, so I give up.
First of all thank everyone for the help.

I shifted everything to the left so the values have changed slightly.

I can't get this to work for a column of inputed data. It works fine
for a column of data derived from formulas. That's the only thing I
can think of that's holding me up. Here is the formula that works:


=IF(ISERROR(AVERAGE(IF(C15:C2498=K2,O15:O2498))),0,AVERAGE(IF(C15:C2498=K2,O15:O2498)))

This one doesn't work:

=IF(ISERROR(AVERAGE(IF(C15:C2498=K2,N15:N2498))),0,AVERAGE(IF(C15:C2498=K2,N15:N2498)))

I'm trying to do the same thing for two different columns of data.
The problem is that the second formula averages when there is no value
in the cell. So if my column is:

$10.00
$10.00
(blank cell)

I get an answer of $6.67 when I want an answer of $10.00. I want the
average of the actual values only.

Like I said the first formula does what I want no problem, and there
really shouldn't be any difference that I can see.

On Wed, 27 Aug 2008 14:20:36 +0800, "Max" <demechanik.TakeThisOut@yahoo.com>
wrote:

>To point to a cell, L2,
>which will contain the text: sar (w/o the double quotes)
>
>The 2 array-entered expressions will be simply:
>
>=AVERAGE(IF(C17:C2002=L2,O17:O2002))
>
>=IF(ISERROR(AVERAGE(IF(C17:C2002=L2,O17:O2002))),0,
>AVERAGE(IF(C17:C2002=L2,O17:O2002)))
>
>And if you have a list of text entered in L2 down (ie in L2, L3, L4, etc)
>just fix the ranges like this in your start cell, say in M2:
>
>=AVERAGE(IF(C$17:C$2002=L2,O$17:O$2002))
>
>=IF(ISERROR(AVERAGE(IF(C$17:C$2002=L2,O$17:O$2002))),0,
>AVERAGE(IF(C$17:C$2002=L2,O$17:O$2002)))
>
>Then just copy M2 down as far as required
>to return the corresponding results for each value in L2, l3, L4 etc
Back to top
Login to vote
Max

External


Since: Sep 08, 2003
Posts: 1627



(Msg. 10) Posted: Wed Aug 27, 2008 8:32 pm
Post subject: Re: Selecting a Range [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

My guess is that you need an additional ISNUMBER check on the col N to be
averaged, to ensure that the average will be only for the cells in col N
that contains numbers (besides the concurrent check on col C = K2):

Try, array-entered:
=IF(ISERROR(AVERAGE(IF((C15:C2498=K2)*(ISNUMBER(N15:N2498)),N15:N2498))),0,AVERAGE(IF((C15:C2498=K2)*(ISNUMBER(N15:N2498)),N15:N2498)))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"JimS" <jimx22.DeleteThis@msn.com> wrote in message
news:e37ab4dkq61kp67bmggig5jh492259m99i@4ax.com...
> OK, I'm stumped. I've pulled my hair out for two hours, so I give up.
> First of all thank everyone for the help.
>
> I shifted everything to the left so the values have changed slightly.
>
> I can't get this to work for a column of inputed data. It works fine
> for a column of data derived from formulas. That's the only thing I
> can think of that's holding me up. Here is the formula that works:
>
>
> =IF(ISERROR(AVERAGE(IF(C15:C2498=K2,O15:O2498))),0,AVERAGE(IF(C15:C2498=K2,O15:O2498)))
>
> This one doesn't work:
>
> =IF(ISERROR(AVERAGE(IF(C15:C2498=K2,N15:N2498))),0,AVERAGE(IF(C15:C2498=K2,N15:N2498)))
>
> I'm trying to do the same thing for two different columns of data.
> The problem is that the second formula averages when there is no value
> in the cell. So if my column is:
>
> $10.00
> $10.00
> (blank cell)
>
> I get an answer of $6.67 when I want an answer of $10.00. I want the
> average of the actual values only.
>
> Like I said the first formula does what I want no problem, and there
> really shouldn't be any difference that I can see.
Back to top
Login to vote
JimS

External


Since: Jul 28, 2008
Posts: 113



(Msg. 11) Posted: Wed Aug 27, 2008 8:32 pm
Post subject: Re: Selecting a Range [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you so much! That did it. I never would have got it.

I really appreciate it.

On Wed, 27 Aug 2008 20:32:45 +0800, "Max" <demechanik.RemoveThis@yahoo.com>
wrote:

>My guess is that you need an additional ISNUMBER check on the col N to be
>averaged, to ensure that the average will be only for the cells in col N
>that contains numbers (besides the concurrent check on col C = K2):
>
>Try, array-entered:
>=IF(ISERROR(AVERAGE(IF((C15:C2498=K2)*(ISNUMBER(N15:N2498)),N15:N2498))),0,AVERAGE(IF((C15:C2498=K2)*(ISNUMBER(N15:N2498)),N15:N2498)))
Back to top
Login to vote
Max

External


Since: Sep 08, 2003
Posts: 1627



(Msg. 12) Posted: Wed Aug 27, 2008 8:48 pm
Post subject: Re: Selecting a Range [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Welcome
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"JimS" <jimx22 RemoveThis @msn.com> wrote in message
news:rpiab49bjmkdc57p2vfia8tj50de0u2iig@4ax.com...
> Thank you so much! That did it. I never would have got it.
> I really appreciate it.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> General Discussions All times are: Eastern Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET