+ Reply to Thread
Results 1 to 3 of 3

Subtracting Range of Cells depending on Another Cell's Value

  1. #1
    Registered User
    Join Date
    05-12-2015
    Location
    Alabama, USA
    MS-Off Ver
    2007
    Posts
    2

    Subtracting Range of Cells depending on Another Cell's Value

    Hello,

    I've searched through the forums a bit and found some questions that are SIMILAR to what I'm asking, but doesn't really help answer what I'm trying to do. I've attached my excel sheet for reference.

    What I want is B6:B100 to be a NUMBER that subtracts from E3 or H3 DEPENDING on C6:C100 being either "VAC" or "CTO".

    For instance, if B6 is 5, and C6 is VAC, then E3 will reduce by 5. If B6 is 5 and C6 is CTO, then H3 will reduce by 5. (I know I could probably just hide E3/H3 and have the value of H4/E4 depend on those and subtract as normal too)

    I'm certain this is doable with a certain formula. Can someone walk me through it? I'd appreciate it.

    Regards,Roanoke Time Off.xls
    James.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Subtracting Range of Cells depending on Another Cell's Value

    Maybe?

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 05-12-2015 at 02:21 PM.

  3. #3
    Registered User
    Join Date
    05-12-2015
    Location
    Alabama, USA
    MS-Off Ver
    2007
    Posts
    2

    Re: Subtracting Range of Cells depending on Another Cell's Value

    Thanks for the Reply JOHN,

    That works only when I run the VBA code (it doesn't automatically update).

    Do I have to use VBA code? Or is there a way that VBA code can automatically and real-time update when data is changed?

    Thanks,
    James

+ 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. Adding or subtracting depending on value
    By ericbalcom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2015, 12:21 AM
  2. Lock Grey Cells in Range Depending on Seperate Cell change
    By Mackattack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2014, 07:09 AM
  3. [SOLVED] Lock specific range of cells depending on cell value
    By yoda66 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-27-2013, 11:30 AM
  4. [SOLVED] IF forumla - need to populate a cell on one sheet depending on range of cells in another
    By Emma2902 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-14-2012, 07:43 AM
  5. What formula is used for subtracting a range of different cells f.
    By tim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 06:06 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