+ Reply to Thread
Results 1 to 3 of 3

conditional calculation with count feature

  1. #1
    Registered User
    Join Date
    04-06-2007
    Posts
    5

    conditional calculation with count feature

    I entered a formula that counts the cells containing data and subtacts one from the total.

    =COUNT(G7:G48)-1

    Is it possible to prevent this calculation from returning a negative value? (only subtract 1 when count is > or = to 1)

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =MAX(0,COUNT(G7:G48)-1)

  3. #3
    Registered User
    Join Date
    04-06-2007
    Posts
    5
    Thanx daddylonlegs... worked great

+ 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