+ Reply to Thread
Results 1 to 5 of 5

Help with count if function

  1. #1
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Help with count if function

    Hi,

    I have a table where one column (D) has a spend column.

    I now need to count how many cells in column D fall into certain spend groups.

    so the ranges are £1-£100,£101-£200 and so on until £1200.

    For the first calculation I wrote the following forumla =COUNTIF($D$6:$D$457,">=1")-COUNTIF($D$6:$D$457,"<=100")

    I then copied this down and changed the values according to the ranges.

    But when I get to range 201-300 I start to get negative numbers returned, which doesn't make any sense to me, so I must be doing something incorrect along the way.

    any help would be appreciated.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Help with count if function

    Basically need to fill in the no of shops col in col g
    Attached Files Attached Files

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Help with count if function

    Your data looks very close to Pivot table.

    So use Pivot table rather then your range...
    Then group ranges by 100
    Attached Files Attached Files
    Never use Merged Cells in Excel

  4. #4
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Help with count if function

    Thanks that is fantastic.

    How did you group the ranges out of interest?

  5. #5
    Forum Contributor
    Join Date
    05-24-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    345

    Re: Help with count if function

    Ah, I have just seen the "group" option.

    Thanks again for all 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