+ Reply to Thread
Results 1 to 8 of 8

How to write a formula to return a specific value

Hybrid View

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Parker. Colorado
    MS-Off Ver
    Excel 2003
    Posts
    16

    How to write a formula to return a specific value

    I am trying to write a formula that will return a value if a certain number is in that cell.

    Example. If cell A2 adds to "0" then show value as "Even". If A2 adds to anything else then show the value as whatever it is.

    Thanks
    Last edited by Bryan Banker; 07-19-2012 at 04:44 PM. Reason: Poor Title

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

    Re: Formula Help

    Please check out the Forum Rules at the top of the screen, and change your title, before the mods force you to.

    Pete

  3. #3
    Registered User
    Join Date
    06-14-2012
    Location
    Parker. Colorado
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formula Help

    Done Pete, I am new here. Thanks!

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

    Re: Formula Help

    Okay, you seem to be suggesting that you want A2 to display the word "Even" when the result of a formula in that cell is zero (you say "adds to zero"), so what is in A2? You could have something like:

    =IF(your_formula=0,"Even",your_formula)

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    06-14-2012
    Location
    Parker. Colorado
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formula Help

    Perfect. Thanks for the help!

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

    Re: Formula Help

    You're welcome, Bryan - thanks for feeding back.

    Pete

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to write a formula to return a specific value

    Clarification please. You want to enter a string of numbers into cell A2 and then have Excel give you a SUM or "Even" in Cell A2? or am I reading this wrong?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    06-14-2012
    Location
    Parker. Colorado
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: How to write a formula to return a specific value

    Sort of. In cell A2 it displays a number that was added from a string of numbers. If that number adds up to "0" then I want to display the word "Even". If the numbers is cell A2 add up to 10 then I just wan the formula to display that number.

+ 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