+ Reply to Thread
Results 1 to 2 of 2

subtract if condition?

  1. #1
    Registered User
    Join Date
    08-23-2019
    Location
    jaipur
    MS-Off Ver
    2
    Posts
    19

    subtract if condition?

    I have 4 line items in a1 to a4 and a8 to 11

    I want vba to start with a8. it will search 27800 in a1 to 4. as soon as it finds it, i want to do b(X) - b(X) in bx value. If value is not there, i want it to be blank
    These will be the values from c8 to c11 I need. I am attached the workbook.
    Please help
    c8 - blank
    c9 - blank
    c10 - -18 (56-74)
    c11 - -1 (97-98)
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: subtract if condition?

    You can do it with simple formula in C8.

    HTML Code: 
    Drag it down to C11.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

+ 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. How to subtract weeks from a date - based on a condition
    By Excelnew200 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2019, 01:13 PM
  2. Subtract a value that meets a condition from another value
    By hdcfamily in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2018, 02:15 PM
  3. How to Subtract value in table based on two different condition
    By nitemath2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2015, 03:51 AM
  4. Replies: 3
    Last Post: 02-02-2014, 04:26 AM
  5. [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
  6. check for condition"Number or not" and subtract
    By kannanr03 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 08-03-2012, 12:35 PM
  7. ADD or SUBTRACT based on condition
    By ranjitbd in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-01-2010, 04:52 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