+ Reply to Thread
Results 1 to 2 of 2

If then results not adding up in auto sum

  1. #1
    Registered User
    Join Date
    09-29-2020
    Location
    UK
    MS-Off Ver
    2002
    Posts
    1

    Exclamation If then results not adding up in auto sum

    I am doing a business spreadsheet which I am trying to make as simple as possible for my husband to use. When inputting the hours we are billing for I want each hour to be x £8 but just showing 8. Except for when 5 is entered where there is a discount and the amount is 35.

    I have done this with this formula:

    =IF(d4=1,"8",IF(d4=2,"16",IF(d4=3,"24",IF(d4=4,"32", IF(d4=5,"35", IF(d4=0,""))))))

    It works perfectly but now the autosum for that column will not work. I have checked all the relevant cells are number cells and have changed the final "0" value to show 0. What am I doing wrong?

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

    Re: If then results not adding up in auto sum

    You do not need to put quotes around the numbers - if you do, this will result in text values rather than numbers.

    Hope this helps.

    Pete

+ 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: 4
    Last Post: 05-28-2019, 05:53 AM
  2. adding up results of =if
    By chrishuning in forum Excel General
    Replies: 3
    Last Post: 07-23-2016, 06:49 AM
  3. [SOLVED] VLOOKUP & Adding results
    By gassiusmax in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-28-2014, 06:09 PM
  4. adding results of two SUMIF's. Is there a better way?
    By finny388 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2011, 12:53 PM
  5. Need help in adding IF function results
    By Khaldon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2011, 03:53 AM
  6. Adding multiple results
    By jgomez in forum Excel General
    Replies: 1
    Last Post: 01-06-2011, 12:02 PM
  7. Adding only the filtered results
    By spartikus411 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2006, 06:20 AM

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