+ Reply to Thread
Results 1 to 4 of 4

Subtract a value that meets a condition from another value

  1. #1
    Registered User
    Join Date
    07-05-2018
    Location
    Houston, Texas
    MS-Off Ver
    2013 & 365 subscription
    Posts
    2

    Subtract a value that meets a condition from another value

    I need to subtract the Tax Amt "COS" from Owner Gross Value each time it occurs for each well. Not every well has this tax. This tax is not always adjacent to Owner Gross Value. There are not the same number of tax types for each well. There is no subtotal for the tax amounts.

    Any help is much appreciated.

    2018-07-05 11_45_05-Example - Excel.png
    Attached Files Attached Files
    Last edited by hdcfamily; 07-05-2018 at 02:17 PM. Reason: Attached workbook

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Subtract a value that meets a condition from another value

    Hi and welcome to the forum.

    Presumably In E2 copied down a simple

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


    ...late edit. Just seen the statement that COS isn;t always adjacent to the Gros value amount. Would you clarify. Does this mean for instance that E22 should be 0.41.i.e. D22-F23

    Please upload the workbook so that we can test for all conditions.
    Last edited by Richard Buttrey; 07-05-2018 at 01:14 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-05-2018
    Location
    Houston, Texas
    MS-Off Ver
    2013 & 365 subscription
    Posts
    2

    Re: Subtract a value that meets a condition from another value

    You are correct on E22. I tried uploading the workbook on the original post and it wouldn't allow me. I'll try again.
    Last edited by AliGW; 07-05-2018 at 02:14 PM. Reason: Unnecessary quotation removed.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Subtract a value that meets a condition from another value

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. TimeStamp and Sound when condition meets
    By SlamberGamer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2016, 12:43 AM
  2. Subtract rows from a list that meets certain criteria
    By InvalidTxtString in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2016, 02:40 PM
  3. Nth Value that Meets Condition
    By jenbot1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2015, 03:32 PM
  4. [SOLVED] IF the condition of gender is met AND the condition of age is met subtract this number
    By arsenalmom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-16-2014, 11:16 PM
  5. How to Delete a Row if meets a condition
    By mr_horhe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2013, 08:34 AM
  6. Excel 2007 : Subtract if a cell meets criteria
    By dmartinez in forum Excel General
    Replies: 3
    Last Post: 07-19-2010, 02:27 PM
  7. [SOLVED] Graphing only data that meets a condition
    By Heidi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-19-2006, 04:35 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