+ Reply to Thread
Results 1 to 3 of 3

Comparing columns for values higher, lower, or equal...

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Comparing columns for values higher, lower, or equal...

    Hi,

    I have attached an example that will hopefully help me to explain what I am trying to do. The worksheet contains columns for Jan to Dec for a number of accounts in which their monthly sales total is entered. They have conditional formatting in place to make them green or red if they are higher or lower than the previous month.

    I have created a section at the bottom that can count how many in that column are either greater than, less than, or equal to the adcacent cell in the previous column.

    It counts them all accurately if the entire column has been filled in. What I want to do is make it so that it accurately counts the above but will only take into account the number of cells that have been completed in the column. As you can see on my example, I have entered just one line for a couple of months and it still accurately counts the one that is higher or lower, but it treats the rest of the cells in the column as if they are lower or equal, just because they have no figures entered into them yet. If I were to fill in one cell for March, I would want the 3 boxes at the bottom to only count that one cell.

    I have tried various ways of playing around with the fomula to try and make it able to correctly ignore cells that are blank and at the same time be able to deal with having zero entered into some of them. I have not yet been able to make it work properly.

    Does anyone think they can figure out a way of doing this?

    Many thanks in advance
    Attached Files Attached Files
    Last edited by D.Lovell; 03-18-2013 at 04:23 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Comparing columns for values higher, lower, or equal...

    Hi,

    I THINK this is what you mean...?
    Attached Files Attached Files
    If I've been of help, please hit the star

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Re: Comparing columns for values higher, lower, or equal...

    Hi there,

    Yes this is exacly what I meant, thanks very much for your help

+ 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