+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Need code for subtracting values in different coloumns

Hybrid View

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Amritsar,Punjab
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    22

    Arrow Need code for subtracting values in different coloumns

    Hello Everyone,
    Please guide me for subtracting values in different coloumns.
    I want to subtract all the values in "L" column from "F" column.
    Suppose in cell [F21 = 1000, F22= 2000] and cell[L21=200,L=400,L=200]. I want to SUM both columns in N7. Please give me the code for the above.
    Advance thanks

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Need code for subtracting values in different coloumns

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    Amritsar,Punjab
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    22

    Re: Need code for subtracting values in different coloumns

    [SOLVED]
    =SUM(F1:F99)-SUM(L1:L99)
    @Pike ~ Thanks for your suggestions.

+ 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