+ Reply to Thread
Results 1 to 5 of 5

Treat numbers above a certain value as that value when summing

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    dk
    MS-Off Ver
    Excel 2010
    Posts
    5

    Treat numbers above a certain value as that value when summing

    Hello Forum, I discoverede this place today while trying to fix an excel database I inherited from the previous person in my position, who inherited it from the previous person, etc.
    I've decided to start from scratch, since the old one was an unholy mix of datatypes organized both vertically and horizontally. It might've once worked in access, eight incarnations ago, but I have no experience in that program.

    I'm in the process of setting up an overview of grant applications submitted for peer review. In this new version, each line represents one application, and the interesting columns are the ones detailing whether peer reviewers have been found, and how many. I have a simple SUM function in one column, showing the number of found reviewers per application, but since only two are needed, and there is a risk that more than two agree to do the job (we basically spam potential reviewers across the world), this number is occassionally 3 or - rarely - higher.

    I want to be able to sum this particular column so that I have an updated tally of how many reviewers have been found, and - crucially - how many we still need to find. Any number greater than two in this column will give a misleading value of how much work is left to do.

    SO

    How can I make excel treat 0 as 0, 1 as 1, 2 as 2, and >2 as 2 when making the grand sum?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Treat numbers above a certain value as that value when summing

    Hi sir stoffer,

    welcome to the forum.
    How can I make excel treat 0 as 0, 1 as 1, 2 as 2, and >2 as 2 when making the grand sum?
    Can you share a sample workbook or if this is just a column of data, I can create that if you confirm. Thanks


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Treat numbers above a certain value as that value when summing

    Try something like this:

    =MIN(2,COUNTA(A1:J1))

    where you might have reviewers' names in any of the cells A1 to J1.

    Hope this helps.

    Pete

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Treat numbers above a certain value as that value when summing

    Try

    =SUMIF(A1:A10,"<2")+COUNTIF(A1:A10,">=2")*2

  5. #5
    Registered User
    Join Date
    04-08-2013
    Location
    dk
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Treat numbers above a certain value as that value when summing

    Thanks Jonmo1, worked a charm :D

+ 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