+ Reply to Thread
Results 1 to 14 of 14

=AVERAGE display amount of values used

  1. #1
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Question =AVERAGE display amount of values used

    Hello everyone!


    I am working on speeding up my Excel workflow and stumbled across a big wall.


    I do scientific work and calculate the mean with =AVERAGE() for some values.

    A B
    cell line 1 cell line 2
    1 20 10
    2 30 20
    3 cntrl 20 cntrl 15
    4 60 empty
    5 40 empty

    I want to calculate the mean for each cell line, but I have following problems:

    - Cannot set a range, because some values do not belong to this cells (marked with cntrl X)
    - For cell line 2 the cells B4 and B5 are not filled (no data available)


    Formula for AVERAGE I used:

    =AVERAGE(A1, A2, A4, A5)
    =AVERAGE(B1, B2, B4, B5)

    It works fine, but for my experiments I need at least 3 values for proper data, therefore cell line 2 needs at least 1 data field more.
    BUT in a sheet auf 400 rows and 300 columns it is hard to spot, where data is missing.

    So my question to you is:

    Is there a formula/ code which displays how many values excel used to calculate the mean?

    To stick with this example the result for:
    cell line 1 = 4
    cell line 2 = 2 (because 2 empty field are ignored)

    OR is
    =COUNT(A1, A2, A4, A5) the only way to go?

    Thanks in advance!

    Best
    Phteve
    Last edited by phteve; 11-18-2020 at 05:20 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: =AVERAGE display amount of values used

    One way:

    =COUNTIFS(B2:B6,"<>",B2:B6,"<>cntrl*")

    You may need ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    Thanks!

    <> means, that values = 0 are not counted?


    =COUNT(B1, B2, B4, B5) should also work, or?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: =AVERAGE display amount of values used

    It means anything other than bblank. Your suggestion would be a pain to maintain (totally manual). Did you try it yourself? Did it work for you? I think we need to see a bigger dataset. What is below row 5? This can probaly be hugely automated.

  5. #5
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    Thanks!


    Unfortunately I cannot share the data (is confidential), but I can explain it:

    49 columns
    222 rows

    compound concentration product 1 product 2
    1 1 345 123
    1 10 324 213
    control 32 43
    2 1 433 156
    2 10 366 210
    2 1 345 123
    2 10 524 313
    control 44 53
    1 1 403 111
    1 10 336 211

    and I have to calculate the mean for each compound + concetration + product (cpd 1 at concentration 1 for product 1, cpd 1 at concetration 10 for product...)

    Unfortunately there is no scheme which values should be used (other data)

    So I did each formula manually...

    =AVERAGE(C$2, C$10) than dragged this formula to the end for this row

    Next row same, I manually selected the cells.


    Than I copied all formulas below (otherwise my column number would be altered) and manually changed "AVERAGE" to "COUNT".

    Took me a while, and I actually don't want to do this again
    Last edited by phteve; 11-18-2020 at 12:35 PM.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: =AVERAGE display amount of values used

    1. I did not ask to see your real sheet. A mocked up sample is fine.

    2. In your initial post you were talking about a minimum of n=3 per product. Now it look slike n=1. Explain.

    Please mock up a more comprehensive sample that matches what you REALLY want and what you REALLY have. Post as an Excel sheet. See yellow banner for instructions on posting a SHEET. Also show manually calculated results.

  7. #7
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    Quote Originally Posted by Glenn Kennedy View Post
    1. I did not ask to see your real sheet. A mocked up sample is fine.

    2. In your initial post you were talking about a minimum of n=3 per product. Now it look slike n=1. Explain.

    Please mock up a more comprehensive sample that matches what you REALLY want and what you REALLY have. Post as an Excel sheet. See yellow banner for instructions on posting a SHEET. Also show manually calculated results.
    Ahh oke,
    for sure, I can prepare a sample file

  8. #8
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    I just did it for 5 products (instead of 49)
    and only for a set of compounds

    I always have to compare the same compound at the same concetration in M1 or M2 (but not mixed)


    Thanks!
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: =AVERAGE display amount of values used

    Better!!

    N3, copied across and down:
    =AVERAGEIFS(E:E,$C:$C,$M$3,$A:$A,$K3,$B:$B,$L3)

    N12, copied across and dnown:
    =COUNTIFS($A:$A,$K12,$B:$B,$L12,$C:$C,$M$12,E:E,"<>")

    That'll speed you up. i never liked DMSO. I really dislike its smell.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    Thanks you so much!


    Unfortunately it dissolve almost everything we need to

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: =AVERAGE display amount of values used

    N-methyl pyrrolidinone ? Dimethylacetamide?? I used to have to use pyridine a lot, for semi-organic solutions of proteins. It made me hugely unpopular with everyone else.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  12. #12
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    I got my compounds dissolved in DSMO and cannot change the solvent for my negative controls.
    But for sure, I will change the solvent for my next samples...

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: =AVERAGE display amount of values used

    DMSO is particularly unpleasant. Ever got any on your skin? You can taste it a few seconds later...

    Glenn



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  14. #14
    Registered User
    Join Date
    11-18-2020
    Location
    Austria
    MS-Off Ver
    MS 365
    Posts
    16

    Re: =AVERAGE display amount of values used

    not yet, I give my best to avoid that

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Average amount of latest 4 values based on criteria
    By goodguyrulz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-12-2018, 09:08 AM
  2. [SOLVED] Finding average amount of days
    By DAVE201992 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2018, 04:05 AM
  3. Replies: 4
    Last Post: 06-22-2016, 11:03 PM
  4. Average if X amount of rows
    By skate1991 in forum Excel General
    Replies: 4
    Last Post: 04-01-2015, 07:21 AM
  5. Connect names in Column A and values in B, display average
    By fetow in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 10:52 AM
  6. average of an amount in pivot tables
    By mordak in forum Excel General
    Replies: 1
    Last Post: 12-14-2008, 01:49 PM
  7. how to average a varying amount ou numbers
    By cuewoz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2006, 09:55 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1