+ Reply to Thread
Results 1 to 5 of 5

If total cell equals 0 add the text "N/A"

  1. #1
    Registered User
    Join Date
    07-21-2015
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    19

    If total cell equals 0 add the text "N/A"

    Hi Guys,

    Hope you are doing well. I have basic knowledge in Excel because this request sounds easy. I am playing around with diff formulas but can't figure out this.

    I would to calculate the total between a range of values (A2:A50) and want to add in the formula to display the text "N/A" in the cell (A51) if I don't have any values.

    Would you please give me a hand with it?

    Thanks for your help!

    Laurent

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: If total cell equals 0 add the text "N/A"

    Try this

    =IF(SUM(A2:A50)=0,"N/A",SUM(A2:A50))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: If total cell equals 0 add the text "N/A"

    try this formula in A51:

    =IF(COUNTA(A2:A50)=0,"N/A",SUM(A2:A50))
    If I've helped U pls click on d *Add Reputation

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If total cell equals 0 add the text "N/A"

    Another way:

    =IFERROR(1/(1/SUM(A2:A50)), "N/A")
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    07-21-2015
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    19

    Re: If total cell equals 0 add the text "N/A"

    Thanks again to all of you for your help! It's awesome when it works!! And I definitely understand more! Thanks again!

+ 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: 8
    Last Post: 01-31-2014, 03:20 PM
  2. Insert Row on Different Tab if value in cell equals "Text"
    By estubur in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 01-23-2014, 02:00 PM
  3. [SOLVED] Insert Row if cell value equals "Text"
    By drakaz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-07-2013, 12:00 PM
  4. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  5. [SOLVED] Delete row if cell in Column N equal "Different" or Column P equals "Blank"
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 08:25 AM
  6. Replies: 11
    Last Post: 02-08-2012, 12:36 PM
  7. [SOLVED] Macro to delete entire row if cell contains the word "total" or "Total"
    By theatricalveggie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2011, 12:38 PM
  8. Total IF Value equals "Yes" ?
    By Br0000n in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-30-2008, 07:20 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