+ Reply to Thread
Results 1 to 9 of 9

Sumif exact number only

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

    Sumif exact number only

    Hello all,

    How do I write a formula to say SUMIF the following cells contain 5:

    O45, Q45, S45, U45? They will either all contain either 0 or 5

    I just want a formnula to sum all 4 cells to add wherever there is a 5, so the total might be 0, 5, 10, 15, or 20.

    Thank you
    Thanks,

    R.



  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumif exact number only

    =SUM(O45,Q45,S45,U45)

    or have I completely misunderstood??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Sumif exact number only

    Sorry Glenn, my apologies I forgot to say each of the cells contain a formula: =IF(T45=$U$44,"5","0")

    so using the sum formula is returning a 0.. hence why i thought i need a sumif? i'm doing this in a google sheet

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumif exact number only

    =IF(T45=$U$44,5,0)

    The " " are turning the numbers into text.

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

    Re: Sumif exact number only

    oK is there an recommendation on how to overcome this please? i've tried to change the formatting of the cells

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumif exact number only

    Does this:

    =IF(T45=$U$44,5,0)


    and this

    =SUM(O45,Q45,S45,U45)

    together, not work?

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumif exact number only

    It works fine for me on GS. I have no idea how to save it and share it though...

    Does this link work?

    https://docs.google.com/spreadsheets...it?usp=sharing

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

    Re: Sumif exact number only

    that helps thank you!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Sumif exact number only

    Is that you sorted? If so, I'm off for a beer before dinner!

+ 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. SUMIF Formula with exact match text
    By Perlapimpim in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2019, 08:34 AM
  2. [SOLVED] Exact Number of Decimals
    By FallingDown in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2017, 07:33 AM
  3. Replies: 6
    Last Post: 09-08-2015, 12:30 PM
  4. [SOLVED] Exact text match within a SUMIF function
    By afgoody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 11:35 PM
  5. Formula to work out an exact average over an exact number
    By Sandyshirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-11-2013, 01:35 AM
  6. Sum of exact number of cells problem
    By bangalore in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2007, 07:54 AM
  7. look for the exact number
    By sctroy in forum Excel General
    Replies: 1
    Last Post: 09-25-2005, 05: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