+ Reply to Thread
Results 1 to 6 of 6

calculating data in a column, while ignoring cells with text in them.

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    long beach, california
    MS-Off Ver
    Excel 2003
    Posts
    41

    Question calculating data in a column, while ignoring cells with text in them.

    I have a column where some cells have numbers and some have text.

    ie.

    column 1
    10
    5
    200
    VACATION
    25

    I want the equation to find the average of the numbers by totaling and dividing by the total amount of numbers... So in the above example, since the word "vacation" is in one of the cells, it should not count that.. so the equation would add up 10, 5, 200, 25 & divide by 4.

    but if vacation was actually a #... it would add up and divide by 5 automatically.
    It's a simplified version of what i'm doing, but if I can figure this out to make it do it automatically, I will be able to apply to what I"m doing.

    hope this makes sense.
    thanks
    J.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: calculating data in a column, while ignoring cells with text in them.

    Did you look up AVERAGE/AVERAGEIF in Help?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    long beach, california
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: calculating data in a column, while ignoring cells with text in them.

    well i guess i should have been more specific... i don't really want to find the average, but thought that finding out how to do a calculate without adding in cells with "words" would help me... so here's what i'm trying to do.


    im trying to find the productivity of each staff member.. each day has 480 minutes so if they have minutes for mon - fri as the following:

    mon: 25
    tue: 25
    wed: vacation
    thurs: 10
    fri: 25

    I want to be able to add the numbers (in this case: 85), than divide by 480*4 (since 4 is the number of days they worked. as they had one vacation day)
    but if the employee did not go on vacation.. it should divide by 480*5.

    so basically.. I want to be able to add all the numbers in any given week.. then divide by 480* the numbers of days they worked (or the # of days that don't say "vacation" or "sick".)

    I hope this gives more info.

    thanks in advance

    J>

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: calculating data in a column, while ignoring cells with text in them.

    For the example given, I would use two separate columns: day, minutes. Then you could use something like
    Please Login or Register  to view this content.
    where the day name is in column A and the minutes in column B; since SUM and COUNT will ignore text as does AVERAGE.
    Last edited by protonLeah; 07-10-2010 at 03:50 PM.

  5. #5
    Registered User
    Join Date
    07-07-2010
    Location
    long beach, california
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: calculating data in a column, while ignoring cells with text in them.

    Thank you so much... Your response gave me the idea I needed... I appreciate it.

    J.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: calculating data in a column, while ignoring cells with text in them.

    FWIW, given the constant you could I think also use:

    =AVERAGE(A1:A5)/480

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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