+ Reply to Thread
Results 1 to 6 of 6

sum of cells but if zero then 3

Hybrid View

  1. #1
    Registered User
    Join Date
    03-29-2015
    Location
    Wallsend
    MS-Off Ver
    Excel 2010
    Posts
    36

    sum of cells but if zero then 3

    Hi Guys

    Been on all night with this one. I want to add 8 cells together but if the value of them are zero i want to make them a 3 in the formula.

    Any ideas
    fes

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,654

    Re: sum of cells but if zero then 3

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE and AFTER results in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Write several different examples if needed, correct and false, to better understand problem.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: sum of cells but if zero then 3

    Hi,

    assuming the cells are in range A1:A8, you can use this:

    =SUM(A1:A8)+COUNTIF(A1:A8,0)*3

  4. #4
    Registered User
    Join Date
    03-29-2015
    Location
    Wallsend
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: sum of cells but if zero then 3

    Hi there

    Thanks for that Pepe it wasn't quite A1:A8 so used the following:
    =SUM(D24+D47+D63+D29+D7+D36+D50+D11)+35+COUNTIF(D7,0)*3+COUNTIF(D36,0)*3+COUNTIF(D50,0)*3+COUNTIF(D11,0)*3
    with help from yourself this has helped me out massively.

    Only thing is the cell is showing up with #value as nothing has been input into the cells yet. the +35 is the starting value i want in the formula is there anyway to show this and have a running update i.e. if D7 is completed the cell will show 35+value of D7 and not #Value as the other cells are not complete?

    Thanks in advice
    fes

  5. #5
    Registered User
    Join Date
    03-29-2015
    Location
    Wallsend
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: sum of cells but if zero then 3

    Alright Guys

    Am getting on well with this now and getting better at excel as I say I only started using it a few days ago. few things am still to do (ive attached Excel spreadsheet for advice). sort the tables into points ascending i.e. most points at the top and lowest at the bottom when you complete the yellow cells. Also is there away to show the current points in the table instead of #value! if put their current points at the side and they are in the cell formula. any advice is much appreciated.

    fes

  6. #6
    Registered User
    Join Date
    03-29-2015
    Location
    Wallsend
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: sum of cells but if zero then 3

    this is the sheet

    thanks in advance
    Attached Files Attached Files

+ 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. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  2. [SOLVED] Linking cells globally to allow users the ability to change cells on separate sheet/cells.
    By V1gilante in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 10:47 PM
  3. combining many cells in one cells keeping character font and hyperlinks of all cells
    By mankind00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 09:41 AM
  4. Replies: 4
    Last Post: 06-17-2011, 08:53 AM
  5. Formula: Drop Down List -> Choose Option Finds Cells & Replace Cells with Cells
    By g00glethis1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 01:10 PM

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