+ Reply to Thread
Results 1 to 6 of 6

Adding a constant values to certain cells in excell at a time

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    Nigeria
    MS-Off Ver
    Excel 2016
    Posts
    73

    Adding a constant values to certain cells in excell at a time

    Hello every one,
    i have this spreadsheet with students score, their performance is low and i want to add constant value say 20 marks to only the cells with red that is the cells that has less than 49 marks.
    please how can i go about it.
    Attached Files Attached Files
    Last edited by oluagbe1; 04-17-2017 at 04:03 PM.

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

    Re: Adding a constant values to certain cells in excell at a time

    Enter this formula into X8

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


    Fill down and to the right to AG98

    Copy X8:AG98 and paste special values into E8

    Clear x8 to AG8


    As a Macro


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 04-17-2017 at 02:56 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
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Adding a constant values to certain cells in excell at a time

    Creating 2 named cells to allow you to amend both values later

    Results in attached workbook in sheet "Amended"

    B1 = 20, and is named "AddThis
    C1 = 49 and is named "LessThanThis"


    Take a copy of the worksheet and put this formula in cell E8 and copy it down and across to the relevant cells

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


    Your conditional formatting says <= 49, so I have used that too
    I do not think you want to add 20 to something that was not completed - so I excluded anything < 1
    Attached Files Attached Files
    Last edited by kev_; 04-17-2017 at 03:23 PM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Registered User
    Join Date
    01-11-2014
    Location
    Nigeria
    MS-Off Ver
    Excel 2016
    Posts
    73

    Re: Adding a constant values to certain cells in excell at a time

    Quote Originally Posted by mehmetcik View Post
    Enter this formula into X8

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


    Fill down and to the right to AG98

    Copy X8:AG98 and paste special values into E8

    Clear x8 to AG8


    As a Macro


    Please Login or Register  to view this content.


    this worked well for me, i appreciate you a great deal.
    thank you also for the correction on saying please and thank you.
    i sincerely do appreciate and you saved my day.
    than you again

  5. #5
    Registered User
    Join Date
    01-11-2014
    Location
    Nigeria
    MS-Off Ver
    Excel 2016
    Posts
    73

    Re: Adding a constant values to certain cells in excell at a time

    Quote Originally Posted by kev_ View Post
    Creating 2 named cells to allow you to amend both values later

    Results in attached workbook in sheet "Amended"

    B1 = 20, and is named "AddThis
    C1 = 49 and is named "LessThanThis"


    Take a copy of the worksheet and put this formula in cell E8 and copy it down and across to the relevant cells

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


    Your conditional formatting says <= 49, so I have used that too
    I do not think you want to add 20 to something that was not completed - so I excluded anything < 1


    This method is mind blowing...
    i love it much, you are amazing
    thank you very much.
    i love this work you just did.
    God bless you much.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Adding a constant values to certain cells in excell at a time

    You are welcome
    Thanks for marking the thread as solved

    You do not need to "quote" complete posts - it fills the thread with unnecessary clutter.
    Simply reply to the previous comment etc.
    For clarity it is sometimes helpful to quote:
    - the post#
    - a portion of a post
    - @MemberName if more than one member is taking part in the thread

    Thanks

+ 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. Replies: 1
    Last Post: 11-14-2016, 01:17 AM
  2. [SOLVED] Adding constant values using object variable coding
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2013, 05:18 PM
  3. Adding time values for no sequence cells with an IF function
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2011, 04:00 AM
  4. Adding Time:setting up a excell file
    By JAMES GABEL in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2006, 09:45 AM
  5. How do I display negative time values in excell?
    By tomashruska in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2006, 03:00 PM
  6. Calculating Non-Constant Values in Cells
    By sesmith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2005, 12:05 PM
  7. Making Excell formula constant
    By darsg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2005, 12: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