Skip to main content

How to add values to multiple cells in Excel?

Author: Kelly Last Modified: 2024-07-23

Adding a value to multiple cells in Excel can be done swiftly and efficiently using the right methods. This guide will introduce you to several techniques that simplify the process, ensuring you can update your data quickly and with ease.


arrow blue right bubble Add value to multiple cells with VBA

Using macros can ease many repeated processing, and make our work easier and faster. So does the following macro.

Step 1: Select the cells that you will add value to.

Step 2: Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

Step 3: Click Insert > Module, and paste the following VBA in the Module Window.

VBA code: Add value to selected cells in Excel

Sub Add2Formula()
  'Updated by Extendoffice 2024/07/23
For Each c In Selection
c.Activate
ActiveCell.FormulaR1C1 = "= " & ActiveCell.Formula & "+300"
Next c
End Sub
  
Notes:
  • This macro is only valid for cells containing no formulas within them.
  • This macro will add 300 to all selected cells. If you want to add another value, please replace the 300 with another value.

arrow blue right bubble Add value to multiple cells with Kutools for Excel

Kutools for Excel provides us with an alternate easy-to-use method, and its Operation feature can help us add value to multiple cells easily.

Note: To apply this Operation feature, firstly, you should download and install Kutools for Excel.

Step 1: Select the cells to which you will add the same value.

Step 2: Click the Kutools > More > Operation.

Step 3: Select the Addition from the Operation section, and enter the value you will add to the selected cells. See screenshot:

doc-add-values-to-cell-2

Step 4: Check the Create formulas option.

Step 5: Click OK.

doc-add-values-to-cell-3

In Operation,
select Addition, enter 300, and click OK.

doc-add-values-to-cell-4

Kutools for Excel's Operation feature supports all kinds of mathematical operations to all selected cells together:

  • Addition: Plus a specified operand.
  • Subtraction: Subtract specified operand.
  • Multiplication: Each value of cells is multiplied by the operand.
  • Division: Each value of cells is divided by the operand.
  • Exponentiation: Each value of the cell powers the operand.
  • Rounding: Round each value of a cell to the decimal numbers (specified operand).
  • Function: Applies a function to each value of a cell.
  • Custom: Create a formula-like expression and apply it to each value of a cell.

Related Article

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks a lot. It is working 💖
This comment was minimized by the moderator on the site
If you want to include cells with formula, you could try, which is only a slight modification from the original. But adding numbers to an established formula could be dangerous so beware:


Sub Add2Formula()
' Add a number
Dim formulae As String
Dim a_number As Double

a_number = InputBox("what number to increment")

For Each cell In Selection
cell.Activate
formulae = ActiveCell.Formula
' gets rid of formula non-essentials that could cause errors
formulae = Replace(formulae, "'", "")
formulae = Replace(formulae, "=", "")

If formulae = "" Then
ActiveCell.Formula = "= " & ActiveCell.Formula & "+" & a_number
Else
ActiveCell.Formula = "= " & formulae & "+" & a_number
End If
Next cell

End Sub


This could be easily modified to skip blank cells, and to skip text cells you could probably evaluate the value of the cell, and when it errors you could go to the next cell. Hope this helps.
This comment was minimized by the moderator on the site
How can I get this VBA formula to skip blank and text cells? Thanks
This comment was minimized by the moderator on the site
sir.iam doing survey list in excel if a=200,b=100,c=50,d=15.e=10 for 3 questions if he selects a,b,b means 200+100+100=400 and Description should be good ..how to do this one
This comment was minimized by the moderator on the site
this tool is so useful and can trust the product.
There are no comments posted here yet
Load More
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations