+ Reply to Thread
Results 1 to 4 of 4

A better way to print the formulas from an Excel spreadsheet

  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    A better way to print the formulas from an Excel spreadsheet

    Hi,

    I thought I saw a spreadsheet printout with the formulas listed BELOW the sheet. Or maybe it was just the formulas by themselves with a reference to the cell location they're at.

    Either way, what's not working is the Show Formulas method that places the formulas into the cells themselves. I'm looking for a better way than :
    • placing the formulas into the cells
    • having to word-wrap and/or reformat the column widths to accommodate the formula displays, cause then I have to fix it when I go back to viewing results, which isnt a better way
    • copy/paste my formulas into a document/notepad and printing from there

    I've seen these suggestions ad nauseum on the net. They work fine for examples where the formulas are short and simple like =A2*1.2. They do not work for many of the formulas Excel is known for, such as : =XLOOKUP(SUBSTITUTE(A2," ","")&D2,SUBSTITUTE('[Products - 06-07-22.xlsx]Food'!$B$2:$B$14000&'[Products - 06-07-22.xlsx]Food'!$C$2:$C$14000," ","")&'[Products - 06-07-22.xlsx]Food'!$F$2:$F$14000,'[Products - 06-07-22.xlsx]Food'!$C$2:$C$14000,,2). Who wants to adjust column widths and word-wrap that, and then have to fix it when going back to viewing results - I dont.

    But I'm not finding that thing I thought I saw before. It was like a series of this on a printout :

    B2 : =XLOOKUP(SUBSTITUTE(A2," ","")&D2,SUBSTITUTE('[Patients - 06-07-22.xlsx]Patients'!$B$2:$B$14000&'[Patients - 06-07-22.xlsx]Patients'!$C$2:$C$14000," ","")&'[Patients - 06-07-22.xlsx]Patients'!$F$2:$F$14000,'[Patients - 06-07-22.xlsx]Patients'!$C$2:$C$14000)

    Is there a better way?

    Thank you.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: A better way to print the formulas from an Excel spreadsheet

    I found a very interesting way that is sure to BOG down your excel workbook, but it does what you are asking it for. This will make your workbook probably quadruple in size as well as run slow based on array formulas and full column and row references.
    See attached workbook for example.
    In Sheet1 i just made a bunch of random formulas in columns A:D in random cells. I also added text and numbers in there as well trying to break the formula.
    I then made a new sheet, which in this case is Sheet2.
    In cell A1 i changed the formatting to "WRAP TEXT" so that all answers are provided in one cell using line breaks.
    the below formula is in Cell A1.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Ranges will have to be changed obviously to fit your needs Make sure though ranges are constant through out formula.
    This formula searches through columns A:D on Sheet1 and returns the cell reference and formula as text as long as the cell contains a formula. I then utilized TEXTJOIN() and CHAR(10) <--- this is a "line break" to separate the data.
    Hope this helps in some way.
    Attached Files Attached Files
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Re: A better way to print the formulas from an Excel spreadsheet

    Yeah. I like it! That's the bones of a process I can work with. I didnt know about FORMULATEXT function. I'd only need to use it on a row of cells most of the time, like the first row of data. And I now see how I can do that.
    Thank you so much!

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: A better way to print the formulas from an Excel spreadsheet

    I am glad it was able to get you started on something that will work for you. Using it on one row shouldn't slow excel down too much.
    Thanks for the Rep!

+ 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. Why do gridlines not print in Excel spreadsheet?
    By Office Newbie in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-23-2006, 11:45 AM
  2. Can I print the tab names in an Excel spreadsheet?
    By CLAMJ in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 11:30 AM
  3. [SOLVED] I cant see my excel spreadsheet but only in Print Preview?
    By Karyn H in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2006, 09:00 PM
  4. Replies: 1
    Last Post: 09-05-2005, 05:05 PM
  5. How to print odd pages only from an Excel spreadsheet?
    By levininc in forum Excel General
    Replies: 1
    Last Post: 07-12-2005, 12:05 PM
  6. How do I print labels from an Excel spreadsheet
    By Scott in forum Excel General
    Replies: 3
    Last Post: 02-07-2005, 05:06 PM
  7. [SOLVED] Excel spreadsheet won't print..but everything else does
    By Debutante in forum Excel General
    Replies: 0
    Last Post: 02-01-2005, 07:06 PM
  8. Replies: 0
    Last Post: 02-01-2005, 03:06 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