+ Reply to Thread
Results 1 to 4 of 4

VBA parse cell ref from formula Replace with Header

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Desktop
    MS-Off Ver
    07,10,13
    Posts
    38

    Question VBA parse cell ref from formula Replace with Header

    Hi Friends,

    I have some long formulas and I am trying to wrap my head around what they're doing. I'm thinking th best way to handle this moving forward is to somehow parse the cell references from th formulas and replace with th Headers. A Google search reveals a ton of results so I know it's doable. Just haven't found an exact or close match to what I'm looking to do (yet).

    I am reaching out to th community because I'm hoping someone has th exact piece of candy I'm looking for and could share a link pointing me in th right direction.

    Here's a little taste of th nasties I'm trying to put to bed.

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


    Thank for any suggestions and for taking th time to read

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: VBA parse cell ref from formula Replace with Header

    If you store your data in a table then you can refer to the headers in the formulas quite easily.

    BSB

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: VBA parse cell ref from formula Replace with Header

    Hi Bambu,

    I agree with BSBouy above but think the VBA Split() function might help in the "parse" part of your question. Do some searching on it. When you Split() text it can then be pulled out with an index into the array you split it into. Watch out that the first part goes into index zero and not 1.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-01-2015
    Location
    Desktop
    MS-Off Ver
    07,10,13
    Posts
    38

    Re: VBA parse cell ref from formula Replace with Header

    Hi BSB & MarvinR,

    I agree with you BSB, but I still have th same problem more or less just converting my data into table wont convert my formulas to listobject references in the formulas. And while you might think it's no BIG deal to do by hand there's +700 columns of deeply nested formulas. lol lots of fun...

    I would love to use a table but unfortunately its not a permanent solution right now. In th future but not fight now unfortunately.

    But for th sake of getting this done lets make that the scenario, I converted my data to a table. Now I need to convert my formulas to the listobject references.

    Again if anyone has a piece of code that does something like that great, or a link.

    Thanks,

    -B

+ 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. [SOLVED] Parse data from a cell within a formula
    By jbrewer2 in forum Excel General
    Replies: 5
    Last Post: 08-20-2019, 01:45 PM
  2. Replace Cell with Header Cell
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2019, 04:33 AM
  3. How To Parse a Cell That Contains the Result of a Formula
    By Kingswood in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2014, 12:26 PM
  4. [SOLVED] replace multiple spaces with one space to parse text
    By goodmma in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-20-2013, 06:21 PM
  5. Formula to parse first name & surname from cell containing single word
    By mc84excel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-18-2013, 10:49 PM
  6. [SOLVED] text formula to parse a cell, clean it, and dump into a fixed CELL RANGE - NO MACROS
    By James C in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-04-2013, 08:42 PM
  7. Parse input and auto-replace
    By Alabaster in forum Excel General
    Replies: 3
    Last Post: 08-25-2009, 08:01 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