+ Reply to Thread
Results 1 to 5 of 5

Calculate the sum based on the status of a certain cell

  1. #1
    Registered User
    Join Date
    04-10-2024
    Location
    Richmond,Virginia
    MS-Off Ver
    Microsoft 365 Enterprise
    Posts
    3

    Question Calculate the sum based on the status of a certain cell

    Sell N2 dictates whether minimum hours are due to vendor.

    If minimum hours are due, N2=Yes, I would like to calculate D8*J8+I8. But only if the value in cell J8 is greater than the value in cell H8. The sum will be shown in cell P8.

    If minimum hours are not due, N2=No, I would like to calculate D8*H8+8. Again, the sum would be displayed in cell P8.

    Hope this makes sense.
    Attached Files Attached Files

  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: Calculate the sum based on the status of a certain cell

    If N2 = "Yes" but J8 is not greater than H8, what result do you want?

    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
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    498

    Re: Calculate the sum based on the status of a certain cell

    What are the desired results in P8 to P10?

    Please Login or Register  to view this content.
    Like this?
    But gives same results as the formula you already have, i.e. the additional condition is not changing the result in these cases.

  4. #4
    Registered User
    Join Date
    04-10-2024
    Location
    Richmond,Virginia
    MS-Off Ver
    Microsoft 365 Enterprise
    Posts
    3

    Re: Calculate the sum based on the status of a certain cell

    If N2 = "Yes" but J8 is not greater than H8 then I would want the row to calculate D8*H8+I8 instead.

  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: Calculate the sum based on the status of a certain cell

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

+ 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. To get latest status based on status date per ID
    By martin_sushi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2021, 10:24 AM
  2. Calculate the status of a range based on criteria
    By jtrocki001 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2015, 08:16 PM
  3. [SOLVED] Calculate Fed Tax based on Status Based on attached Table
    By rizmomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2014, 08:10 PM
  4. Diplaying Status value based on cell value
    By Zaid in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2013, 06:43 AM
  5. [SOLVED] Moving A Cell From one sheet to another based on 'Status' i.e. Column Cell
    By warri0r in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2013, 12:58 PM
  6. Need a vba code to check the status and based on rules calculate service years
    By baba_excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-19-2012, 09:03 PM
  7. Replies: 6
    Last Post: 03-04-2010, 03:04 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