+ Reply to Thread
Results 1 to 7 of 7

Need help with subtraction formula.

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Tempe, Az
    MS-Off Ver
    Mac Excel 2008
    Posts
    20

    Need help with subtraction formula.

    2 spreadsheets, A and B. This is what my formula looks like thus far. =(154)-SUM('[A.xlsx]Sheet1'!$I$2:$I$100) When I put a number into a column in spreed sheet B, it subtracts one from the specified column in spreed sheet A. What does the formula look like when I want 2 or more subtracted from A instead of just one?

    Thanks for all your help. I've learned a lot from my previous posts so far.
    Last edited by wrtrblk; 04-15-2013 at 06:55 PM.

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Fomula for this..............

    Hello,

    First, you will have to change your title to reflect your idea, so that others have easier time to help you / look up the answer for similar question.
    Second, can you provide a sample file?

    Regards
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need help with subtraction formula.

    hard to say without seeing what you are working with, but maybe something like this?

    =(154)-SUM('[A.xlsx]Sheet1'!$I$2:$I$100)-B2

    Where B2 contains the value you want to subtract?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-19-2013
    Location
    Tempe, Az
    MS-Off Ver
    Mac Excel 2008
    Posts
    20

    Re: Need help with subtraction formula.

    When I add a number to column D on WS InventoryShp1, the number in coulumn A on WS Inventory1 reduces by double that number. For ex., I put in 10 in column D on WS InventoryShp1 and the number in coulumn A on WS Inventory1 reduces by 20.
    Attached Files Attached Files
    Last edited by wrtrblk; 04-15-2013 at 07:49 PM.

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Tempe, Az
    MS-Off Ver
    Mac Excel 2008
    Posts
    20

    Re: Need help with subtraction formula.

    I GOT IT!!!!!! =(154)-SUM('[A.xlsx]Sheet1'!$I$2:$I$100)*2. I needed the *2 at the end. Thanks for the help.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need help with subtraction formula.

    Sorry, you will need to show better sample data than that. 1 file just contained "This", "That" "Other", and the other was totally empty?

    Please include data that is similar to what you are working with, as well as a few sample answers (manual if necessary) and how you arrived at that.

    Also, your file names were...Inventory1.xlsx and InventoryRcvd1.xlsx, yet you refer to WS InventoryShp1?

    Please provide accurate info if you want an accurate answer

    Edit: glad you found the answer...please mark this thread SOLVED

  7. #7
    Registered User
    Join Date
    03-19-2013
    Location
    Tempe, Az
    MS-Off Ver
    Mac Excel 2008
    Posts
    20

    Re: Need help with subtraction formula.

    I think I downloaded the files before I saved them, no worries, I figured out the answer. I will be more thorough next time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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