+ Reply to Thread
Results 1 to 4 of 4

IF function: add a number if criteria is as required

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    IF function: add a number if criteria is as required

    Hi guys,

    If I have cells A2, B2 and C2 populated with the number 5, how can I write an IF statement to say, if the A2, B2, C2 have 5 in each of them, add another 5. This is just a scoring system and if A2, B2 and C2 have 5, a bonus of 5 points is added.

    Any help is much appreciated.

    thanks!
    Thanks,

    R.



  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: IF function: add a number if criteria is as required

    In whatever cell you require:

    =SUM(A2:C2)+IF(AND(A2=5,B2=5,C2=5),5,0)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: IF function: add a number if criteria is as required

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: IF function: add a number if criteria is as required

    Hi,

    Another way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula required to find the nth nearest number to a selected number
    By josephteh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-05-2019, 05:49 PM
  2. [SOLVED] Formula required to Calculate Week number based on Criteria
    By Yadavgiri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2016, 08:48 AM
  3. [SOLVED] Calculate number of months required to reach target number
    By madboy9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2016, 06:06 PM
  4. Replies: 13
    Last Post: 09-08-2015, 07:01 PM
  5. Function that filters on criteria in row to return percentile number.
    By brandnew22 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2013, 02:24 AM
  6. [SOLVED] Help with IF function where a number of possible criteria are looked up in a cell
    By Charlie12345 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2013, 07:47 AM
  7. Function to Count Number of Consecutive Rows with a Specific Criteria?
    By Templee1 in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 09-06-2005, 03:05 PM

Tags for this Thread

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