• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Formulas wrapping in formula bar|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Formulas wrapping in formula bar|General Excel Questions & Answers|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Formulas wrapping in formula bar
sp_PrintTopic sp_TopicIcon
Formulas wrapping in formula bar
Avatar
Tom Kerr

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
January 26, 2020
sp_UserOfflineSmall Offline
1
April 28, 2023 - 11:16 pm
sp_Permalink sp_Print

I am consistently having longer formulas wrap randomly in the formula bar. I am not talking about wrapping on purpose with Alt+Enter.  I am talking about formulas wrapping without instruction. It causes me to expand the formula bar window to see the formula which, in turn, shrinks the amount of canvas for the actual worksheet.

Any help is appreciated.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 490
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
April 29, 2023 - 8:23 pm
sp_Permalink sp_Print

Hi Tom,

One line in the formula bar takes as much characters as your screen/window size allows. When it reaches the end is automatically wraps to the next line. It shouldn't happen randomly, though. Nothing you can do about that.

Riny

Avatar
Hans Hallebeek
the Netherlands
Member
Members
Level 0
Forum Posts: 121
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
3
April 30, 2023 - 4:45 pm
sp_Permalink sp_Print

Hi Riny, I'm just curious.

When I expand the Formula bar to see a large formula it always 'remembers' the last size.

I have one file where the formula covers 10 rows. It's formula added using vba and line feeds and carraige returns so that I understand, bur is there a way to make this dynamic?

Not remember the last size but adapt to the number of lines permitted?

Hope my question makes sense, the image shows the formula and if I click an empty cell and press the arrow to expoand the formula bar i's the same size even though it's empty.

Screenshot-2023-04-30-084152.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Screenshot-2023-04-30-084152.png (289 KB)
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 490
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
4
May 1, 2023 - 3:51 pm
sp_Permalink sp_Print

Noticed that as well. The size of the formula bar depends on the last used setting. Don't know if there's anything you can do about that. It's just on click on the arrow to reset it, so I'm not bothered with it.

Avatar
Tom Kerr

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
January 26, 2020
sp_UserOfflineSmall Offline
5
May 2, 2023 - 2:10 am
sp_Permalink sp_Print

Thanks for the feedback Riny.  I'm still a bit confused.  Here is an example:

=XLOOKUP(B8,tMthlyRev[Month and Year],tMthlyRev[Trailing 3-Month Average_____________________________
for Cash Receipts],,-1,)/1000

There is plenty of space, more than enough for the text on the second line, in the menu bar to the right of "...Average" (I added the red line to indicate this).  There is no need for the line break yet Excel sees fit to add one.  To add to my confusion, if I try to manually correct the problem (by deleting space after Average to bring the remaining text back to the first line), excel returns an error message indicating a syntax problem.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
May 2, 2023 - 9:32 am
sp_Permalink sp_Print

Hi Tom,

I suspect this is how the table column name is formatted. Does the column named [Trailing 3-Month Average for Cash Receipts] have line breaks in the actual column name?

If you remove the space between 'Average' and 'for' in the column name and then add it back in, does that fix the issue?

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Tom Kerr

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
January 26, 2020
sp_UserOfflineSmall Offline
7
May 3, 2023 - 4:37 am
sp_Permalink sp_Print

Who knew?  Thanks, Mynda.  You nailed it.  Cells referenced in the formula have column headers that have Wrap Text applied, and the break is precisely where the break in the applicable column header is.

If I run into this again I'll know what to do. If I can't live without the Wrap Text in a source's column header, I'll deal with the wrapping formula.  If the Wrap Text is less critical than having easy-to-read formulas, I can remove the Wrap Text.  

It's good to have choices. Thanks, once again, for solving this riddle for me!Smile

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4515
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
May 3, 2023 - 4:16 pm
sp_Permalink sp_Print

Glad I could help, Tom

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Forum Stats:
Groups: 3
Forums: 24
Topics: 6356
Posts: 27793

 

Member Stats:
Guest Posters: 49
Members: 32324
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.