Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8260553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:07:34+00:00 2026-06-08T03:07:34+00:00

When you click a cell in Excel, you see a formula like =A1+B1 .

  • 0

When you click a cell in Excel, you see a formula like =A1+B1. That is the formula with the cell references. I want to see the formula with the cell values, for example: =10+20.

A1 =10           //Cell A1 has the value 10
A2 =20           //Cell A2 has the value 20
C2 =A1+B1        //Cell C2 has the value A1 + A2

D2 =10+20        //I want Excel to derive this.

I don’t want the formula displayed in the cell or anything. I still want C2 to display 30. I just want it so that if I click on C2, I can see =10+20 in the formula bar.

Alternatively, if C2 displayed a comment where it showed the calculations (so clicking on C2 would display the comment “=10+20”, that would work too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:07:35+00:00Added an answer on June 8, 2026 at 3:07 am

    That’s not how Excel works; if you have a formula in a cell, that is what is going to show up in the formula bar.

    EDIT

    You can use VBA (from Tools > Macros > Visual Basic Editor), however, to write code that will update the contents of the C cells with the the values of A + B, like this:

    Private Sub HideFormula()
        Dim lastrow As Long, r1 As Long
    
        ' Get the last row in the worksheet
        lastrow = ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row
    
        For r1 = 1 To lastrow
    
            ' If A & B aren't blank, make the formula of cell C equal to A + B.
            If Sheet1.Range("$A$" & r1).Value <> "" And _
                Sheet1.Range("$B$" & r1).Value <> "" Then
    
                ' In the example, C2 = A1 + B1, so offset C by one
                Sheet1.Range("$C$" & (r1 + 1)).Value = _
                    "=" & Sheet1.Range("$A$" & r1).Value & "+" & _
                    Sheet1.Range("$B$" & r1).Value
    
            End If
    
        Next
    
    End Sub
    

    EDIT 2

    If you want to replace the contents of a C cell with the values in the formula, you can use the .Formula value to find its formula, and go from there:

    Private Sub ReplaceFormulaWithValues()
        Dim lastrow As Long, r1 As Long
        Dim temp As String, arTemp
    
        ' Get the last row in the worksheet
        lastrow = ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row
    
        For r1 = 1 To lastrow
    
            ' If A & B aren't blank, make the formula of cell C equal to A + B.
            If Sheet1.Range("$C$" & r1).Value <> "" Then
    
                ' Get the formula for the current C cell
                temp = Replace(Sheet1.Range("$C$" & r1).Formula, "=", "")
    
                ' Create an array by splitting the formula on the + sign
                arTemp = Split(temp, "+")
    
                Sheet1.Range("$C$" & r1).Value = _
                    "=" & Sheet1.Range(arTemp(0)).Value & "+" & _
                    Sheet1.Range(arTemp(1)).Value
    
    
            End If
    
        Next
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up Excel so that the cell's value that is selected
This one has me stumped. When I set the formula for a selected cell
When I try to add a SUMIF formula to an Excel file that has
I have created a table view and want that when i click a cell
$(cell).click(function(){ var cellColor = $(this).css(background-color); if(cellColor != red){ $(this).css(background-color, red); }else{ $(this).css(background-color, blue); }
How can i get section cell text on custom cell button click. is this
Please click on this link for the image of the excel sheet containing the
I have a GridView on my page. I want to set a cell click
How would you copy multiple rows of data like this <tr><td>cell 1</td><td>cell 2</td></tr> <tr><td>cell
I write a method to return Excel sheet cell value when pass filename ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.