+ Reply to Thread
Results 1 to 3 of 3

Structure formulas to make them easier to understand

  1. #1
    Registered User
    Join Date
    01-26-2016
    Location
    Soultz,Haut-Rhin, France
    MS-Off Ver
    Excel 2010
    Posts
    1

    Structure formulas to make them easier to understand

    Hi,
    formulas like this in one line are not very easy to read once they get more complicated:

    =if(A1=1;"Wahr";"Falsch")

    If you want to structure a formula you can do that my typing ALT+Enter and you'll get a line break.

    =if(A1=1;[INDENT] "Wahr";
    "Falsch"
    )


    I don't know though how to enter comments and would appreciate you help.
    It could be like this but that doesn't work:

    =if(A1=1;
    "Wahr"; ' Comment: This is true
    "Falsch" ' Comment: This is false
    )
    Last edited by alansidman; 01-26-2016 at 10:31 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Structure formulas to make them easier to understand

    I have only idea to put that in comment of that cell.
    You can't put it within formula.

    Also, to meake it easier for you to read formula you can click on part of the formula (For example in IF formula to see what return value if true).
    That part will be highlited.

    EF5.jpg

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Structure formulas to make them easier to understand

    Comments are not inserted as part of the formula, but rather in a comment box linked to the cell. Right click on the cell in question, and click on Insert Comment.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trying to use macros and vba to make life easier
    By FWM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2015, 03:33 PM
  2. Replies: 1
    Last Post: 01-29-2015, 07:01 PM
  3. Formatting Chart - Easier to Understand
    By cchase22 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-11-2014, 08:12 PM
  4. Replies: 1
    Last Post: 05-05-2014, 07:30 AM
  5. cant make to macros understand each other...
    By Kristofferdk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2012, 08:08 AM
  6. Please close. I created an easier to understand threat.
    By pingwin77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2008, 12:09 PM
  7. Replies: 1
    Last Post: 09-18-2007, 02:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1