Displaying formula results...

stollc

Board Regular
Joined
Jun 14, 2004
Messages
56
Is there a way to keep all formulas on a seperate sheet, and point the results to a different sheet? For example I was the formula =1+1 on "Calculations" sheet, cell A1 and the result I want to be displayed on "results" sheet cell A1. I DON'T want any formula in the results cell.

Is this possible?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Would something like this work for you?

Right-click the "calculations" sheet tab, and select 'view code.' Paste this code there. It should run whenever a change is made on the calculations sheet.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False

If Target.Count > 1 Then Application.EnableEvents = True: Exit Sub

Sheets("results").Range(Target.Address) = Target

Application.EnableEvents = True

End Sub
 
Upvote 0
Do you really need the extra sheet? Can't you just toggle between formula and regular view?? Do this by using Cntrl + ~
 
Upvote 0
I just want to not have the formulas entered in the same cells that display the results. It probably isn't possible.
 
Upvote 0
My approach to this would be to put all the formulas on a "Calculations" sheet and then set the formatting for that sheet to show all formlas - CTRL + ~

Then make a "Results" sheet and link each cell to the Calculations sheet but do not show the formulas. in Cell A1 put ='Calculations'!A1 and copy that formla to all cells to shw the results

THis should achieve what you are looking for where one sheet displays the formula and the other displays the results.
 
Upvote 0
stollc said:
I just want to not have the formulas entered in the same cells that display the results. It probably isn't possible.

This works for me. Basically, you enter a formula, the result displays. The code will copy the cell you just entered the formula in and paste it into the same cell as values--displaying only the result, not the formula:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False

If Target.Count > 1 Then Application.EnableEvents = True: Exit Sub

If Target.HasFormula Then
    Target.Copy
    Target.PasteSpecial Paste:=xlPasteValues
End If

Application.CutCopyMode = False
Application.EnableEvents = True

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top