+ Reply to Thread
Results 1 to 2 of 2

Help with sumation formulas

  1. #1
    Registered User
    Join Date
    09-30-2008
    Location
    Mass
    Posts
    1

    Help with sumation formulas

    I am trying to write a formula to sum a column of data then divide by the count to create an average value.

    Where I am getting held up is that some of the data is numbers, some is text and numbers (ie BRL<5). What I need to do is to sum the numbers by themselves, and the ones with text seperate, because the ones with text get halved. For example BRL<5 would be treated as 2.5 for average calculation purposes. It still needs to read BRL<5 for the printed table though.

    Thanks for the help!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    This user defined function will help

    Please Login or Register  to view this content.
    Paste this into a new module in the VBA editor (Alt F11).

    You will then have a new function called AverageSpecial in the user defined section of the function wizard.
    Martin

+ 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. Displaying formulas instead of values
    By DuneBuggy in forum Excel General
    Replies: 2
    Last Post: 07-29-2008, 09:27 AM
  2. Cut-and-paste breaks dependant formulas
    By DanielHutchison in forum Excel General
    Replies: 1
    Last Post: 07-11-2008, 04:50 PM
  3. Copying EXACT formulas from another page
    By goofy78270 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2007, 11:43 AM
  4. Formulas in a cell don't work as formulas.
    By Lyle McElhaney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2007, 05:04 AM
  5. copying formulas through vb
    By kostas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2007, 10:44 AM

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