+ Reply to Thread
Results 1 to 7 of 7

Please help with substraction?

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Bulgaria
    MS-Off Ver
    2013
    Posts
    44

    Please help with substraction?

    Hello,

    Is there a faster way to substract and sum on one cell. As you can see on the example I've attached my idea is the quantity to cahnge value according the loaded stock and the sells.

    The example is pretty small - the selling cells will be many rows down and each every product will be many coloums a side. My idea is to type for example:

    A4=B4+C4+D4-E4-F4-G4-... and all the way, maybe 40 or 50 coloums. Right now I have to click "+" and each cell manually. When I try to slide the mouse to take the whole row (A4=B4+C4+D4-E4:J4, according the example) the cell stays on VALUE.

    Please help with this little problem.

    Thank you very much
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Please help with substraction?

    Edit - Wrong formula
    Last edited by TheCman81; 07-18-2014 at 05:52 AM.
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Please help with substraction?

    =SUMIF($B$1:$J$1,"Loaded on:",$B4:$J4)-SUMIF($B$1:$J$1,"Sold on:",$B4:$J4)
    Try this formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Please help with substraction?

    Please see attached

    Headers must exactly state either Loaded on: or Sold on:

    Example SUM v1.xlsx

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Please help with substraction?

    =SUMIF(OFFSET($A$1,0,1,1,COUNTA($1:$1)-1),"Loaded on:",OFFSET($A$1,ROW(),1,1,COUNTA($1:$1)-1))-SUMIF(OFFSET($A$1,0,1,1,COUNTA($1:$1)-1),"Sold on:",OFFSET($A$1,ROW(),1,1,COUNTA($1:$1)-1))
    One more option try this

  6. #6
    Registered User
    Join Date
    06-25-2014
    Location
    Bulgaria
    MS-Off Ver
    2013
    Posts
    44

    Re: Please help with substraction?

    Thank you all. It worked perfectly. Now just to apply it - there alot of wor with copy paste and cells retype

  7. #7
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Please help with substraction?

    Glad to help, thanks for the feedback

+ 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. [SOLVED] substraction in column
    By whitoulias in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2014, 03:38 AM
  2. substraction
    By faisal.ta in forum Excel General
    Replies: 1
    Last Post: 03-31-2014, 02:13 PM
  3. [SOLVED] Substraction - Re_Grouping
    By itselflearn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2013, 07:03 PM
  4. Substraction
    By bablubg in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-19-2012, 05:33 AM
  5. Help - date substraction
    By TAKTOUKA in forum Excel General
    Replies: 17
    Last Post: 05-23-2005, 02:41 AM

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