+ Reply to Thread
Results 1 to 3 of 3

Add/Subtract Cells depending on drop down choice

  1. #1
    Registered User
    Join Date
    06-02-2015
    Location
    USA
    MS-Off Ver
    MS Office 2011
    Posts
    2

    Add/Subtract Cells depending on drop down choice

    Hey all,

    I'm new here and I have been having an issue with a new spreadsheet. What I essentially want to happen is for a cell to have a formula to be able to compute either a subtraction or addition depending on a drop down choice I made through Data Validation.

    I'll try to explain as best I can:

    Cell G2 has the header "Quantity", H2 has "In/Out", I2 has "Quantity In/Out" and J2 has "Total"

    H2 is the drop down. Any user can select either In or Out. What I want to happen is if the user selects, "In", Cells G2 and and I2 will be added for a total in "Total" in J2.

    If a user were to select "Out" in in H2, then the cell I2 would be subtracted from G2 for a total in "Total" in J2.

    I've been pondering this for a while to no avail, is there any way to combine sumif and a subtraction portion? Or something like that? Thanks for yall's attention.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Add/Subtract Cells depending on drop down choice

    Put this formula in J2.

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



    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Last edited by mehmetcik; 06-02-2015 at 06:34 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    06-02-2015
    Location
    USA
    MS-Off Ver
    MS Office 2011
    Posts
    2

    Re: Add/Subtract Cells depending on drop down choice

    Thank you so much! Worked perfectly!!

+ 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. Multiple Time Stamps depending on choice in Drop Down List Choice
    By insayah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2022, 09:53 AM
  2. Subtract from a choice of cells
    By KHann1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2014, 09:11 AM
  3. SOLVED!!! Drop down box choice to populate next 2 cells.
    By bwarner1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-16-2014, 02:20 PM
  4. Replies: 9
    Last Post: 09-18-2011, 06:10 AM
  5. How to fill out cells depending of the choice clicked in a list
    By Triben in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 03-04-2011, 04: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