+ Reply to Thread
Results 1 to 4 of 4

Having trouble with macro formula referencing - offset? variable? help!

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Farnham, Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    16

    Having trouble with macro formula referencing - offset? variable? help!

    Hello again,

    I am hopefully almost done with a rather large macro and my brain is melting. I have a macro where I have copied numerous other worksheets into a master and then inserted a column and now need that column to translate a Date/Time into a DD/MM/YYYY format for it's next stage. I've Attached an example of the worksheet.
    I need this formula in Column C to the last row that has data =DATE(MID("B",1,4),MID("B",5,2),MID("B",7,2))
    So, in other words cell C2 would be =DATE(MID(B2,1,4),MID(B2,5,2),MID(B2,7,2)), C3 would reference B3, etc...

    I've looked through other posts and although I know I need to refer to the cell in Column B either through an offset or declaring it as a variable I just can't quite grasp what needs to be done.

    I appreciate your help very much!




    example.xlsm

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Having trouble with macro formula referencing - offset? variable? help!

    Place the code in the 1st cell you want it in the drag down this will automatically change the cell reference. Or is it way to many rows to do this in.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    11-20-2013
    Location
    Farnham, Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Having trouble with macro formula referencing - offset? variable? help!

    Hi Tom,

    Sorry, I guess I didn't explain very well. I need a macro to do this for me as yes, it is way too many rows and it needs to be repeated monthly as part of a macro that compiles alot of data from multiple worksheets. So, I know the formula, I just don't know the "macro language" to input into the VBA for it to do this for me.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Having trouble with macro formula referencing - offset? variable? help!

    Sorry about that. I am don't have enough knowledge of VBA, yet, to be able to help you out.

+ 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] Referencing different worksheets from a list in OFFSET/MATCH formula
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2014, 02:51 PM
  2. [SOLVED] OFFSET formula with Variable
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2014, 12:25 PM
  3. VBA insert formula referencing offset cells and anchor reference
    By JPalms in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-19-2013, 10:35 AM
  4. Offset referencing trouble
    By jadesa in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-09-2009, 01:40 PM
  5. offset formula trouble
    By Don Juan in forum Excel General
    Replies: 1
    Last Post: 09-20-2006, 08:43 PM

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