+ Reply to Thread
Results 1 to 5 of 5

How to subtract a value from several cells and display in individual active cells

  1. #1
    Registered User
    Join Date
    01-16-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Unhappy How to subtract a value from several cells and display in individual active cells

    Hello everyone,

    I am really illiterate when it comes to VBA codes in Excel. I have values in cells A2 to A9, cells B2 to B9, cells C2 to C9 and so on upto K2 to K9. I also have a value in cell A1.
    I want to subtract A1 from each of the above values (i.e. A2:A9, B2:B9.....K2:K9) and would like to have them displayed in individual cells.

    Please help.

    J

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How to subtract a value from several cells and display in individual active cells

    Hi

    Why do you need VBA, won't a formula do?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: How to subtract a value from several cells and display in individual active cells

    Individual cells where?

    If you put =A2-$A$1 in cell L2 and drag across and down you will get what you have asked for.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-16-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How to subtract a value from several cells and display in individual active cells

    TMShucks, Thanks very much. I tried what you suggested and it works. I am good.

    Thanks, have a great day.

    J

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: How to subtract a value from several cells and display in individual active cells

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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