+ Reply to Thread
Results 1 to 5 of 5

Dual code help. Unable to come up with a code to perform functions

  1. #1
    Registered User
    Join Date
    04-13-2015
    Location
    Ny
    MS-Off Ver
    2010
    Posts
    5

    Dual code help. Unable to come up with a code to perform functions

    Hello,
    I have a dual code to do on a spreadsheet. I would like to put a date in one column (lets call it cell A1) which would in return put another date in a separate column but it would be dated 30 days ahead (let's call this cell A3).
    Then, then I put a date in a totally different column (cell A2), it would clear the cell that has the 30 day future date (Cell A3).
    I want to be able to do this in several rows, approx 200. What formula in VB would I use for all of this?
    HELP!!!!

  2. #2
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Dual code help. Unable to come up with a code to perform functions

    Try this formula in cell A3. No need for a VBA macro.

    Please Login or Register  to view this content.
    See the attached file for a similar example.
    Hope this helps.

    Attachment 394350
    Last edited by StuCram; 05-11-2015 at 10:09 PM. Reason: Updated example file.

  3. #3
    Registered User
    Join Date
    04-13-2015
    Location
    Ny
    MS-Off Ver
    2010
    Posts
    5

    Re: Dual code help. Unable to come up with a code to perform functions

    I completely botched by wording and cell references. Sorry about that!
    Let me rephrase everything with the correct cell references.
    I have a dual code to do on a spreadsheet. I would like to put a date in one column (lets call it cell C2) which would in return put another date in a separate column but it would be dated 30 days ahead (let's call this cell F2).
    Then, when I put a date in a totally different column (cell E2), it would clear the cell that has the 30 day future date (Cell F2).
    Sorry for the confusion, been a long day.

  4. #4
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Dual code help. Unable to come up with a code to perform functions

    The same general idea works…
    Try this formula in cell F2.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-13-2015
    Location
    Ny
    MS-Off Ver
    2010
    Posts
    5

    Re: Dual code help. Unable to come up with a code to perform functions

    This is PERFECT!!!
    Thank you so much. I can do basic things in Excel but the code you helped with is a tiny bit beyond my knowledge. Where would you recommend I look so I could learn these types of formulas?
    Thanks,
    Justigger

+ 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. Code to perform a vlookup with the form and do calculations
    By larrysdime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2015, 03:58 PM
  2. Unable to edit macro recording code to be a relative code.
    By holaitsme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2014, 10:51 AM
  3. [SOLVED] Vba code to perform pivot like fuction.
    By Sushil.thakur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2013, 07:05 AM
  4. [SOLVED] Looping through sheets to perform code
    By sambuka in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-30-2012, 03:25 PM
  5. Modify code to perform on multiple worksheets
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2011, 11:30 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