Author Topic: Excel question...  (Read 256 times)

Offline rabbidrabbit

  • Gold Member
  • *****
  • Posts: 3910
Excel question...
« on: October 22, 2009, 12:37:42 PM »
OK,  It's been a while so could anyone help me dial in an excel issue?

I have a number of cells (F4-53 - J4-53) which have weights of fish entered for an event we held.  I already have the total weight but would like the total number of fish turned in to generate an average weight.  Cells where no fish were donated are either empty or have 0.00 in them.  I can delete the 0.00 entries or make the blanks 0.00 if that helps.

How do I go about this?

Offline oakranger

  • Plutonium Member
  • *******
  • Posts: 8380
      • http://www.slybirds.com/
Re: Excel question...
« Reply #1 on: October 22, 2009, 12:46:10 PM »
what excell are you using?
Oaktree

56th Fighter group

Offline Nwbie

  • Gold Member
  • *****
  • Posts: 2022
Skuzzy-- "Facts are slowly becoming irrelevant in favor of the nutjob."

Offline oakranger

  • Plutonium Member
  • *******
  • Posts: 8380
      • http://www.slybirds.com/
Oaktree

56th Fighter group

Offline rabbidrabbit

  • Gold Member
  • *****
  • Posts: 3910
Re: Excel question...
« Reply #4 on: October 22, 2009, 01:58:19 PM »
Unless I misread your link, I think I want:  =AVERAGE(IF(F4:F50<>0, F4:F50,""))

As it takes the average while disregarding zeros.  However, I'm still trying to figure out the syntax for adding the f-j columns.

I'm also still searching for a Total Number of Fish Turned in calculation from the same columns as well.

I'll keep looking.  It's been 15 years since I spent quality time with Excel some I'm pretty rusty.  Anyone have some pointers?

Offline forHIM

  • Gold Member
  • *****
  • Posts: 2534
Re: Excel question...
« Reply #5 on: October 22, 2009, 02:19:21 PM »


So column F, H, I, J are all fish weights?  With cells that don't have a fish weight either blank or 0.0?  So you need to cound how many cells in F,H,I,J have valid data and then sum the total weight and divide by the number of cells with content, is that correct?

Offline forHIM

  • Gold Member
  • *****
  • Posts: 2534
Re: Excel question...
« Reply #6 on: October 22, 2009, 02:28:40 PM »

If my above statement was correct then

Then average weight would be =sum(F4:J50)/countif(F4:J50,">0")

Offline rabbidrabbit

  • Gold Member
  • *****
  • Posts: 3910
Re: Excel question...
« Reply #7 on: October 22, 2009, 02:36:57 PM »

So column F, H, I, J are all fish weights?  With cells that don't have a fish weight either blank or 0.0?  So you need to cound how many cells in F,H,I,J have valid data and then sum the total weight and divide by the number of cells with content, is that correct?


Correct,  Columns F,G,H,I,J all have weights entered with the exception of teams that weighed in less than 5 fish.  Those places are currently either blank or have an entry of 0.00.  Ideally, the calculation would ignore the blanks and 0.00 and output the average weight of all the fish weighed.

A second calculation is needed to count each cell with a number in it an output the total number of fish caught, not the total weight which I already have.

The summation should be:  Total Weight of Fish Weighed =  already have
                                     Total Number of Fish Weighed =
                                     Average Weight of Fish Weighed=
                                     
There were and additional 78 tuna donated but were unweighed.  By getting an average of the fish weighed we can extend that out to the additional fish donated to calculate roughly the total weight of all fish turned in, weighed or not, so we have a estimate of the total weight of fish donated to the food bank.

Offline forHIM

  • Gold Member
  • *****
  • Posts: 2534
Re: Excel question...
« Reply #8 on: October 22, 2009, 02:40:11 PM »

countif(RANGE,criteria) should give you Total # fish.  ie =countif(f4:j50,">0") should result in # of fish.
Then Total Lbs / Total # should = average.

Offline rabbidrabbit

  • Gold Member
  • *****
  • Posts: 3910
Re: Excel question...
« Reply #9 on: October 22, 2009, 04:18:26 PM »
That's pretty much it.  Thanks!