Keeping Formulas in the Formula Bar From Covering Up Data

SonicBoomGolf

Active Member
Joined
Aug 7, 2004
Messages
325
I have some ginormous formulas in my sheet, and they spill out of the Formula Bar onto the spreadsheet, covering up some of the data. I remember reading about how to correct this, but can't remember the process. Any ideas?
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hi,

Hide the formula bar, or make your formula(s) smaller.
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
You can format the cells as hidden then protect the sheet, then you wouldn't see the formulas at all
 

orbea_adam

Well-known Member
Joined
Nov 15, 2005
Messages
500
Record a macro to increase row height for Row 1. Assign that macro to a button and click when you need to edit formulas. Record another macro to decrease row height back to normal and assign that to another button. Or, instead of buttons use: CTRL + I for increase and CTRL + D for decrease.
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hmm, interesting. As far as a row/column increment goes, this may help with that ..


<font face=Tahoma New><SPAN style="color:#00007F">Option</SPAN> <SPAN style="color:#00007F">Explicit</SPAN>

<SPAN style="color:#00007F">Sub</SPAN> ChangeRowSize(ChangePercent <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>)
    
    <SPAN style="color:#00007F">Dim</SPAN> r <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, i <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>
    <SPAN style="color:#00007F">Dim</SPAN> iStart <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, iEnd <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>
    
    Application.ScreenUpdating = <SPAN style="color:#00007F">False</SPAN>
    
    iStart = Selection.Row
    iEnd = Selection.Rows.Count + iStart - 1
    
    <SPAN style="color:#00007F">For</SPAN> r = iStart <SPAN style="color:#00007F">To</SPAN> iEnd
        i = Rows(r).RowHeight
        Rows(r).RowHeight = i + i * (ChangePercent / 100)
    <SPAN style="color:#00007F">Next</SPAN> r
    
    Application.ScreenUpdating = <SPAN style="color:#00007F">True</SPAN>
    
    MsgBox "Complete!" & vbNewLine & "Adjusted " & ChangePercent & "%"
    
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN>

<SPAN style="color:#00007F">Sub</SPAN> ChangeColumnSize(ChangePercent <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>)
    
    <SPAN style="color:#00007F">Dim</SPAN> r <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, i <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>
    <SPAN style="color:#00007F">Dim</SPAN> iStart <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>, iEnd <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>
    
    Application.ScreenUpdating = <SPAN style="color:#00007F">False</SPAN>
    
    iStart = Selection.Column
    iEnd = Selection.Columns.Count + iStart - 1
    
    <SPAN style="color:#00007F">For</SPAN> r = iStart <SPAN style="color:#00007F">To</SPAN> iEnd
        i = Columns(r).ColumnWidth
        Columns(r).ColumnWidth = i + i * (ChangePercent / 100)
    <SPAN style="color:#00007F">Next</SPAN> r
    
    Application.ScreenUpdating = <SPAN style="color:#00007F">True</SPAN>
    
    MsgBox "Complete!" & vbNewLine & "Adjusted " & ChangePercent & "%"
    
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN>

<SPAN style="color:#00007F">Sub</SPAN> RunIt_Rows()
     <SPAN style="color:#007F00">'Figure will be used as a percentage increment/decrement</SPAN>
    ChangeRowSize 10
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN>

<SPAN style="color:#00007F">Sub</SPAN> RunIt_Columns()
     <SPAN style="color:#007F00">'Figure will be used as a percentage increment/decrement</SPAN>
    ChangeColumnSize -10
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 

Watch MrExcel Video

Forum statistics

Threads
1,119,127
Messages
5,576,233
Members
412,709
Latest member
AD04
Top