+ Reply to Thread
Results 1 to 5 of 5

Add 4 cells together, ignore the ones with text in

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134

    Add 4 cells together, ignore the ones with text in

    Hi Guys,

    I have 4 cells that I want to add together. There will always be one with numbers in, and others with text. I want to therefore say A1+B1+C1+D1 and come out with a numerical value. How do ignore the text cells and just add the numbers?

    Thanks!

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    =sum(a1,b1,c1,d1)
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134
    Quote Originally Posted by mudraker
    =sum(a1,b1,c1,d1)
    Thanks.

    Now I need help incorporating this into a bigger formula.

    I have

    =IF(EH8="Not Started","N/A",HELP HERE)
    I want it to say something like:

    =IF(EH8="Not Started","N/A",=sum(ea1,eb1,ec1,ed1))
    but that doesn't seem to work?!

    Please help

    Thanks!

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Drop the = sign in front of the Sum command

    =IF(EH8="Not Started","N/A",sum(ea1,eb1,ec1,ed1))

  5. #5
    Forum Contributor
    Join Date
    11-02-2007
    Location
    Leeds, England
    MS-Off Ver
    MS Office 2007
    Posts
    134
    Quote Originally Posted by mudraker
    Drop the = sign in front of the Sum command

    =IF(EH8="Not Started","N/A",sum(ea1,eb1,ec1,ed1))

    Thanks alot

+ 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