+ Reply to Thread
Results 1 to 5 of 5

Determine if expression is equal, greater, or less than a cell value

  1. #1
    Registered User
    Join Date
    05-10-2018
    Location
    Detroit,MI
    MS-Off Ver
    10
    Posts
    2

    Determine if expression is equal, greater, or less than a cell value

    I can seem to find the formula for a plus/minus or over/under whatever you might call it.

    So I'm looking for something like this.

    A1+A2-A3=A4 or should =A4

    I need to figure out if those numbers equal A4 < A4 or > A4.


    Please and thank you for the help.
    Last edited by 6StringJazzer; 05-10-2018 at 10:17 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Little help please

    Welcome to the forum!

    As a new member please take the time to review our rules. There aren't many, and they are all important.

    Rule #1 requires good titles, and I'm sorry, but yours is not good. I am going to change it for you since it's your first post, but please get familiar with the rules for the future.

    I think you want something like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Determine if expression is equal, greater, or less than a cell value

    Hi, welcome to the forum

    Not really sure what you expect the answer to look like, but this may get us started...

    =if(a1+a2+a3=a4,"equal",if(a1+a2+a3<a4,"less than","greater than"))

    edit: hey Jeff, there is almost an echo in here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-10-2018
    Location
    Detroit,MI
    MS-Off Ver
    10
    Posts
    2

    Re: Determine if expression is equal, greater, or less than a cell value

    Hi Jeff thanks for the help.

    I am looking for the number value of those numbers not the true and false the =if has been giving me. any.

    It's more of like a inventory worksheet to find out if I am breaking even falling short or coming over my ended number.

    maybe this might help

    Start number+ordered number-what was sold=what number, then that number should should equal what I have in stock if not how many am I missing or how many do I have over
    Last edited by Pgraves7; 05-10-2018 at 11:26 PM.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Determine if expression is equal, greater, or less than a cell value

    Quote Originally Posted by Pgraves7 View Post
    I am looking for the number value of those numbers not the true and false the =if has been giving me. any.

    It's more of like a inventory worksheet to find out if I am breaking even falling short or coming over my ended number.

    maybe this might help

    Start number+ordered number-what was sold=what number, then that number should should equal what I have in stock if not how many am I missing or how many do I have over
    If you want a better answer then it would if you actually showed what you want the result to look like. Attaching your file would be even better.

    Given this latest description I would say you want simple arithmetic:



    =A1+A2-A3-A4

    If it's positive, it is how many over what you have in stock; if negative, it is how many under what you have in stock; if 0, it's a match.

+ 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