+ Reply to Thread
Results 1 to 3 of 3

Display Result of a Formula OR Specific Text

  1. #1
    Registered User
    Join Date
    11-10-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    4

    Display Result of a Formula OR Specific Text

    I'm putting together a costing spreadsheet for a client that automatically adds totals to an invoice that will be sent to their clients. I'd like to be able to have a formula that either displays the result of a sum OR displays "No Charge" if the total is zero.

    I have an example spreadsheet showing what I mean, but here's a screenshot showing what I'm talking about as well.

    Screenshot 2021-01-28 135227.png

    I have my "Zones" in column A and the total cost for each zone in column B. My Invoice information displays the Zone Name in Column D and the total cost searching for specific zone names in column E.

    Column E is using this formula:

    Please Login or Register  to view this content.
    I'm doing it like this because my actual invoice has 50 zones, each with 12 "fixes" available. So I'd like to be able to add everything that says "Zone 1 Fix 1" together whether that be 1 instance or 12.

    When the price displays as $0, I'd like it to change the text to say "No Charge", but if the price is more than $0.00, it should display the total for everything specified in the SUMIF. So, we can see that E2 has a total of $65, but if the SUMIF for "Zone 1 Fix 1" came up with $0, it would display "No Charge" instead of $0.00.

    I've been bashing my head against this using all manners of SUMIF and IF/OR and even conditional formatting but nothing seems to work the way I'd like it to.

    One of the requirements is that it says "No Charge" instead of $0.00 and that the spreadsheet be reusable, so they can continue to edit the prices in column B so column E either displays the price or the specified text.
    Attached Files Attached Files
    Last edited by Ren_S; 01-28-2021 at 08:38 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Display Result of a Formula OR Specific Text

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    11-10-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    2010
    Posts
    4

    Re: Display Result of a Formula OR Specific Text

    That works! Ah, so simple and perfect, thank you!

+ 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. [SOLVED] Display text from specific cell based on result from a COUNTIFS
    By RookieExcele in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2019, 09:58 AM
  2. Replies: 5
    Last Post: 10-26-2018, 11:36 PM
  3. Find Specific Text as result of formula
    By greenjl7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2016, 10:21 AM
  4. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  5. Display formula result if cell is X cells away from text value
    By jimmygig in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2013, 08:30 PM
  6. Formula to display value after specific text in filename
    By Rerock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-15-2013, 03:49 PM
  7. Replies: 1
    Last Post: 10-23-2012, 05:12 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