+ Reply to Thread
Results 1 to 5 of 5

formula showing as text after macro entry

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    formula showing as text after macro entry

    When i run the following code the cells in column K are showing as =IFERROR(LEFT(J2,FIND(" - ",J2)-1),""). After researching it would appear that when entering this manually into column k the cell is formatted as text, changing it to general then doing an F2 and enter corrects the problem, any suggestions on how to do this with vba?

    Please Login or Register  to view this content.
    Last edited by jprlimey; 10-10-2014 at 12:40 PM. Reason: Solved

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: formula showing as text after macro entry

    Change this line to:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Re: formula showing as text after macro entry

    Olly,

    The suggested solution didn't work. The cell was still formated as text

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: formula showing as text after macro entry

    Then add a line beforehand, to format as general. So your code becomes:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Re: formula showing as text after macro entry

    It finally did work with the following, the ""-"" was important, it did not work with the space between the quaotation marks "" - ""

    Thanks for your astistance

    Please Login or Register  to view this content.

+ 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. Vlookup formula showing as text in cell
    By Mile029 in forum Excel General
    Replies: 2
    Last Post: 09-15-2014, 10:17 AM
  2. [SOLVED] Showing a text instead of evaluating the formula using firmulaR1C1
    By Haleh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2014, 06:24 AM
  3. [SOLVED] macro assistance to automate text entry in selected row if another range has text
    By lilsnoop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2013, 01:01 PM
  4. Replies: 7
    Last Post: 07-09-2012, 11:48 AM
  5. showing formula as text string rather than result
    By censura in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-19-2007, 07:27 AM

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