Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all!

I currently have this setup, please note that I have hidden all the nonrelevant columns however:
1651498314227.png


The formula I use is this (thank you @RoryA !)

=IFERROR(INDEX(INDIRECT("'"&H504&"'!$U$3:$U$73"),MATCH(1, (INDIRECT("'"&$H504&"'!$A$3:$A$73")=$C504)*(INDIRECT("'"&$H504&"'!$C$3:$C$73")=$H504),0)),"RANDOM TEXT HERE.")

My issue is that while this is naturally very nice in pulling in data from my other sheet, once you click the actual cell in the current column, it shows the formula rather than the text.

I would like the text to be shown also, and was wondering if I could simply hide column E (or slim it down a lot so it is almost hidden) and then make a new column that automatically replicates all of the text from column E, but where once you click on it, you will be shown the text rather than a formula.

I imagine that this might be possible through VBA coding by altering the entire Column so it just copies the raw data from column E.

Is this possible? I would greatly appreciate some assistance here!

P.S. also open to alternative solutions!

Kind regards,
Jyggalag
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
once you click the actual cell in the current column, it shows the formula rather than the text.
That is probably some setting you have. Hard to diagnose when that is not what you showed. Do you have the Show Formulas option turned on by mistake?
 
Upvote 0
That is probably some setting you have. Hard to diagnose when that is not what you showed. Do you have the Show Formulas option turned on by mistake?
Hi,

I tried this and I do not have this turned on.

My issue is not that the formula shows itself in the cell, because it does not. Rather, I want to have the value/result shown in the formula bar. I figured that this is probably impossible without removing the formula.

My suggestion is thus:

Create a column that copies all values from its adjacent column through VBA, so I can hide the formula column and unhide the values column.

Is this possible? Would highly appreciate if someone knew how to do this! :)
 
Upvote 0
To hide formula, try to protect sheet.
1) select all cells, format cell, check unlock
2) select cells with formula, check "lock" and "hidden"
3) protect sheet
Now formula is hidden
 
Upvote 0
To hide formula, try to protect sheet.
1) select all cells, format cell, check unlock
2) select cells with formula, check "lock" and "hidden"
3) protect sheet
Now formula is hidden
Hi Bebo,

This makes it a bit to hard the sheet though, no? since it will be password protected
 
Upvote 0
This code will lock and hide formula, protect sheet with no password
VBA Code:
Option Explicit
Sub HideFormula()
ActiveSheet.Cells.Locked = False
With ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormulas)
    .Locked = True ' remove this line if you dont want to lock cell (can be deleted)
    .FormulaHidden = True
End With
ActiveSheet.Protect Password:="", UserInterFaceOnly:=True
End Sub
 
Upvote 0
This code will lock and hide formula, protect sheet with no password
VBA Code:
Option Explicit
Sub HideFormula()
ActiveSheet.Cells.Locked = False
With ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormulas)
    .Locked = True ' remove this line if you dont want to lock cell (can be deleted)
    .FormulaHidden = True
End With
ActiveSheet.Protect Password:="", UserInterFaceOnly:=True
End Sub
Hi Bebo, interesting code here, if i wanted it to be password protected what would i do? Just add the password between the ""?

Thanks
 
Upvote 0
You are asking exactly the same question, so it's not "too similar"
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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