UK diy (uk.d-i-y) For the discussion of all topics related to diy (do-it-yourself) in the UK. All levels of experience and proficency are welcome to join in to ask questions or offer solutions.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to uk.d-i-y
ss ss is offline
external usenet poster
 
Posts: 594
Default Help with excel formula

I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.

Can anyone help to adjust the formula for me.
This is the answer in english but how the heck do I do it.
".....If you use formulas to calculate the percentage column, return a
blank instead of a zero to have it ignored in the average...."

So this needs to change:
=IFERROR(G18/F18*(100),"")
  #2   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 1,132
Default Help with excel formula

http://www.excelfunctions.net/Excel-...-Function.html
  #3   Report Post  
Posted to uk.d-i-y
ss ss is offline
external usenet poster
 
Posts: 594
Default Help with excel formula

On 06/05/2015 16:02, JimK wrote:
http://www.excelfunctions.net/Excel-...-Function.html


Thanks Jim although I still cant work it out from that.
I need to add something to my formula so that a blank cell does not
contain an invisible zero which is then picked up and used to count my
averages. Excuse my terminology but not too clever with excel stuff.
  #4   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 2,094
Default Help with excel formula

On 06/05/2015 16:24, ss wrote:
On 06/05/2015 16:02, JimK wrote:
http://www.excelfunctions.net/Excel-...-Function.html


Thanks Jim although I still cant work it out from that.
I need to add something to my formula so that a blank cell does not
contain an invisible zero which is then picked up and used to count my
averages. Excuse my terminology but not too clever with excel stuff.


You can do a countblank (or 'if ', etc), and simply deduct or add that
to your subtotal. I tend to do this sort of thing using a load of clumsy
equations in brackets. Works best for me as I don't use Excel that often.

--
Cheers, Rob
  #5   Report Post  
Posted to uk.d-i-y
GB GB is offline
external usenet poster
 
Posts: 4,768
Default Help with excel formula

On 06/05/2015 16:46, RJH wrote:
On 06/05/2015 16:24, ss wrote:
On 06/05/2015 16:02, JimK wrote:
http://www.excelfunctions.net/Excel-...-Function.html


Thanks Jim although I still cant work it out from that.
I need to add something to my formula so that a blank cell does not
contain an invisible zero which is then picked up and used to count my
averages. Excuse my terminology but not too clever with excel stuff.


You can do a countblank (or 'if ', etc), and simply deduct or add that
to your subtotal. I tend to do this sort of thing using a load of clumsy
equations in brackets. Works best for me as I don't use Excel that often.



I'm lost, because the OP seems to be making this rather more complicated
than it seems to need to be. What's wrong with a formula like this one,
using the correct function for the job?

=COUNTIF(B1:B19,"0")




  #6   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 810
Default Help with excel formula

On Wed, 06 May 2015 17:31:35 +0100, GB wrote:

On 06/05/2015 16:46, RJH wrote:
On 06/05/2015 16:24, ss wrote:
On 06/05/2015 16:02, JimK wrote:
http://www.excelfunctions.net/Excel-...-Function.html

Thanks Jim although I still cant work it out from that.
I need to add something to my formula so that a blank cell does not
contain an invisible zero which is then picked up and used to count my
averages. Excuse my terminology but not too clever with excel stuff.


You can do a countblank (or 'if ', etc), and simply deduct or add that
to your subtotal. I tend to do this sort of thing using a load of
clumsy equations in brackets. Works best for me as I don't use Excel
that often.



I'm lost, because the OP seems to be making this rather more complicated
than it seems to need to be. What's wrong with a formula like this one,
using the correct function for the job?

=COUNTIF(B1:B19,"0")


Because that simply gives you the number of cells that are 0, rather
than the avereage of the contents of cells that are 0.
  #7   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 129
Default Help with excel formula

"ss" wrote in message
...
On 06/05/2015 16:02, JimK wrote:
http://www.excelfunctions.net/Excel-...-Function.html


Thanks Jim although I still cant work it out from that.
I need to add something to my formula so that a blank cell does not
contain an invisible zero which is then picked up and used to count my
averages. Excuse my terminology but not too clever with excel stuff.


http://excelribbon.tips.net/T007729_...ro_Values.html

  #8   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 25,191
Default Help with excel formula

On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.

Can anyone help to adjust the formula for me.
This is the answer in english but how the heck do I do it.
".....If you use formulas to calculate the percentage column, return a
blank instead of a zero to have it ignored in the average...."



Normally when doing this kind of thing I would compute the cells you are
averaging conditionally:

=IF( expression 0, expression, " ")

That will fill any zero results with a blank cell rather than a zero.


--
Cheers,

John.

/================================================== ===============\
| Internode Ltd - http://www.internode.co.uk |
|-----------------------------------------------------------------|
| John Rumm - john(at)internode(dot)co(dot)uk |
\================================================= ================/
  #9   Report Post  
Posted to uk.d-i-y
ss ss is offline
external usenet poster
 
Posts: 594
Default Help with excel formula

On 06/05/2015 18:13, John Rumm wrote:
=IF( expression 0, expression, " ")


Maybe this will help explain it better.
The formula at the top should pick up under the % heading the number of
cells that have an entry. As you can see only 3 of those cells have an
entry which returns arrowed 58.75 which is the wrong answer.

The calculation should be 100+60+75 = 235 / 3 = correct answer of 78.3


http://i64.photobucket.com/albums/h1...psql11doqn.jpg
  #10   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 1,132
Default Help with excel formula

http://i64.photobucket.com/albums/h1...psql11doqn.jpg

Why does that link start a Google playstore app and take my android tablet to a game download?

Jim K


  #11   Report Post  
Posted to uk.d-i-y
ss ss is offline
external usenet poster
 
Posts: 594
Default Help with excel formula

On 06/05/2015 21:45, JimK wrote:
http://i64.photobucket.com/albums/h1...psql11doqn.jpg

Why does that link start a Google playstore app and take my android tablet to a game download?

Jim K

I have no idea it takes me to the image.
  #12   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 8,019
Default Help with excel formula

On 06/05/2015 18:13, John Rumm wrote:
On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.

Can anyone help to adjust the formula for me.
This is the answer in english but how the heck do I do it.
".....If you use formulas to calculate the percentage column, return a
blank instead of a zero to have it ignored in the average...."



Normally when doing this kind of thing I would compute the cells you are
averaging conditionally:

=IF( expression 0, expression, " ")

That will fill any zero results with a blank cell rather than a zero.


Agreed.

Also, if the formulae get complicated it is often worth adding one or
more intermediate columns with simpler formulae in them. Easier to
understand and debug. You can always hide them when it's working properly.
  #13   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 5,937
Default Help with excel formula

On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.

Can anyone help to adjust the formula for me.
This is the answer in english but how the heck do I do it.
".....If you use formulas to calculate the percentage column, return a
blank instead of a zero to have it ignored in the average...."

So this needs to change:
=IFERROR(G18/F18*(100),"")


The Excel newsgroups were always my first port of call. Not in the least
nerdy

microsoft.public.excel.worksheet.functions

I'm sure you'll get an elegant solution there ....if the group still exists
  #14   Report Post  
Posted to uk.d-i-y
ss ss is offline
external usenet poster
 
Posts: 594
Default Help with excel formula

On 06/05/2015 19:09, stuart noble wrote:
On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.

Can anyone help to adjust the formula for me.
This is the answer in english but how the heck do I do it.
".....If you use formulas to calculate the percentage column, return a
blank instead of a zero to have it ignored in the average...."

So this needs to change:
=IFERROR(G18/F18*(100),"")


The Excel newsgroups were always my first port of call. Not in the least
nerdy

microsoft.public.excel.worksheet.functions

I'm sure you'll get an elegant solution there ....if the group still exists


I used that a lot in the past but pretty dead these days.
  #15   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 1,290
Default Help with excel formula

In article , ss
writes
On 06/05/2015 19:09, stuart noble wrote:
On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.

Can anyone help to adjust the formula for me.
This is the answer in english but how the heck do I do it.
".....If you use formulas to calculate the percentage column, return a
blank instead of a zero to have it ignored in the average...."

So this needs to change:
=IFERROR(G18/F18*(100),"")


The Excel newsgroups were always my first port of call. Not in the least
nerdy

microsoft.public.excel.worksheet.functions

I'm sure you'll get an elegant solution there ....if the group still exists


I used that a lot in the past but pretty dead these days.

But that's the advantage of newsgroups They can appear to be dead but
people can still lurk there with no overhead.
--
bert


  #16   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 29
Default Help with excel formula

On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.



If you change the formula to
=AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18,"0")
it'll disregard the cells containing zero

NB the format is different to AVERAGEIF because the "average range" is
the first parameter, followed by pairs of "condition_range","condition"
parameters.

It looks like you may get 'divide by zero' errors, but you can use an
IFERROR condition to control that
=IFERROR(AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18," 0"),"")
  #17   Report Post  
Posted to uk.d-i-y
ss ss is offline
external usenet poster
 
Posts: 594
Default Help with excel formula

On 06/05/2015 22:01, Jim Newman wrote:
On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.



If you change the formula to
=AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18,"0")
it'll disregard the cells containing zero

NB the format is different to AVERAGEIF because the "average range" is
the first parameter, followed by pairs of "condition_range","condition"
parameters.

It looks like you may get 'divide by zero' errors, but you can use an
IFERROR condition to control that
=IFERROR(AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18," 0"),"")


Thats it! spot on, problem solve.

Thank you all
  #18   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 5,937
Default Help with excel formula

On 06/05/2015 22:20, ss wrote:
On 06/05/2015 22:01, Jim Newman wrote:
On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.



If you change the formula to
=AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18,"0")
it'll disregard the cells containing zero

NB the format is different to AVERAGEIF because the "average range" is
the first parameter, followed by pairs of "condition_range","condition"
parameters.

It looks like you may get 'divide by zero' errors, but you can use an
IFERROR condition to control that
=IFERROR(AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18," 0"),"")


Thats it! spot on, problem solve.

Thank you all


That's what I love about spreadsheet queries. There's always a solution
that works and everybody moves on (unlike this place!)
  #19   Report Post  
Posted to uk.d-i-y
external usenet poster
 
Posts: 29
Default Help with excel formula

On 06/05/2015 22:20, ss wrote:
On 06/05/2015 22:01, Jim Newman wrote:
On 06/05/2015 15:44, ss wrote:
I know wrong newsgroup but trying to get something I can understand So
hoping one of you guys understands excel formulas.
Using this formula:
=AVERAGEIF(C3:AL3,"%",C18:AL18)

What thats doing for me is giving me the number of cells that have a
number in them under the column heading % and that works fine.

Problem is if the cells in C18:AL18 are zero it picks up the zero and
counts that in as well. Even if I change the cells to dont show a zero
show a blank it is effectively still there.



If you change the formula to
=AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18,"0")
it'll disregard the cells containing zero

NB the format is different to AVERAGEIF because the "average range" is
the first parameter, followed by pairs of "condition_range","condition"
parameters.

It looks like you may get 'divide by zero' errors, but you can use an
IFERROR condition to control that
=IFERROR(AVERAGEIFS(C18:AL18,C3:AL3,"%",C18:AL18," 0"),"")


Thats it! spot on, problem solve.

Thank you all


Happy to help
The only suggestion I would make is that you amend it to 'fix' the check
against row 3, by using
=IFERROR(AVERAGEIFS(C18:AL18,$C$3:$AL$3,"%",C18:AL 18,"0"),"")
as then you could set it for the first row, and then drag down to
complete the rest of the column.
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
Microsoft Excel and Excel Services 2010 Tiger UK diy 1 October 11th 11 05:03 PM
OT; Excel help please The Medway Handyman[_2_] UK diy 22 March 11th 10 07:22 PM
OT; MS Excel The Medway Handyman UK diy 11 March 5th 09 12:36 PM
Converting Excel 2007 Nested "If" Statement to Excel 2003: Overcom Jim Thompson Electronic Schematics 0 June 24th 08 05:08 PM
OT MS Excel The Medway Handyman UK diy 9 March 12th 08 07:10 PM


All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"